{
    "info":  {
                 "name":  "ProlificEx Crypto Gateway API",
                 "description":  "Local Postman collection for Laravel API and local TRON signer. Import ProlificEx_Local.postman_environment.json and select it before testing.",
                 "schema":  "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
             },
    "variable":  [
                     {
                         "key":  "base_url",
                         "value":  "http://127.0.0.1:8001"
                     },
                     {
                         "key":  "signer_url",
                         "value":  "http://127.0.0.1:8787"
                     }
                 ],
    "item":  [
                 {
                     "name":  "00 Health",
                     "item":  [
                                  {
                                      "name":  "Laravel Ready",
                                      "request":  {
                                                      "method":  "GET",
                                                      "header":  [
                                                                     {
                                                                         "key":  "Accept",
                                                                         "value":  "application/json"
                                                                     }
                                                                 ],
                                                      "url":  "{{base_url}}/api/health/ready"
                                                  }
                                  },
                                  {
                                      "name":  "Signer Health",
                                      "request":  {
                                                      "method":  "GET",
                                                      "header":  [
                                                                     {
                                                                         "key":  "Accept",
                                                                         "value":  "application/json"
                                                                     }
                                                                 ],
                                                      "url":  "{{signer_url}}/health"
                                                  }
                                  }
                              ]
                 },
                 {
                     "name":  "01 Auth - Bearer Token",
                     "item":  [
                                  {
                                      "name":  "Register Merchant",
                                      "request":  {
                                                      "method":  "POST",
                                                      "header":  [
                                                                     {
                                                                         "key":  "Accept",
                                                                         "value":  "application/json"
                                                                     },
                                                                     {
                                                                         "key":  "Content-Type",
                                                                         "value":  "application/json"
                                                                     }
                                                                 ],
                                                      "body":  {
                                                                   "mode":  "raw",
                                                                   "raw":  "{\n  \"name\": \"Postman Test Merchant\",\n  \"email\": \"waqasishaq800+postman@gmail.com\",\n  \"password\": \"waqas123waqas\",\n  \"password_confirmation\": \"waqas123waqas\"\n}"
                                                               },
                                                      "url":  "{{base_url}}/api/v1/auth/register"
                                                  }
                                  },
                                  {
                                      "name":  "Login Merchant / Admin",
                                      "event":  [
                                                    {
                                                        "listen":  "test",
                                                        "script":  {
                                                                       "type":  "text/javascript",
                                                                       "exec":  [
                                                                                    "const json = pm.response.json();",
                                                                                    "if (json \u0026\u0026 json.data \u0026\u0026 json.data.token) {",
                                                                                    "  pm.environment.set(\u0027bearer_token\u0027, json.data.token);",
                                                                                    "}"
                                                                                ]
                                                                   }
                                                    }
                                                ],
                                      "request":  {
                                                      "method":  "POST",
                                                      "header":  [
                                                                     {
                                                                         "key":  "Accept",
                                                                         "value":  "application/json"
                                                                     },
                                                                     {
                                                                         "key":  "Content-Type",
                                                                         "value":  "application/json"
                                                                     }
                                                                 ],
                                                      "body":  {
                                                                   "mode":  "raw",
                                                                   "raw":  "{\n  \"email\": \"admin@prolificex.local\",\n  \"password\": \"Admin12345678\"\n}"
                                                               },
                                                      "url":  "{{base_url}}/api/v1/auth/login"
                                                  }
                                  },
                                  {
                                      "name":  "Me",
                                      "request":  {
                                                      "method":  "GET",
                                                      "auth":  {
                                                                   "type":  "bearer",
                                                                   "bearer":  [
                                                                                  {
                                                                                      "key":  "token",
                                                                                      "value":  "{{bearer_token}}",
                                                                                      "type":  "string"
                                                                                  }
                                                                              ]
                                                               },
                                                      "header":  [
                                                                     {
                                                                         "key":  "Accept",
                                                                         "value":  "application/json"
                                                                     }
                                                                 ],
                                                      "url":  "{{base_url}}/api/v1/me"
                                                  }
                                  },
                                  {
                                      "name":  "Resend Email Verification",
                                      "request":  {
                                                      "method":  "POST",
                                                      "auth":  {
                                                                   "type":  "bearer",
                                                                   "bearer":  [
                                                                                  {
                                                                                      "key":  "token",
                                                                                      "value":  "{{bearer_token}}",
                                                                                      "type":  "string"
                                                                                  }
                                                                              ]
                                                               },
                                                      "header":  [
                                                                     {
                                                                         "key":  "Accept",
                                                                         "value":  "application/json"
                                                                     }
                                                                 ],
                                                      "url":  "{{base_url}}/api/v1/email/verification-notification"
                                                  }
                                  },
                                  {
                                      "name":  "Logout",
                                      "request":  {
                                                      "method":  "POST",
                                                      "auth":  {
                                                                   "type":  "bearer",
                                                                   "bearer":  [
                                                                                  {
                                                                                      "key":  "token",
                                                                                      "value":  "{{bearer_token}}",
                                                                                      "type":  "string"
                                                                                  }
                                                                              ]
                                                               },
                                                      "header":  [
                                                                     {
                                                                         "key":  "Accept",
                                                                         "value":  "application/json"
                                                                     }
                                                                 ],
                                                      "url":  "{{base_url}}/api/v1/auth/logout"
                                                  }
                                  }
                              ]
                 },
                 {
                     "name":  "02 Dashboard - Bearer Token",
                     "item":  [
                                  {
                                      "name":  "Create API Key",
                                      "event":  [
                                                    {
                                                        "listen":  "test",
                                                        "script":  {
                                                                       "type":  "text/javascript",
                                                                       "exec":  [
                                                                                    "const json = pm.response.json();",
                                                                                    "if (json \u0026\u0026 json.data) {",
                                                                                    "  if (json.data.public_key) pm.environment.set(\u0027api_key\u0027, json.data.public_key);",
                                                                                    "  if (json.data.secret) pm.environment.set(\u0027api_secret\u0027, json.data.secret);",
                                                                                    "  if (json.data.id) pm.environment.set(\u0027api_key_id\u0027, json.data.id);",
                                                                                    "}"
                                                                                ]
                                                                   }
                                                    }
                                                ],
                                      "request":  {
                                                      "method":  "POST",
                                                      "auth":  {
                                                                   "type":  "bearer",
                                                                   "bearer":  [
                                                                                  {
                                                                                      "key":  "token",
                                                                                      "value":  "{{bearer_token}}",
                                                                                      "type":  "string"
                                                                                  }
                                                                              ]
                                                               },
                                                      "header":  [
                                                                     {
                                                                         "key":  "Accept",
                                                                         "value":  "application/json"
                                                                     },
                                                                     {
                                                                         "key":  "Content-Type",
                                                                         "value":  "application/json"
                                                                     }
                                                                 ],
                                                      "body":  {
                                                                   "mode":  "raw",
                                                                   "raw":  "{\n  \"environment\": \"sandbox\",\n  \"scopes\": [\n    \"payments:read\",\n    \"payments:write\",\n    \"balances:read\",\n    \"payouts:read\",\n    \"payouts:write\",\n    \"webhooks:write\",\n    \"merchants:read\",\n    \"merchants:write\",\n    \"wallets:read\",\n    \"wallets:write\"\n  ]\n}"
                                                               },
                                                      "url":  "{{base_url}}/api/v1/api-keys"
                                                  }
                                  },
                                  {
                                      "name":  "List API Keys",
                                      "request":  {
                                                      "method":  "GET",
                                                      "auth":  {
                                                                   "type":  "bearer",
                                                                   "bearer":  [
                                                                                  {
                                                                                      "key":  "token",
                                                                                      "value":  "{{bearer_token}}",
                                                                                      "type":  "string"
                                                                                  }
                                                                              ]
                                                               },
                                                      "header":  [
                                                                     {
                                                                         "key":  "Accept",
                                                                         "value":  "application/json"
                                                                     }
                                                                 ],
                                                      "url":  "{{base_url}}/api/v1/api-keys"
                                                  }
                                  },
                                  {
                                      "name":  "Rotate API Key",
                                      "request":  {
                                                      "method":  "POST",
                                                      "auth":  {
                                                                   "type":  "bearer",
                                                                   "bearer":  [
                                                                                  {
                                                                                      "key":  "token",
                                                                                      "value":  "{{bearer_token}}",
                                                                                      "type":  "string"
                                                                                  }
                                                                              ]
                                                               },
                                                      "header":  [
                                                                     {
                                                                         "key":  "Accept",
                                                                         "value":  "application/json"
                                                                     }
                                                                 ],
                                                      "url":  "{{base_url}}/api/v1/api-keys/{{api_key_id}}/rotate"
                                                  }
                                  },
                                  {
                                      "name":  "Create Webhook Endpoint",
                                      "request":  {
                                                      "method":  "POST",
                                                      "auth":  {
                                                                   "type":  "bearer",
                                                                   "bearer":  [
                                                                                  {
                                                                                      "key":  "token",
                                                                                      "value":  "{{bearer_token}}",
                                                                                      "type":  "string"
                                                                                  }
                                                                              ]
                                                               },
                                                      "header":  [
                                                                     {
                                                                         "key":  "Accept",
                                                                         "value":  "application/json"
                                                                     },
                                                                     {
                                                                         "key":  "Content-Type",
                                                                         "value":  "application/json"
                                                                     }
                                                                 ],
                                                      "body":  {
                                                                   "mode":  "raw",
                                                                   "raw":  "{\n  \"url\": \"https://example.com/webhooks/prolificex\",\n  \"events\": [\"payment.confirmed\", \"payout.completed\"],\n  \"environment\": \"sandbox\"\n}"
                                                               },
                                                      "url":  "{{base_url}}/api/v1/webhook-endpoints"
                                                  }
                                  },
                                  {
                                      "name":  "List Webhook Endpoints",
                                      "request":  {
                                                      "method":  "GET",
                                                      "auth":  {
                                                                   "type":  "bearer",
                                                                   "bearer":  [
                                                                                  {
                                                                                      "key":  "token",
                                                                                      "value":  "{{bearer_token}}",
                                                                                      "type":  "string"
                                                                                  }
                                                                              ]
                                                               },
                                                      "header":  [
                                                                     {
                                                                         "key":  "Accept",
                                                                         "value":  "application/json"
                                                                     }
                                                                 ],
                                                      "url":  "{{base_url}}/api/v1/webhook-endpoints"
                                                  }
                                  },
                                  {
                                      "name":  "Replay Webhook Delivery",
                                      "request":  {
                                                      "method":  "POST",
                                                      "auth":  {
                                                                   "type":  "bearer",
                                                                   "bearer":  [
                                                                                  {
                                                                                      "key":  "token",
                                                                                      "value":  "{{bearer_token}}",
                                                                                      "type":  "string"
                                                                                  }
                                                                              ]
                                                               },
                                                      "header":  [
                                                                     {
                                                                         "key":  "Accept",
                                                                         "value":  "application/json"
                                                                     }
                                                                 ],
                                                      "url":  "{{base_url}}/api/v1/webhook-deliveries/{{delivery_id}}/replay"
                                                  }
                                  },
                                  {
                                      "name":  "2FA Setup",
                                      "request":  {
                                                      "method":  "POST",
                                                      "auth":  {
                                                                   "type":  "bearer",
                                                                   "bearer":  [
                                                                                  {
                                                                                      "key":  "token",
                                                                                      "value":  "{{bearer_token}}",
                                                                                      "type":  "string"
                                                                                  }
                                                                              ]
                                                               },
                                                      "header":  [
                                                                     {
                                                                         "key":  "Accept",
                                                                         "value":  "application/json"
                                                                     }
                                                                 ],
                                                      "url":  "{{base_url}}/api/v1/2fa/setup"
                                                  }
                                  },
                                  {
                                      "name":  "2FA Enable",
                                      "request":  {
                                                      "method":  "POST",
                                                      "auth":  {
                                                                   "type":  "bearer",
                                                                   "bearer":  [
                                                                                  {
                                                                                      "key":  "token",
                                                                                      "value":  "{{bearer_token}}",
                                                                                      "type":  "string"
                                                                                  }
                                                                              ]
                                                               },
                                                      "header":  [
                                                                     {
                                                                         "key":  "Accept",
                                                                         "value":  "application/json"
                                                                     },
                                                                     {
                                                                         "key":  "Content-Type",
                                                                         "value":  "application/json"
                                                                     }
                                                                 ],
                                                      "body":  {
                                                                   "mode":  "raw",
                                                                   "raw":  "{\n  \"code\": \"123456\"\n}"
                                                               },
                                                      "url":  "{{base_url}}/api/v1/2fa/enable"
                                                  }
                                  },
                                  {
                                      "name":  "2FA Step Up",
                                      "request":  {
                                                      "method":  "POST",
                                                      "auth":  {
                                                                   "type":  "bearer",
                                                                   "bearer":  [
                                                                                  {
                                                                                      "key":  "token",
                                                                                      "value":  "{{bearer_token}}",
                                                                                      "type":  "string"
                                                                                  }
                                                                              ]
                                                               },
                                                      "header":  [
                                                                     {
                                                                         "key":  "Accept",
                                                                         "value":  "application/json"
                                                                     },
                                                                     {
                                                                         "key":  "Content-Type",
                                                                         "value":  "application/json"
                                                                     }
                                                                 ],
                                                      "body":  {
                                                                   "mode":  "raw",
                                                                   "raw":  "{\n  \"code\": \"123456\"\n}"
                                                               },
                                                      "url":  "{{base_url}}/api/v1/2fa/step-up"
                                                  }
                                  }
                              ]
                 },
                 {
                     "name":  "03 Operator Admin - Bearer Token",
                     "item":  [
                                  {
                                      "name":  "Operator Dashboard",
                                      "request":  {
                                                      "method":  "GET",
                                                      "auth":  {
                                                                   "type":  "bearer",
                                                                   "bearer":  [
                                                                                  {
                                                                                      "key":  "token",
                                                                                      "value":  "{{bearer_token}}",
                                                                                      "type":  "string"
                                                                                  }
                                                                              ]
                                                               },
                                                      "header":  [
                                                                     {
                                                                         "key":  "Accept",
                                                                         "value":  "application/json"
                                                                     }
                                                                 ],
                                                      "url":  "{{base_url}}/api/v1/operator/dashboard"
                                                  }
                                  },
                                  {
                                      "name":  "Treasury Dashboard",
                                      "request":  {
                                                      "method":  "GET",
                                                      "auth":  {
                                                                   "type":  "bearer",
                                                                   "bearer":  [
                                                                                  {
                                                                                      "key":  "token",
                                                                                      "value":  "{{bearer_token}}",
                                                                                      "type":  "string"
                                                                                  }
                                                                              ]
                                                               },
                                                      "header":  [
                                                                     {
                                                                         "key":  "Accept",
                                                                         "value":  "application/json"
                                                                     }
                                                                 ],
                                                      "url":  "{{base_url}}/api/v1/operator/treasury/dashboard"
                                                  }
                                  },
                                  {
                                      "name":  "List Merchants",
                                      "request":  {
                                                      "method":  "GET",
                                                      "auth":  {
                                                                   "type":  "bearer",
                                                                   "bearer":  [
                                                                                  {
                                                                                      "key":  "token",
                                                                                      "value":  "{{bearer_token}}",
                                                                                      "type":  "string"
                                                                                  }
                                                                              ]
                                                               },
                                                      "header":  [
                                                                     {
                                                                         "key":  "Accept",
                                                                         "value":  "application/json"
                                                                     }
                                                                 ],
                                                      "url":  "{{base_url}}/api/v1/operator/merchants"
                                                  }
                                  },
                                  {
                                      "name":  "Approve Merchant",
                                      "request":  {
                                                      "method":  "POST",
                                                      "auth":  {
                                                                   "type":  "bearer",
                                                                   "bearer":  [
                                                                                  {
                                                                                      "key":  "token",
                                                                                      "value":  "{{bearer_token}}",
                                                                                      "type":  "string"
                                                                                  }
                                                                              ]
                                                               },
                                                      "header":  [
                                                                     {
                                                                         "key":  "Accept",
                                                                         "value":  "application/json"
                                                                     }
                                                                 ],
                                                      "url":  "{{base_url}}/api/v1/operator/merchants/{{merchant_id}}/approve"
                                                  }
                                  },
                                  {
                                      "name":  "Decline Merchant",
                                      "request":  {
                                                      "method":  "POST",
                                                      "auth":  {
                                                                   "type":  "bearer",
                                                                   "bearer":  [
                                                                                  {
                                                                                      "key":  "token",
                                                                                      "value":  "{{bearer_token}}",
                                                                                      "type":  "string"
                                                                                  }
                                                                              ]
                                                               },
                                                      "header":  [
                                                                     {
                                                                         "key":  "Accept",
                                                                         "value":  "application/json"
                                                                     },
                                                                     {
                                                                         "key":  "Content-Type",
                                                                         "value":  "application/json"
                                                                     }
                                                                 ],
                                                      "body":  {
                                                                   "mode":  "raw",
                                                                   "raw":  "{\n  \"reason\": \"KYC failed\"\n}"
                                                               },
                                                      "url":  "{{base_url}}/api/v1/operator/merchants/{{merchant_id}}/decline"
                                                  }
                                  },
                                  {
                                      "name":  "Approve Payout",
                                      "request":  {
                                                      "method":  "POST",
                                                      "auth":  {
                                                                   "type":  "bearer",
                                                                   "bearer":  [
                                                                                  {
                                                                                      "key":  "token",
                                                                                      "value":  "{{bearer_token}}",
                                                                                      "type":  "string"
                                                                                  }
                                                                              ]
                                                               },
                                                      "header":  [
                                                                     {
                                                                         "key":  "Accept",
                                                                         "value":  "application/json"
                                                                     }
                                                                 ],
                                                      "url":  "{{base_url}}/api/v1/operator/payouts/{{payout_id}}/approve"
                                                  }
                                  }
                              ]
                 },
                 {
                     "name":  "04 Merchant API - HMAC Signed",
                     "event":  [
                                   {
                                       "listen":  "prerequest",
                                       "script":  {
                                                      "type":  "text/javascript",
                                                      "exec":  [
                                                                   "const apiKey = pm.environment.get(\u0027api_key\u0027) || pm.collectionVariables.get(\u0027api_key\u0027);",
                                                                   "const apiSecret = pm.environment.get(\u0027api_secret\u0027) || pm.collectionVariables.get(\u0027api_secret\u0027);",
                                                                   "if (!apiKey || !apiSecret) { throw new Error(\u0027Set api_key and api_secret in the selected Postman environment first.\u0027); }",
                                                                   "const method = pm.request.method.toUpperCase();",
                                                                   "const path = pm.variables.replaceIn(pm.request.url.getPathWithQuery());",
                                                                   "const timestamp = Math.floor(Date.now() / 1000).toString();",
                                                                   "const nonce = Date.now().toString() + Math.random().toString(16).slice(2);",
                                                                   "let body = \u0027\u0027;",
                                                                   "if (pm.request.body \u0026\u0026 pm.request.body.mode === \u0027raw\u0027) { body = pm.variables.replaceIn(pm.request.body.raw || \u0027\u0027); }",
                                                                   "const bodyHash = CryptoJS.SHA256(body).toString();",
                                                                   "const canonical = [method, path, timestamp, nonce, bodyHash].join(\u0027\\n\u0027);",
                                                                   "const signature = CryptoJS.HmacSHA256(canonical, apiSecret).toString();",
                                                                   "pm.request.headers.upsert({ key: \u0027x-api-key\u0027, value: apiKey });",
                                                                   "pm.request.headers.upsert({ key: \u0027x-api-timestamp\u0027, value: timestamp });",
                                                                   "pm.request.headers.upsert({ key: \u0027x-api-nonce\u0027, value: nonce });",
                                                                   "pm.request.headers.upsert({ key: \u0027x-api-signature\u0027, value: \u0027v1=\u0027 + signature });",
                                                                   "pm.request.headers.upsert({ key: \u0027Accept\u0027, value: \u0027application/json\u0027 });",
                                                                   "if ([\u0027POST\u0027,\u0027PUT\u0027,\u0027PATCH\u0027].includes(method)) { pm.request.headers.upsert({ key: \u0027Content-Type\u0027, value: \u0027application/json\u0027 }); }",
                                                                   "console.log(\u0027HMAC signed\u0027, { method, path, timestamp, nonce });"
                                                               ]
                                                  }
                                   }
                               ],
                     "item":  [
                                  {
                                      "name":  "Currencies",
                                      "request":  {
                                                      "method":  "GET",
                                                      "header":  [

                                                                 ],
                                                      "url":  "{{base_url}}/api/v1/currencies"
                                                  }
                                  },
                                  {
                                      "name":  "Estimate",
                                      "request":  {
                                                      "method":  "POST",
                                                      "header":  [

                                                                 ],
                                                      "body":  {
                                                                   "mode":  "raw",
                                                                   "raw":  "{\n  \"amount\": \"10.00\",\n  \"currency_from\": \"USD\",\n  \"currency_to\": \"USDTTRC20\"\n}"
                                                               },
                                                      "url":  "{{base_url}}/api/v1/estimate"
                                                  }
                                  },
                                  {
                                      "name":  "Create Invoice",
                                      "event":  [
                                                    {
                                                        "listen":  "test",
                                                        "script":  {
                                                                       "type":  "text/javascript",
                                                                       "exec":  [
                                                                                    "const json = pm.response.json();",
                                                                                    "if (json \u0026\u0026 json.data) {",
                                                                                    "  if (json.data.invoice_id) pm.environment.set(\u0027invoice_id\u0027, json.data.invoice_id);",
                                                                                    "  if (json.data.payment_id) pm.environment.set(\u0027payment_id\u0027, json.data.payment_id);",
                                                                                    "}"
                                                                                ]
                                                                   }
                                                    }
                                                ],
                                      "request":  {
                                                      "method":  "POST",
                                                      "header":  [
                                                                     {
                                                                         "key":  "Idempotency-Key",
                                                                         "value":  "invoice-{{$timestamp}}"
                                                                     }
                                                                 ],
                                                      "body":  {
                                                                   "mode":  "raw",
                                                                   "raw":  "{\n  \"price_amount\": \"10.00\",\n  \"price_currency\": \"USD\",\n  \"pay_currency\": \"USDTTRC20\",\n  \"order_id\": \"order_{{$timestamp}}\",\n  \"payer\": {\n    \"id\": \"cust_001\",\n    \"name\": \"Test Customer\",\n    \"email\": \"test@example.com\"\n  },\n  \"items\": [\n    {\n      \"sku\": \"sku_test\",\n      \"name\": \"Test Product\",\n      \"quantity\": 1,\n      \"unit_amount\": \"10.00\"\n    }\n  ],\n  \"metadata\": {\n    \"source\": \"postman\"\n  }\n}"
                                                               },
                                                      "url":  "{{base_url}}/api/v1/invoices"
                                                  }
                                  },
                                  {
                                      "name":  "List Invoices",
                                      "request":  {
                                                      "method":  "GET",
                                                      "header":  [

                                                                 ],
                                                      "url":  "{{base_url}}/api/v1/invoices?per_page=20"
                                                  }
                                  },
                                  {
                                      "name":  "Get Invoice",
                                      "request":  {
                                                      "method":  "GET",
                                                      "header":  [

                                                                 ],
                                                      "url":  "{{base_url}}/api/v1/invoices/{{invoice_id}}"
                                                  }
                                  },
                                  {
                                      "name":  "Send Invoice Email",
                                      "request":  {
                                                      "method":  "POST",
                                                      "header":  [

                                                                 ],
                                                      "body":  {
                                                                   "mode":  "raw",
                                                                   "raw":  "{\n  \"email\": \"test@example.com\"\n}"
                                                               },
                                                      "url":  "{{base_url}}/api/v1/invoices/{{invoice_id}}/send-email"
                                                  }
                                  },
                                  {
                                      "name":  "Invoice PDF",
                                      "request":  {
                                                      "method":  "GET",
                                                      "header":  [

                                                                 ],
                                                      "url":  "{{base_url}}/api/v1/invoices/{{invoice_id}}/pdf"
                                                  }
                                  },
                                  {
                                      "name":  "API Checkout",
                                      "request":  {
                                                      "method":  "GET",
                                                      "header":  [

                                                                 ],
                                                      "url":  "{{base_url}}/api/v1/checkout/{{payment_id}}"
                                                  }
                                  },
                                  {
                                      "name":  "Select Checkout Currency",
                                      "request":  {
                                                      "method":  "POST",
                                                      "header":  [

                                                                 ],
                                                      "body":  {
                                                                   "mode":  "raw",
                                                                   "raw":  "{\n  \"pay_currency\": \"USDTTRC20\"\n}"
                                                               },
                                                      "url":  "{{base_url}}/api/v1/checkout/{{payment_id}}/select-currency"
                                                  }
                                  },
                                  {
                                      "name":  "Create Payment",
                                      "request":  {
                                                      "method":  "POST",
                                                      "header":  [
                                                                     {
                                                                         "key":  "Idempotency-Key",
                                                                         "value":  "payment-{{$timestamp}}"
                                                                     }
                                                                 ],
                                                      "body":  {
                                                                   "mode":  "raw",
                                                                   "raw":  "{\n  \"price_amount\": \"5.00\",\n  \"price_currency\": \"USD\",\n  \"pay_currency\": \"USDTTRC20\",\n  \"order_id\": \"payment_order_{{$timestamp}}\"\n}"
                                                               },
                                                      "url":  "{{base_url}}/api/v1/payments"
                                                  }
                                  },
                                  {
                                      "name":  "List Payments",
                                      "request":  {
                                                      "method":  "GET",
                                                      "header":  [

                                                                 ],
                                                      "url":  "{{base_url}}/api/v1/payments?per_page=20"
                                                  }
                                  },
                                  {
                                      "name":  "Get Payment",
                                      "request":  {
                                                      "method":  "GET",
                                                      "header":  [

                                                                 ],
                                                      "url":  "{{base_url}}/api/v1/payments/{{payment_id}}"
                                                  }
                                  },
                                  {
                                      "name":  "Cancel Payment",
                                      "request":  {
                                                      "method":  "POST",
                                                      "header":  [

                                                                 ],
                                                      "url":  "{{base_url}}/api/v1/payments/{{payment_id}}/cancel"
                                                  }
                                  },
                                  {
                                      "name":  "Balances",
                                      "request":  {
                                                      "method":  "GET",
                                                      "header":  [

                                                                 ],
                                                      "url":  "{{base_url}}/api/v1/balances"
                                                  }
                                  },
                                  {
                                      "name":  "Create Payout",
                                      "request":  {
                                                      "method":  "POST",
                                                      "header":  [
                                                                     {
                                                                         "key":  "Idempotency-Key",
                                                                         "value":  "payout-{{$timestamp}}"
                                                                     }
                                                                 ],
                                                      "body":  {
                                                                   "mode":  "raw",
                                                                   "raw":  "{\n  \"pay_currency\": \"USDTTRC20\",\n  \"to_address\": \"{{destination_tron_address}}\",\n  \"amount\": \"1.00\",\n  \"two_factor_code\": \"123456\"\n}"
                                                               },
                                                      "url":  "{{base_url}}/api/v1/payouts"
                                                  }
                                  },
                                  {
                                      "name":  "List Payouts",
                                      "request":  {
                                                      "method":  "GET",
                                                      "header":  [

                                                                 ],
                                                      "url":  "{{base_url}}/api/v1/payouts"
                                                  }
                                  },
                                  {
                                      "name":  "Create Payout Batch",
                                      "event":  [
                                                    {
                                                        "listen":  "test",
                                                        "script":  {
                                                                       "type":  "text/javascript",
                                                                       "exec":  [
                                                                                    "const json = pm.response.json();",
                                                                                    "if (json \u0026\u0026 json.data \u0026\u0026 json.data.id) pm.environment.set(\u0027payout_batch_id\u0027, json.data.id);"
                                                                                ]
                                                                   }
                                                    }
                                                ],
                                      "request":  {
                                                      "method":  "POST",
                                                      "header":  [

                                                                 ],
                                                      "body":  {
                                                                   "mode":  "raw",
                                                                   "raw":  "{\n  \"pay_currency\": \"USDTTRC20\",\n  \"items\": [\n    {\n      \"to_address\": \"{{destination_tron_address}}\",\n      \"amount\": \"1.00\"\n    }\n  ],\n  \"metadata\": {\n    \"source\": \"postman\"\n  }\n}"
                                                               },
                                                      "url":  "{{base_url}}/api/v1/payout-batches"
                                                  }
                                  },
                                  {
                                      "name":  "List Payout Batches",
                                      "request":  {
                                                      "method":  "GET",
                                                      "header":  [

                                                                 ],
                                                      "url":  "{{base_url}}/api/v1/payout-batches"
                                                  }
                                  },
                                  {
                                      "name":  "Get Payout Batch",
                                      "request":  {
                                                      "method":  "GET",
                                                      "header":  [

                                                                 ],
                                                      "url":  "{{base_url}}/api/v1/payout-batches/{{payout_batch_id}}"
                                                  }
                                  },
                                  {
                                      "name":  "Approve Payout Batch",
                                      "request":  {
                                                      "method":  "POST",
                                                      "header":  [

                                                                 ],
                                                      "url":  "{{base_url}}/api/v1/payout-batches/{{payout_batch_id}}/approve"
                                                  }
                                  },
                                  {
                                      "name":  "Create Subscription Plan",
                                      "event":  [
                                                    {
                                                        "listen":  "test",
                                                        "script":  {
                                                                       "type":  "text/javascript",
                                                                       "exec":  [
                                                                                    "const json = pm.response.json();",
                                                                                    "if (json \u0026\u0026 json.data \u0026\u0026 json.data.id) pm.environment.set(\u0027plan_id\u0027, json.data.id);"
                                                                                ]
                                                                   }
                                                    }
                                                ],
                                      "request":  {
                                                      "method":  "POST",
                                                      "header":  [

                                                                 ],
                                                      "body":  {
                                                                   "mode":  "raw",
                                                                   "raw":  "{\n  \"name\": \"Monthly API Plan\",\n  \"description\": \"Test subscription plan\",\n  \"price_amount\": \"25.00\",\n  \"price_currency\": \"USD\",\n  \"pay_currency\": \"USDTTRC20\",\n  \"interval\": \"month\",\n  \"interval_count\": 1,\n  \"metadata\": {\n    \"source\": \"postman\"\n  }\n}"
                                                               },
                                                      "url":  "{{base_url}}/api/v1/subscriptions/plans"
                                                  }
                                  },
                                  {
                                      "name":  "List Subscription Plans",
                                      "request":  {
                                                      "method":  "GET",
                                                      "header":  [

                                                                 ],
                                                      "url":  "{{base_url}}/api/v1/subscriptions/plans"
                                                  }
                                  },
                                  {
                                      "name":  "Create Subscription",
                                      "event":  [
                                                    {
                                                        "listen":  "test",
                                                        "script":  {
                                                                       "type":  "text/javascript",
                                                                       "exec":  [
                                                                                    "const json = pm.response.json();",
                                                                                    "if (json \u0026\u0026 json.data \u0026\u0026 json.data.id) pm.environment.set(\u0027subscription_id\u0027, json.data.id);"
                                                                                ]
                                                                   }
                                                    }
                                                ],
                                      "request":  {
                                                      "method":  "POST",
                                                      "header":  [

                                                                 ],
                                                      "body":  {
                                                                   "mode":  "raw",
                                                                   "raw":  "{\n  \"plan_id\": \"{{plan_id}}\",\n  \"customer\": {\n    \"name\": \"Subscription Customer\",\n    \"email\": \"subscription@example.com\"\n  },\n  \"metadata\": {\n    \"source\": \"postman\"\n  }\n}"
                                                               },
                                                      "url":  "{{base_url}}/api/v1/subscriptions"
                                                  }
                                  },
                                  {
                                      "name":  "List Subscriptions",
                                      "request":  {
                                                      "method":  "GET",
                                                      "header":  [

                                                                 ],
                                                      "url":  "{{base_url}}/api/v1/subscriptions"
                                                  }
                                  },
                                  {
                                      "name":  "Cancel Subscription",
                                      "request":  {
                                                      "method":  "POST",
                                                      "header":  [

                                                                 ],
                                                      "url":  "{{base_url}}/api/v1/subscriptions/{{subscription_id}}/cancel"
                                                  }
                                  },
                                  {
                                      "name":  "Webhook Test",
                                      "request":  {
                                                      "method":  "POST",
                                                      "header":  [

                                                                 ],
                                                      "body":  {
                                                                   "mode":  "raw",
                                                                   "raw":  "{\n  \"event\": \"payment.confirmed\",\n  \"url\": \"https://example.com/webhooks/prolificex\"\n}"
                                                               },
                                                      "url":  "{{base_url}}/api/v1/webhooks/test"
                                                  }
                                  },
                                  {
                                      "name":  "List Sub Merchants",
                                      "request":  {
                                                      "method":  "GET",
                                                      "header":  [

                                                                 ],
                                                      "url":  "{{base_url}}/api/v1/sub-merchants"
                                                  }
                                  },
                                  {
                                      "name":  "Create Sub Merchant",
                                      "request":  {
                                                      "method":  "POST",
                                                      "header":  [

                                                                 ],
                                                      "body":  {
                                                                   "mode":  "raw",
                                                                   "raw":  "{\n  \"name\": \"Child Merchant\",\n  \"email\": \"child@example.com\",\n  \"metadata\": {\n    \"source\": \"postman\"\n  }\n}"
                                                               },
                                                      "url":  "{{base_url}}/api/v1/sub-merchants"
                                                  }
                                  },
                                  {
                                      "name":  "List Addresses",
                                      "request":  {
                                                      "method":  "GET",
                                                      "header":  [

                                                                 ],
                                                      "url":  "{{base_url}}/api/v1/addresses"
                                                  }
                                  },
                                  {
                                      "name":  "Update Address",
                                      "request":  {
                                                      "method":  "PATCH",
                                                      "header":  [

                                                                 ],
                                                      "body":  {
                                                                   "mode":  "raw",
                                                                   "raw":  "{\n  \"label\": \"Main deposit address\",\n  \"metadata\": {\n    \"source\": \"postman\"\n  }\n}"
                                                               },
                                                      "url":  "{{base_url}}/api/v1/addresses/{{address_id}}"
                                                  }
                                  }
                              ]
                 },
                 {
                     "name":  "05 Public Checkout",
                     "item":  [
                                  {
                                      "name":  "Checkout Page",
                                      "request":  {
                                                      "method":  "GET",
                                                      "header":  [

                                                                 ],
                                                      "url":  "{{base_url}}/checkout/{{payment_id}}"
                                                  }
                                  }
                              ]
                 },
                 {
                     "name":  "06 Signer Service - Bearer Token",
                     "item":  [
                                  {
                                      "name":  "Signer Hot Wallet",
                                      "request":  {
                                                      "method":  "GET",
                                                      "auth":  {
                                                                   "type":  "bearer",
                                                                   "bearer":  [
                                                                                  {
                                                                                      "key":  "token",
                                                                                      "value":  "{{tron_signer_token}}",
                                                                                      "type":  "string"
                                                                                  }
                                                                              ]
                                                               },
                                                      "header":  [
                                                                     {
                                                                         "key":  "Accept",
                                                                         "value":  "application/json"
                                                                     }
                                                                 ],
                                                      "url":  "{{signer_url}}/v1/hot-wallet"
                                                  }
                                  },
                                  {
                                      "name":  "Create Signer Hot Wallet",
                                      "request":  {
                                                      "method":  "POST",
                                                      "auth":  {
                                                                   "type":  "bearer",
                                                                   "bearer":  [
                                                                                  {
                                                                                      "key":  "token",
                                                                                      "value":  "{{tron_signer_token}}",
                                                                                      "type":  "string"
                                                                                  }
                                                                              ]
                                                               },
                                                      "header":  [
                                                                     {
                                                                         "key":  "Accept",
                                                                         "value":  "application/json"
                                                                     }
                                                                 ],
                                                      "url":  "{{signer_url}}/v1/hot-wallet"
                                                  }
                                  },
                                  {
                                      "name":  "Generate Deposit Address Directly",
                                      "request":  {
                                                      "method":  "POST",
                                                      "auth":  {
                                                                   "type":  "bearer",
                                                                   "bearer":  [
                                                                                  {
                                                                                      "key":  "token",
                                                                                      "value":  "{{tron_signer_token}}",
                                                                                      "type":  "string"
                                                                                  }
                                                                              ]
                                                               },
                                                      "header":  [
                                                                     {
                                                                         "key":  "Accept",
                                                                         "value":  "application/json"
                                                                     },
                                                                     {
                                                                         "key":  "Content-Type",
                                                                         "value":  "application/json"
                                                                     }
                                                                 ],
                                                      "body":  {
                                                                   "mode":  "raw",
                                                                   "raw":  "{\n  \"network\": \"tron\",\n  \"environment\": \"sandbox\",\n  \"reference\": \"postman_invoice_001\"\n}"
                                                               },
                                                      "url":  "{{signer_url}}/v1/addresses"
                                                  }
                                  },
                                  {
                                      "name":  "Validate TRON Address",
                                      "request":  {
                                                      "method":  "POST",
                                                      "auth":  {
                                                                   "type":  "bearer",
                                                                   "bearer":  [
                                                                                  {
                                                                                      "key":  "token",
                                                                                      "value":  "{{tron_signer_token}}",
                                                                                      "type":  "string"
                                                                                  }
                                                                              ]
                                                               },
                                                      "header":  [
                                                                     {
                                                                         "key":  "Accept",
                                                                         "value":  "application/json"
                                                                     },
                                                                     {
                                                                         "key":  "Content-Type",
                                                                         "value":  "application/json"
                                                                     }
                                                                 ],
                                                      "body":  {
                                                                   "mode":  "raw",
                                                                   "raw":  "{\n  \"address\": \"{{destination_tron_address}}\"\n}"
                                                               },
                                                      "url":  "{{signer_url}}/wallet/validateaddress"
                                                  }
                                  },
                                  {
                                      "name":  "Create Transfer Directly",
                                      "request":  {
                                                      "method":  "POST",
                                                      "auth":  {
                                                                   "type":  "bearer",
                                                                   "bearer":  [
                                                                                  {
                                                                                      "key":  "token",
                                                                                      "value":  "{{tron_signer_token}}",
                                                                                      "type":  "string"
                                                                                  }
                                                                              ]
                                                               },
                                                      "header":  [
                                                                     {
                                                                         "key":  "Accept",
                                                                         "value":  "application/json"
                                                                     },
                                                                     {
                                                                         "key":  "Content-Type",
                                                                         "value":  "application/json"
                                                                     }
                                                                 ],
                                                      "body":  {
                                                                   "mode":  "raw",
                                                                   "raw":  "{\n  \"network\": \"tron\",\n  \"asset\": \"USDTTRC20\",\n  \"to_address\": \"{{destination_tron_address}}\",\n  \"amount\": \"1.00\",\n  \"idempotency_key\": \"postman_transfer_{{$timestamp}}\"\n}"
                                                               },
                                                      "url":  "{{signer_url}}/v1/transfers"
                                                  }
                                  },
                                  {
                                      "name":  "Get Signer Transfer",
                                      "request":  {
                                                      "method":  "GET",
                                                      "auth":  {
                                                                   "type":  "bearer",
                                                                   "bearer":  [
                                                                                  {
                                                                                      "key":  "token",
                                                                                      "value":  "{{tron_signer_token}}",
                                                                                      "type":  "string"
                                                                                  }
                                                                              ]
                                                               },
                                                      "header":  [
                                                                     {
                                                                         "key":  "Accept",
                                                                         "value":  "application/json"
                                                                     }
                                                                 ],
                                                      "url":  "{{signer_url}}/v1/transfers/{{payout_id}}"
                                                  }
                                  }
                              ]
                 }
             ]
}