{
  "info": {
    "_postman_id": "29354a74-7ef4-4d27-a1ca-2fd1b9202169",
    "name": "Tokogar Pay",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "_exporter_id": "18455966"
  },
  "item": [
    {
      "name": "Profile",
      "request": {
        "method": "POST",
        "header": [],
        "body": {
          "mode": "urlencoded",
          "urlencoded": [
            {
              "key": "api_key",
              "value": "api_key anda",
              "type": "text",
              "description": "API key bisa minta ke admin karena payment gateway ini hanya untuk orang yang telah di izinkan oleh owner."
            }
          ]
        },
        "url": {
          "raw": "https://payment.tokogar.com/api/profile",
          "protocol": "https",
          "host": [
            "payment",
            "tokogar",
            "com"
          ],
          "path": [
            "api",
            "profile"
          ]
        }
      },
      "response": [
        {
          "name": "Sukses",
          "originalRequest": {
            "method": "POST",
            "header": [],
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "api_key",
                  "value": "betas921",
                  "type": "text"
                },
                {
                  "key": "ref_id",
                  "value": "test002",
                  "type": "text",
                  "uuid": "7a435058-bceb-47b9-9ef5-8f4ee87dfa4e"
                },
                {
                  "key": "method_id",
                  "value": "1",
                  "type": "text",
                  "uuid": "6f9abd0f-033f-473b-aa8b-0670a4860d11"
                },
                {
                  "key": "amount",
                  "value": "10000",
                  "type": "text",
                  "uuid": "6e4b4240-92a6-48ce-b1f3-6c8c8189b6d4"
                },
                {
                  "key": "fee_type",
                  "value": "1",
                  "type": "text",
                  "uuid": "c20a6a3a-711d-4c11-9601-40a52b2e0cd4"
                },
                {
                  "key": "note",
                  "value": "note from cust",
                  "type": "text",
                  "uuid": "ced84c2a-8e6e-4611-ac48-ced58800379d"
                },
                {
                  "key": "redirect_url",
                  "value": "https://tokogar.com/helper/log-request",
                  "type": "text",
                  "uuid": "b52ce739-3613-49ed-ac3e-532835aa396a"
                },
                {
                  "key": "callback_url",
                  "value": "https://tokogar.com/helper/log-request",
                  "type": "text",
                  "uuid": "d314432f-7c64-4185-964e-e830dc7a6dcd"
                }
              ]
            },
            "url": {
              "raw": "http://127.0.0.1:7000/api/order",
              "protocol": "http",
              "host": [
                "127",
                "0",
                "0",
                "1"
              ],
              "port": "7000",
              "path": [
                "api",
                "order"
              ]
            }
          },
          "status": "OK",
          "code": 200,
          "_postman_previewlanguage": null,
          "header": [
            {
              "key": "Host",
              "value": "127.0.0.1:7000"
            },
            {
              "key": "Connection",
              "value": "close"
            },
            {
              "key": "X-Powered-By",
              "value": "PHP/8.4.15"
            },
            {
              "key": "Cache-Control",
              "value": "no-cache, private"
            },
            {
              "key": "Date",
              "value": "Sat, 10 Jan 2026 12:52:57 GMT"
            },
            {
              "key": "Content-Type",
              "value": "application/json"
            },
            {
              "key": "Access-Control-Allow-Origin",
              "value": "*"
            }
          ],
          "cookie": [],
          "body": "{\n    \"success\": true,\n    \"message\": \"Order created successfully\",\n    \"data\": {\n        \"pay_id\": \"TGP2601102JHRHG\",\n        \"ref_id\": \"test002\",\n        \"method\": \"BCA Transfer\",\n        \"amount\": 10000,\n        \"fee\": 0,\n        \"total_amount\": 10000,\n        \"received_amount\": 10000,\n        \"payment_data\": {\n            \"bank_account\": \"1234567890\",\n            \"bank_name\": \"BCA\"\n        },\n        \"status\": \"Pending\"\n    }\n}"
        },
        {
          "name": "Dupplicate refid",
          "originalRequest": {
            "method": "POST",
            "header": [],
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "api_key",
                  "value": "betas921",
                  "type": "text"
                },
                {
                  "key": "ref_id",
                  "value": "test001",
                  "type": "text",
                  "uuid": "7a435058-bceb-47b9-9ef5-8f4ee87dfa4e"
                },
                {
                  "key": "method_id",
                  "value": "1",
                  "type": "text",
                  "uuid": "6f9abd0f-033f-473b-aa8b-0670a4860d11"
                },
                {
                  "key": "amount",
                  "value": "10000",
                  "type": "text",
                  "uuid": "6e4b4240-92a6-48ce-b1f3-6c8c8189b6d4"
                },
                {
                  "key": "fee_type",
                  "value": "1",
                  "type": "text",
                  "uuid": "c20a6a3a-711d-4c11-9601-40a52b2e0cd4"
                },
                {
                  "key": "note",
                  "value": "note from cust",
                  "type": "text",
                  "uuid": "ced84c2a-8e6e-4611-ac48-ced58800379d"
                },
                {
                  "key": "redirect_url",
                  "value": "https://tokogar.com/helper/log-request",
                  "type": "text",
                  "uuid": "b52ce739-3613-49ed-ac3e-532835aa396a"
                },
                {
                  "key": "callback_url",
                  "value": "https://tokogar.com/helper/log-request",
                  "type": "text",
                  "uuid": "d314432f-7c64-4185-964e-e830dc7a6dcd"
                }
              ]
            },
            "url": {
              "raw": "http://127.0.0.1:7000/api/order",
              "protocol": "http",
              "host": [
                "127",
                "0",
                "0",
                "1"
              ],
              "port": "7000",
              "path": [
                "api",
                "order"
              ]
            }
          },
          "status": "Conflict",
          "code": 409,
          "_postman_previewlanguage": null,
          "header": [
            {
              "key": "Host",
              "value": "127.0.0.1:7000"
            },
            {
              "key": "Connection",
              "value": "close"
            },
            {
              "key": "X-Powered-By",
              "value": "PHP/8.4.15"
            },
            {
              "key": "Cache-Control",
              "value": "no-cache, private"
            },
            {
              "key": "Date",
              "value": "Sat, 10 Jan 2026 12:52:35 GMT"
            },
            {
              "key": "Content-Type",
              "value": "application/json"
            },
            {
              "key": "Access-Control-Allow-Origin",
              "value": "*"
            }
          ],
          "cookie": [],
          "body": "{\n    \"success\": false,\n    \"message\": \"Duplicate reference ID\"\n}"
        },
        {
          "name": "Method not found",
          "originalRequest": {
            "method": "POST",
            "header": [],
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "api_key",
                  "value": "betas921",
                  "type": "text"
                },
                {
                  "key": "ref_id",
                  "value": "test003",
                  "type": "text",
                  "uuid": "7a435058-bceb-47b9-9ef5-8f4ee87dfa4e"
                },
                {
                  "key": "method_id",
                  "value": "10",
                  "type": "text",
                  "uuid": "6f9abd0f-033f-473b-aa8b-0670a4860d11"
                },
                {
                  "key": "amount",
                  "value": "10000",
                  "type": "text",
                  "uuid": "6e4b4240-92a6-48ce-b1f3-6c8c8189b6d4"
                },
                {
                  "key": "fee_type",
                  "value": "1",
                  "type": "text",
                  "uuid": "c20a6a3a-711d-4c11-9601-40a52b2e0cd4"
                },
                {
                  "key": "note",
                  "value": "note from cust",
                  "type": "text",
                  "uuid": "ced84c2a-8e6e-4611-ac48-ced58800379d"
                },
                {
                  "key": "redirect_url",
                  "value": "https://tokogar.com/helper/log-request",
                  "type": "text",
                  "uuid": "b52ce739-3613-49ed-ac3e-532835aa396a"
                },
                {
                  "key": "callback_url",
                  "value": "https://tokogar.com/helper/log-request",
                  "type": "text",
                  "uuid": "d314432f-7c64-4185-964e-e830dc7a6dcd"
                }
              ]
            },
            "url": {
              "raw": "http://127.0.0.1:7000/api/order",
              "protocol": "http",
              "host": [
                "127",
                "0",
                "0",
                "1"
              ],
              "port": "7000",
              "path": [
                "api",
                "order"
              ]
            }
          },
          "status": "Not Found",
          "code": 404,
          "_postman_previewlanguage": null,
          "header": [
            {
              "key": "Host",
              "value": "127.0.0.1:7000"
            },
            {
              "key": "Connection",
              "value": "close"
            },
            {
              "key": "X-Powered-By",
              "value": "PHP/8.4.15"
            },
            {
              "key": "Cache-Control",
              "value": "no-cache, private"
            },
            {
              "key": "Date",
              "value": "Sat, 10 Jan 2026 12:59:39 GMT"
            },
            {
              "key": "Content-Type",
              "value": "application/json"
            },
            {
              "key": "Access-Control-Allow-Origin",
              "value": "*"
            }
          ],
          "cookie": [],
          "body": "{\n    \"success\": false,\n    \"message\": \"Payment method not found\"\n}"
        }
      ]
    },
    {
      "name": "Order",
      "request": {
        "method": "POST",
        "header": [],
        "body": {
          "mode": "urlencoded",
          "urlencoded": [
            {
              "key": "api_key",
              "value": "api_key anda",
              "type": "text",
              "description": "API key bisa minta ke admin karena payment gateway ini hanya untuk orang yang telah di izinkan oleh owner."
            },
            {
              "key": "ref_id",
              "value": "testing9001",
              "type": "text",
              "uuid": "7a435058-bceb-47b9-9ef5-8f4ee87dfa4e",
              "description": "Kode transaksi unik dari kalian"
            },
            {
              "key": "method_id",
              "value": "7",
              "type": "text",
              "uuid": "6f9abd0f-033f-473b-aa8b-0670a4860d11",
              "description": "id method bisa ambil di halaman metode pembayaran"
            },
            {
              "key": "amount",
              "value": "10000",
              "type": "text",
              "uuid": "6e4b4240-92a6-48ce-b1f3-6c8c8189b6d4",
              "description": "jumlah isi"
            },
            {
              "key": "fee_type",
              "value": "1",
              "type": "text",
              "uuid": "c20a6a3a-711d-4c11-9601-40a52b2e0cd4",
              "description": "pilih 1 jika biaya admin ditanggung pelanggan\npilih 2 jika biaya admin ditanggung merchant"
            },
            {
              "key": "note",
              "value": "note from cust",
              "type": "text",
              "uuid": "ced84c2a-8e6e-4611-ac48-ced58800379d",
              "description": "note bebas apa aja"
            },
            {
              "key": "redirect_url",
              "value": "https://tokogar.com/order/TRX123",
              "type": "text",
              "uuid": "b52ce739-3613-49ed-ac3e-532835aa396a",
              "description": "isi dengan link toko kalian"
            },
            {
              "key": "callback_url",
              "value": "https://tokogar.com/payment-callback-pay",
              "type": "text",
              "uuid": "d314432f-7c64-4185-964e-e830dc7a6dcd",
              "description": "isi dengan link callback"
            }
          ]
        },
        "url": {
          "raw": "https://payment.tokogar.com/api/order",
          "protocol": "https",
          "host": [
            "payment",
            "tokogar",
            "com"
          ],
          "path": [
            "api",
            "order"
          ]
        }
      },
      "response": [
        {
          "name": "Sukses",
          "originalRequest": {
            "method": "POST",
            "header": [],
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "api_key",
                  "value": "betas921",
                  "type": "text"
                },
                {
                  "key": "ref_id",
                  "value": "test002",
                  "type": "text",
                  "uuid": "7a435058-bceb-47b9-9ef5-8f4ee87dfa4e"
                },
                {
                  "key": "method_id",
                  "value": "1",
                  "type": "text",
                  "uuid": "6f9abd0f-033f-473b-aa8b-0670a4860d11"
                },
                {
                  "key": "amount",
                  "value": "10000",
                  "type": "text",
                  "uuid": "6e4b4240-92a6-48ce-b1f3-6c8c8189b6d4"
                },
                {
                  "key": "fee_type",
                  "value": "1",
                  "type": "text",
                  "uuid": "c20a6a3a-711d-4c11-9601-40a52b2e0cd4"
                },
                {
                  "key": "note",
                  "value": "note from cust",
                  "type": "text",
                  "uuid": "ced84c2a-8e6e-4611-ac48-ced58800379d"
                },
                {
                  "key": "redirect_url",
                  "value": "https://tokogar.com/helper/log-request",
                  "type": "text",
                  "uuid": "b52ce739-3613-49ed-ac3e-532835aa396a"
                },
                {
                  "key": "callback_url",
                  "value": "https://tokogar.com/helper/log-request",
                  "type": "text",
                  "uuid": "d314432f-7c64-4185-964e-e830dc7a6dcd"
                }
              ]
            },
            "url": {
              "raw": "http://127.0.0.1:7000/api/order",
              "protocol": "http",
              "host": [
                "127",
                "0",
                "0",
                "1"
              ],
              "port": "7000",
              "path": [
                "api",
                "order"
              ]
            }
          },
          "status": "OK",
          "code": 200,
          "_postman_previewlanguage": null,
          "header": [
            {
              "key": "Host",
              "value": "127.0.0.1:7000"
            },
            {
              "key": "Connection",
              "value": "close"
            },
            {
              "key": "X-Powered-By",
              "value": "PHP/8.4.15"
            },
            {
              "key": "Cache-Control",
              "value": "no-cache, private"
            },
            {
              "key": "Date",
              "value": "Sat, 10 Jan 2026 12:52:57 GMT"
            },
            {
              "key": "Content-Type",
              "value": "application/json"
            },
            {
              "key": "Access-Control-Allow-Origin",
              "value": "*"
            }
          ],
          "cookie": [],
          "body": "{\n    \"success\": true,\n    \"message\": \"Order created successfully\",\n    \"data\": {\n        \"pay_id\": \"TGP2601102JHRHG\",\n        \"ref_id\": \"test002\",\n        \"method\": \"BCA Transfer\",\n        \"amount\": 10000,\n        \"fee\": 0,\n        \"total_amount\": 10000,\n        \"received_amount\": 10000,\n        \"payment_data\": {\n            \"bank_account\": \"1234567890\",\n            \"bank_name\": \"BCA\"\n        },\n        \"status\": \"Pending\"\n    }\n}"
        },
        {
          "name": "Dupplicate refid",
          "originalRequest": {
            "method": "POST",
            "header": [],
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "api_key",
                  "value": "betas921",
                  "type": "text"
                },
                {
                  "key": "ref_id",
                  "value": "test001",
                  "type": "text",
                  "uuid": "7a435058-bceb-47b9-9ef5-8f4ee87dfa4e"
                },
                {
                  "key": "method_id",
                  "value": "1",
                  "type": "text",
                  "uuid": "6f9abd0f-033f-473b-aa8b-0670a4860d11"
                },
                {
                  "key": "amount",
                  "value": "10000",
                  "type": "text",
                  "uuid": "6e4b4240-92a6-48ce-b1f3-6c8c8189b6d4"
                },
                {
                  "key": "fee_type",
                  "value": "1",
                  "type": "text",
                  "uuid": "c20a6a3a-711d-4c11-9601-40a52b2e0cd4"
                },
                {
                  "key": "note",
                  "value": "note from cust",
                  "type": "text",
                  "uuid": "ced84c2a-8e6e-4611-ac48-ced58800379d"
                },
                {
                  "key": "redirect_url",
                  "value": "https://tokogar.com/helper/log-request",
                  "type": "text",
                  "uuid": "b52ce739-3613-49ed-ac3e-532835aa396a"
                },
                {
                  "key": "callback_url",
                  "value": "https://tokogar.com/helper/log-request",
                  "type": "text",
                  "uuid": "d314432f-7c64-4185-964e-e830dc7a6dcd"
                }
              ]
            },
            "url": {
              "raw": "http://127.0.0.1:7000/api/order",
              "protocol": "http",
              "host": [
                "127",
                "0",
                "0",
                "1"
              ],
              "port": "7000",
              "path": [
                "api",
                "order"
              ]
            }
          },
          "status": "Conflict",
          "code": 409,
          "_postman_previewlanguage": null,
          "header": [
            {
              "key": "Host",
              "value": "127.0.0.1:7000"
            },
            {
              "key": "Connection",
              "value": "close"
            },
            {
              "key": "X-Powered-By",
              "value": "PHP/8.4.15"
            },
            {
              "key": "Cache-Control",
              "value": "no-cache, private"
            },
            {
              "key": "Date",
              "value": "Sat, 10 Jan 2026 12:52:35 GMT"
            },
            {
              "key": "Content-Type",
              "value": "application/json"
            },
            {
              "key": "Access-Control-Allow-Origin",
              "value": "*"
            }
          ],
          "cookie": [],
          "body": "{\n    \"success\": false,\n    \"message\": \"Duplicate reference ID\"\n}"
        },
        {
          "name": "Method not found",
          "originalRequest": {
            "method": "POST",
            "header": [],
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "api_key",
                  "value": "betas921",
                  "type": "text"
                },
                {
                  "key": "ref_id",
                  "value": "test003",
                  "type": "text",
                  "uuid": "7a435058-bceb-47b9-9ef5-8f4ee87dfa4e"
                },
                {
                  "key": "method_id",
                  "value": "10",
                  "type": "text",
                  "uuid": "6f9abd0f-033f-473b-aa8b-0670a4860d11"
                },
                {
                  "key": "amount",
                  "value": "10000",
                  "type": "text",
                  "uuid": "6e4b4240-92a6-48ce-b1f3-6c8c8189b6d4"
                },
                {
                  "key": "fee_type",
                  "value": "1",
                  "type": "text",
                  "uuid": "c20a6a3a-711d-4c11-9601-40a52b2e0cd4"
                },
                {
                  "key": "note",
                  "value": "note from cust",
                  "type": "text",
                  "uuid": "ced84c2a-8e6e-4611-ac48-ced58800379d"
                },
                {
                  "key": "redirect_url",
                  "value": "https://tokogar.com/helper/log-request",
                  "type": "text",
                  "uuid": "b52ce739-3613-49ed-ac3e-532835aa396a"
                },
                {
                  "key": "callback_url",
                  "value": "https://tokogar.com/helper/log-request",
                  "type": "text",
                  "uuid": "d314432f-7c64-4185-964e-e830dc7a6dcd"
                }
              ]
            },
            "url": {
              "raw": "http://127.0.0.1:7000/api/order",
              "protocol": "http",
              "host": [
                "127",
                "0",
                "0",
                "1"
              ],
              "port": "7000",
              "path": [
                "api",
                "order"
              ]
            }
          },
          "status": "Not Found",
          "code": 404,
          "_postman_previewlanguage": null,
          "header": [
            {
              "key": "Host",
              "value": "127.0.0.1:7000"
            },
            {
              "key": "Connection",
              "value": "close"
            },
            {
              "key": "X-Powered-By",
              "value": "PHP/8.4.15"
            },
            {
              "key": "Cache-Control",
              "value": "no-cache, private"
            },
            {
              "key": "Date",
              "value": "Sat, 10 Jan 2026 12:59:39 GMT"
            },
            {
              "key": "Content-Type",
              "value": "application/json"
            },
            {
              "key": "Access-Control-Allow-Origin",
              "value": "*"
            }
          ],
          "cookie": [],
          "body": "{\n    \"success\": false,\n    \"message\": \"Payment method not found\"\n}"
        }
      ]
    },
    {
      "name": "Status",
      "request": {
        "method": "POST",
        "header": [],
        "body": {
          "mode": "urlencoded",
          "urlencoded": [
            {
              "key": "api_key",
              "value": "api key anda",
              "type": "text",
              "description": "API key bisa minta ke admin karena payment gateway ini hanya untuk orang yang telah di izinkan oleh owner."
            },
            {
              "key": "ref_id",
              "value": "TRX238467982",
              "type": "text",
              "uuid": "cbcd588b-ea2f-48aa-a650-d9982315624f",
              "description": "isi jika ingin mencari dari ref id kode unik kalian",
              "disabled": true
            },
            {
              "key": "pay_id",
              "value": "TGP123456789",
              "type": "text",
              "uuid": "5da60165-f9cf-40b6-a83a-910c69fb037d",
              "description": "isi jika ingin mencari dari pay id pembayaran"
            }
          ]
        },
        "url": {
          "raw": "https://payment.tokogar.com/api/status",
          "protocol": "https",
          "host": [
            "payment",
            "tokogar",
            "com"
          ],
          "path": [
            "api",
            "status"
          ]
        }
      },
      "response": [
        {
          "name": "Sukses",
          "originalRequest": {
            "method": "POST",
            "header": [],
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "api_key",
                  "value": "betas921",
                  "type": "text"
                },
                {
                  "key": "ref_id",
                  "value": "test002",
                  "type": "text",
                  "uuid": "7a435058-bceb-47b9-9ef5-8f4ee87dfa4e"
                },
                {
                  "key": "method_id",
                  "value": "1",
                  "type": "text",
                  "uuid": "6f9abd0f-033f-473b-aa8b-0670a4860d11"
                },
                {
                  "key": "amount",
                  "value": "10000",
                  "type": "text",
                  "uuid": "6e4b4240-92a6-48ce-b1f3-6c8c8189b6d4"
                },
                {
                  "key": "fee_type",
                  "value": "1",
                  "type": "text",
                  "uuid": "c20a6a3a-711d-4c11-9601-40a52b2e0cd4"
                },
                {
                  "key": "note",
                  "value": "note from cust",
                  "type": "text",
                  "uuid": "ced84c2a-8e6e-4611-ac48-ced58800379d"
                },
                {
                  "key": "redirect_url",
                  "value": "https://tokogar.com/helper/log-request",
                  "type": "text",
                  "uuid": "b52ce739-3613-49ed-ac3e-532835aa396a"
                },
                {
                  "key": "callback_url",
                  "value": "https://tokogar.com/helper/log-request",
                  "type": "text",
                  "uuid": "d314432f-7c64-4185-964e-e830dc7a6dcd"
                }
              ]
            },
            "url": {
              "raw": "http://127.0.0.1:7000/api/order",
              "protocol": "http",
              "host": [
                "127",
                "0",
                "0",
                "1"
              ],
              "port": "7000",
              "path": [
                "api",
                "order"
              ]
            }
          },
          "status": "OK",
          "code": 200,
          "_postman_previewlanguage": null,
          "header": [
            {
              "key": "Host",
              "value": "127.0.0.1:7000"
            },
            {
              "key": "Connection",
              "value": "close"
            },
            {
              "key": "X-Powered-By",
              "value": "PHP/8.4.15"
            },
            {
              "key": "Cache-Control",
              "value": "no-cache, private"
            },
            {
              "key": "Date",
              "value": "Sat, 10 Jan 2026 12:52:57 GMT"
            },
            {
              "key": "Content-Type",
              "value": "application/json"
            },
            {
              "key": "Access-Control-Allow-Origin",
              "value": "*"
            }
          ],
          "cookie": [],
          "body": "{\n    \"success\": true,\n    \"message\": \"Order created successfully\",\n    \"data\": {\n        \"pay_id\": \"TGP2601102JHRHG\",\n        \"ref_id\": \"test002\",\n        \"method\": \"BCA Transfer\",\n        \"amount\": 10000,\n        \"fee\": 0,\n        \"total_amount\": 10000,\n        \"received_amount\": 10000,\n        \"payment_data\": {\n            \"bank_account\": \"1234567890\",\n            \"bank_name\": \"BCA\"\n        },\n        \"status\": \"Pending\"\n    }\n}"
        },
        {
          "name": "Dupplicate refid",
          "originalRequest": {
            "method": "POST",
            "header": [],
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "api_key",
                  "value": "betas921",
                  "type": "text"
                },
                {
                  "key": "ref_id",
                  "value": "test001",
                  "type": "text",
                  "uuid": "7a435058-bceb-47b9-9ef5-8f4ee87dfa4e"
                },
                {
                  "key": "method_id",
                  "value": "1",
                  "type": "text",
                  "uuid": "6f9abd0f-033f-473b-aa8b-0670a4860d11"
                },
                {
                  "key": "amount",
                  "value": "10000",
                  "type": "text",
                  "uuid": "6e4b4240-92a6-48ce-b1f3-6c8c8189b6d4"
                },
                {
                  "key": "fee_type",
                  "value": "1",
                  "type": "text",
                  "uuid": "c20a6a3a-711d-4c11-9601-40a52b2e0cd4"
                },
                {
                  "key": "note",
                  "value": "note from cust",
                  "type": "text",
                  "uuid": "ced84c2a-8e6e-4611-ac48-ced58800379d"
                },
                {
                  "key": "redirect_url",
                  "value": "https://tokogar.com/helper/log-request",
                  "type": "text",
                  "uuid": "b52ce739-3613-49ed-ac3e-532835aa396a"
                },
                {
                  "key": "callback_url",
                  "value": "https://tokogar.com/helper/log-request",
                  "type": "text",
                  "uuid": "d314432f-7c64-4185-964e-e830dc7a6dcd"
                }
              ]
            },
            "url": {
              "raw": "http://127.0.0.1:7000/api/order",
              "protocol": "http",
              "host": [
                "127",
                "0",
                "0",
                "1"
              ],
              "port": "7000",
              "path": [
                "api",
                "order"
              ]
            }
          },
          "status": "Conflict",
          "code": 409,
          "_postman_previewlanguage": null,
          "header": [
            {
              "key": "Host",
              "value": "127.0.0.1:7000"
            },
            {
              "key": "Connection",
              "value": "close"
            },
            {
              "key": "X-Powered-By",
              "value": "PHP/8.4.15"
            },
            {
              "key": "Cache-Control",
              "value": "no-cache, private"
            },
            {
              "key": "Date",
              "value": "Sat, 10 Jan 2026 12:52:35 GMT"
            },
            {
              "key": "Content-Type",
              "value": "application/json"
            },
            {
              "key": "Access-Control-Allow-Origin",
              "value": "*"
            }
          ],
          "cookie": [],
          "body": "{\n    \"success\": false,\n    \"message\": \"Duplicate reference ID\"\n}"
        },
        {
          "name": "Method not found",
          "originalRequest": {
            "method": "POST",
            "header": [],
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "api_key",
                  "value": "betas921",
                  "type": "text"
                },
                {
                  "key": "ref_id",
                  "value": "test003",
                  "type": "text",
                  "uuid": "7a435058-bceb-47b9-9ef5-8f4ee87dfa4e"
                },
                {
                  "key": "method_id",
                  "value": "10",
                  "type": "text",
                  "uuid": "6f9abd0f-033f-473b-aa8b-0670a4860d11"
                },
                {
                  "key": "amount",
                  "value": "10000",
                  "type": "text",
                  "uuid": "6e4b4240-92a6-48ce-b1f3-6c8c8189b6d4"
                },
                {
                  "key": "fee_type",
                  "value": "1",
                  "type": "text",
                  "uuid": "c20a6a3a-711d-4c11-9601-40a52b2e0cd4"
                },
                {
                  "key": "note",
                  "value": "note from cust",
                  "type": "text",
                  "uuid": "ced84c2a-8e6e-4611-ac48-ced58800379d"
                },
                {
                  "key": "redirect_url",
                  "value": "https://tokogar.com/helper/log-request",
                  "type": "text",
                  "uuid": "b52ce739-3613-49ed-ac3e-532835aa396a"
                },
                {
                  "key": "callback_url",
                  "value": "https://tokogar.com/helper/log-request",
                  "type": "text",
                  "uuid": "d314432f-7c64-4185-964e-e830dc7a6dcd"
                }
              ]
            },
            "url": {
              "raw": "http://127.0.0.1:7000/api/order",
              "protocol": "http",
              "host": [
                "127",
                "0",
                "0",
                "1"
              ],
              "port": "7000",
              "path": [
                "api",
                "order"
              ]
            }
          },
          "status": "Not Found",
          "code": 404,
          "_postman_previewlanguage": null,
          "header": [
            {
              "key": "Host",
              "value": "127.0.0.1:7000"
            },
            {
              "key": "Connection",
              "value": "close"
            },
            {
              "key": "X-Powered-By",
              "value": "PHP/8.4.15"
            },
            {
              "key": "Cache-Control",
              "value": "no-cache, private"
            },
            {
              "key": "Date",
              "value": "Sat, 10 Jan 2026 12:59:39 GMT"
            },
            {
              "key": "Content-Type",
              "value": "application/json"
            },
            {
              "key": "Access-Control-Allow-Origin",
              "value": "*"
            }
          ],
          "cookie": [],
          "body": "{\n    \"success\": false,\n    \"message\": \"Payment method not found\"\n}"
        }
      ]
    },
    {
      "name": "Callback / Webhook example",
      "request": {
        "method": "POST",
        "header": [],
        "body": {
          "mode": "raw",
          "raw": "{\r\n  \"success\": true,\r\n  \"message\": \"Payment successful\",\r\n  \"data\": {\r\n    \"pay_id\": \"TGP123456789\",  // pay id dari kami\r\n    \"ref_id\": \"test002\",       // ref id kalian\r\n    \"method\": \"BCA Transfer\",\r\n    \"amount\": 10000,\r\n    \"fee\": 0,\r\n    \"total_amount\": 10000,\r\n    \"received_amount\": 10000,  // saldo yang kalian terima\r\n    \"status\": \"Paid\"           // Pending, Paid, Expired, Failed, On Hold, Release, Refund\r\n  }\r\n}"
        },
        "url": {
          "raw": "https://linktokokalian.com/",
          "protocol": "https",
          "host": [
            "linktokokalian",
            "com"
          ],
          "path": [
            ""
          ]
        }
      },
      "response": [
        {
          "name": "Sukses",
          "originalRequest": {
            "method": "POST",
            "header": [],
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "api_key",
                  "value": "betas921",
                  "type": "text"
                },
                {
                  "key": "ref_id",
                  "value": "test002",
                  "type": "text",
                  "uuid": "7a435058-bceb-47b9-9ef5-8f4ee87dfa4e"
                },
                {
                  "key": "method_id",
                  "value": "1",
                  "type": "text",
                  "uuid": "6f9abd0f-033f-473b-aa8b-0670a4860d11"
                },
                {
                  "key": "amount",
                  "value": "10000",
                  "type": "text",
                  "uuid": "6e4b4240-92a6-48ce-b1f3-6c8c8189b6d4"
                },
                {
                  "key": "fee_type",
                  "value": "1",
                  "type": "text",
                  "uuid": "c20a6a3a-711d-4c11-9601-40a52b2e0cd4"
                },
                {
                  "key": "note",
                  "value": "note from cust",
                  "type": "text",
                  "uuid": "ced84c2a-8e6e-4611-ac48-ced58800379d"
                },
                {
                  "key": "redirect_url",
                  "value": "https://tokogar.com/helper/log-request",
                  "type": "text",
                  "uuid": "b52ce739-3613-49ed-ac3e-532835aa396a"
                },
                {
                  "key": "callback_url",
                  "value": "https://tokogar.com/helper/log-request",
                  "type": "text",
                  "uuid": "d314432f-7c64-4185-964e-e830dc7a6dcd"
                }
              ]
            },
            "url": {
              "raw": "http://127.0.0.1:7000/api/order",
              "protocol": "http",
              "host": [
                "127",
                "0",
                "0",
                "1"
              ],
              "port": "7000",
              "path": [
                "api",
                "order"
              ]
            }
          },
          "status": "OK",
          "code": 200,
          "_postman_previewlanguage": null,
          "header": [
            {
              "key": "Host",
              "value": "127.0.0.1:7000"
            },
            {
              "key": "Connection",
              "value": "close"
            },
            {
              "key": "X-Powered-By",
              "value": "PHP/8.4.15"
            },
            {
              "key": "Cache-Control",
              "value": "no-cache, private"
            },
            {
              "key": "Date",
              "value": "Sat, 10 Jan 2026 12:52:57 GMT"
            },
            {
              "key": "Content-Type",
              "value": "application/json"
            },
            {
              "key": "Access-Control-Allow-Origin",
              "value": "*"
            }
          ],
          "cookie": [],
          "body": "{\n    \"success\": true,\n    \"message\": \"Order created successfully\",\n    \"data\": {\n        \"pay_id\": \"TGP2601102JHRHG\",\n        \"ref_id\": \"test002\",\n        \"method\": \"BCA Transfer\",\n        \"amount\": 10000,\n        \"fee\": 0,\n        \"total_amount\": 10000,\n        \"received_amount\": 10000,\n        \"payment_data\": {\n            \"bank_account\": \"1234567890\",\n            \"bank_name\": \"BCA\"\n        },\n        \"status\": \"Pending\"\n    }\n}"
        },
        {
          "name": "Dupplicate refid",
          "originalRequest": {
            "method": "POST",
            "header": [],
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "api_key",
                  "value": "betas921",
                  "type": "text"
                },
                {
                  "key": "ref_id",
                  "value": "test001",
                  "type": "text",
                  "uuid": "7a435058-bceb-47b9-9ef5-8f4ee87dfa4e"
                },
                {
                  "key": "method_id",
                  "value": "1",
                  "type": "text",
                  "uuid": "6f9abd0f-033f-473b-aa8b-0670a4860d11"
                },
                {
                  "key": "amount",
                  "value": "10000",
                  "type": "text",
                  "uuid": "6e4b4240-92a6-48ce-b1f3-6c8c8189b6d4"
                },
                {
                  "key": "fee_type",
                  "value": "1",
                  "type": "text",
                  "uuid": "c20a6a3a-711d-4c11-9601-40a52b2e0cd4"
                },
                {
                  "key": "note",
                  "value": "note from cust",
                  "type": "text",
                  "uuid": "ced84c2a-8e6e-4611-ac48-ced58800379d"
                },
                {
                  "key": "redirect_url",
                  "value": "https://tokogar.com/helper/log-request",
                  "type": "text",
                  "uuid": "b52ce739-3613-49ed-ac3e-532835aa396a"
                },
                {
                  "key": "callback_url",
                  "value": "https://tokogar.com/helper/log-request",
                  "type": "text",
                  "uuid": "d314432f-7c64-4185-964e-e830dc7a6dcd"
                }
              ]
            },
            "url": {
              "raw": "http://127.0.0.1:7000/api/order",
              "protocol": "http",
              "host": [
                "127",
                "0",
                "0",
                "1"
              ],
              "port": "7000",
              "path": [
                "api",
                "order"
              ]
            }
          },
          "status": "Conflict",
          "code": 409,
          "_postman_previewlanguage": null,
          "header": [
            {
              "key": "Host",
              "value": "127.0.0.1:7000"
            },
            {
              "key": "Connection",
              "value": "close"
            },
            {
              "key": "X-Powered-By",
              "value": "PHP/8.4.15"
            },
            {
              "key": "Cache-Control",
              "value": "no-cache, private"
            },
            {
              "key": "Date",
              "value": "Sat, 10 Jan 2026 12:52:35 GMT"
            },
            {
              "key": "Content-Type",
              "value": "application/json"
            },
            {
              "key": "Access-Control-Allow-Origin",
              "value": "*"
            }
          ],
          "cookie": [],
          "body": "{\n    \"success\": false,\n    \"message\": \"Duplicate reference ID\"\n}"
        },
        {
          "name": "Method not found",
          "originalRequest": {
            "method": "POST",
            "header": [],
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "api_key",
                  "value": "betas921",
                  "type": "text"
                },
                {
                  "key": "ref_id",
                  "value": "test003",
                  "type": "text",
                  "uuid": "7a435058-bceb-47b9-9ef5-8f4ee87dfa4e"
                },
                {
                  "key": "method_id",
                  "value": "10",
                  "type": "text",
                  "uuid": "6f9abd0f-033f-473b-aa8b-0670a4860d11"
                },
                {
                  "key": "amount",
                  "value": "10000",
                  "type": "text",
                  "uuid": "6e4b4240-92a6-48ce-b1f3-6c8c8189b6d4"
                },
                {
                  "key": "fee_type",
                  "value": "1",
                  "type": "text",
                  "uuid": "c20a6a3a-711d-4c11-9601-40a52b2e0cd4"
                },
                {
                  "key": "note",
                  "value": "note from cust",
                  "type": "text",
                  "uuid": "ced84c2a-8e6e-4611-ac48-ced58800379d"
                },
                {
                  "key": "redirect_url",
                  "value": "https://tokogar.com/helper/log-request",
                  "type": "text",
                  "uuid": "b52ce739-3613-49ed-ac3e-532835aa396a"
                },
                {
                  "key": "callback_url",
                  "value": "https://tokogar.com/helper/log-request",
                  "type": "text",
                  "uuid": "d314432f-7c64-4185-964e-e830dc7a6dcd"
                }
              ]
            },
            "url": {
              "raw": "http://127.0.0.1:7000/api/order",
              "protocol": "http",
              "host": [
                "127",
                "0",
                "0",
                "1"
              ],
              "port": "7000",
              "path": [
                "api",
                "order"
              ]
            }
          },
          "status": "Not Found",
          "code": 404,
          "_postman_previewlanguage": null,
          "header": [
            {
              "key": "Host",
              "value": "127.0.0.1:7000"
            },
            {
              "key": "Connection",
              "value": "close"
            },
            {
              "key": "X-Powered-By",
              "value": "PHP/8.4.15"
            },
            {
              "key": "Cache-Control",
              "value": "no-cache, private"
            },
            {
              "key": "Date",
              "value": "Sat, 10 Jan 2026 12:59:39 GMT"
            },
            {
              "key": "Content-Type",
              "value": "application/json"
            },
            {
              "key": "Access-Control-Allow-Origin",
              "value": "*"
            }
          ],
          "cookie": [],
          "body": "{\n    \"success\": false,\n    \"message\": \"Payment method not found\"\n}"
        }
      ]
    }
  ]
}