{
  "info": {
    "name": "Nice Pay merchant API 2026-12-01",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "description": "Generated from the OpenAPI document. Set keyId and keySecret to a test key; every request is signed with NP1 by the collection's pre-request script. Money is a decimal string."
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.mynicepanel.com"
    },
    {
      "key": "apiVersion",
      "value": "2026-12-01"
    },
    {
      "key": "keyId",
      "value": ""
    },
    {
      "key": "keySecret",
      "value": ""
    }
  ],
  "event": [
    {
      "listen": "prerequest",
      "script": {
        "type": "text/javascript",
        "exec": [
          "// Nice Pay NP1 request signing (HMAC-SHA256). Set the collection variables",
          "// keyId and keySecret to a TEST key from the merchant portal (Developers → API keys).",
          "(function () {",
          "  var path = pm.variables.replaceIn(pm.request.url.getPath());",
          "  if (path.indexOf('/.well-known/') === 0) return; // public: not signed",
          "  var keyId = pm.variables.get('keyId');",
          "  var secret = pm.variables.get('keySecret');",
          "  if (!keyId || !secret) throw new Error('Set the collection variables keyId and keySecret (a test key).');",
          "  var enc = function (s) {",
          "    return encodeURIComponent(s).replace(/[!'()*]/g, function (c) { return '%' + c.charCodeAt(0).toString(16).toUpperCase(); });",
          "  };",
          "  var dec = function (s) {",
          "    try { return decodeURIComponent(String(s).replace(/\\+/g, ' ')); } catch (e) { return String(s); }",
          "  };",
          "  var pairs = [];",
          "  pm.request.url.query.each(function (q) {",
          "    if (q.disabled || q.key === null || q.key === undefined) return;",
          "    pairs.push([enc(dec(pm.variables.replaceIn(q.key))), enc(dec(pm.variables.replaceIn(q.value || '')))]);",
          "  });",
          "  pairs.sort(function (a, b) { return a[0] < b[0] ? -1 : a[0] > b[0] ? 1 : a[1] < b[1] ? -1 : a[1] > b[1] ? 1 : 0; });",
          "  var query = pairs.map(function (p) { return p[0] + '=' + p[1]; }).join('&');",
          "  var body = pm.request.body && pm.request.body.mode === 'raw' ? pm.variables.replaceIn(pm.request.body.raw || '') : '';",
          "  var timestamp = String(Math.floor(Date.now() / 1000));",
          "  var nonce = CryptoJS.lib.WordArray.random(16).toString(CryptoJS.enc.Base64).replace(/\\+/g, '-').replace(/\\//g, '_').replace(/=+$/, '');",
          "  var canonical = ['NP1', timestamp, nonce, pm.request.method.toUpperCase(), path, query, CryptoJS.SHA256(body).toString(CryptoJS.enc.Hex)].join('\\n');",
          "  var signature = CryptoJS.HmacSHA256(canonical, secret).toString(CryptoJS.enc.Base64);",
          "  pm.request.headers.upsert({ key: 'NP-Key-Id', value: keyId });",
          "  pm.request.headers.upsert({ key: 'NP-Timestamp', value: timestamp });",
          "  pm.request.headers.upsert({ key: 'NP-Nonce', value: nonce });",
          "  pm.request.headers.upsert({ key: 'NP-Algorithm', value: 'hmac-sha256' });",
          "  pm.request.headers.upsert({ key: 'NP-Signature', value: signature });",
          "})();"
        ]
      }
    }
  ],
  "item": [
    {
      "name": "Utilities",
      "item": [
        {
          "name": "Check credentials",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "NP-Version",
                "value": "{{apiVersion}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/ping",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "ping"
              ]
            },
            "description": "Check credentials. Scope: any valid key."
          }
        },
        {
          "name": "Methods available to this project, with fees",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "NP-Version",
                "value": "{{apiVersion}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/methods",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "methods"
              ]
            },
            "description": "Methods available to this project, with fees. Scope: any valid key."
          }
        },
        {
          "name": "The informational USDT/INR rate",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "NP-Version",
                "value": "{{apiVersion}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/reference-rates",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "reference-rates"
              ]
            },
            "description": "The informational USDT/INR rate. Scope: any valid key."
          }
        },
        {
          "name": "Service status: the API, webhooks and each rail (fed by the watchdog)",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "NP-Version",
                "value": "{{apiVersion}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/status",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "status"
              ]
            },
            "description": "Service status: the API, webhooks and each rail (fed by the watchdog). Scope: any valid key."
          }
        }
      ]
    },
    {
      "name": "Pay-ins",
      "item": [
        {
          "name": "Create a pay-in",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "NP-Version",
                "value": "{{apiVersion}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "Use your own order or withdrawal id in real code; reuse it when you retry."
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/payins",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "payins"
              ]
            },
            "description": "Create a pay-in. Scope: payins:write.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"merchant_order_id\": \"merchant-order-id-1\",\n  \"amount\": \"10000.00\",\n  \"currency\": \"INR\",\n  \"method\": \"upi\",\n  \"customer\": {\n    \"ref\": \"ref-1\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "List pay-ins",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "NP-Version",
                "value": "{{apiVersion}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/payins",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "payins"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "20",
                  "disabled": true
                },
                {
                  "key": "starting_after",
                  "value": "starting_after",
                  "disabled": true
                },
                {
                  "key": "ending_before",
                  "value": "ending_before",
                  "disabled": true
                },
                {
                  "key": "merchant_order_id",
                  "value": "merchant-order-id-1",
                  "disabled": true
                },
                {
                  "key": "status",
                  "value": "pending",
                  "disabled": true
                }
              ]
            },
            "description": "List pay-ins. Scope: payins:read."
          }
        },
        {
          "name": "Retrieve a pay-in",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "NP-Version",
                "value": "{{apiVersion}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/payins/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "payins",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Retrieve a pay-in. Scope: payins:read."
          }
        },
        {
          "name": "Cancel a pending pay-in",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "NP-Version",
                "value": "{{apiVersion}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/payins/:id/cancel",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "payins",
                ":id",
                "cancel"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Cancel a pending pay-in. Scope: payins:write."
          }
        },
        {
          "name": "Submit the customer's payment reference (UTR) for a desk pay-in",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "NP-Version",
                "value": "{{apiVersion}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/payins/:id/reference",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "payins",
                ":id",
                "reference"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Submit the customer's payment reference (UTR) for a desk pay-in. Scope: payins:write.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"reference\": \"reference\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "Payouts",
      "item": [
        {
          "name": "Create a payout",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "NP-Version",
                "value": "{{apiVersion}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "Use your own order or withdrawal id in real code; reuse it when you retry."
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/payouts",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "payouts"
              ]
            },
            "description": "Create a payout. Scope: payouts:write.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"merchant_payout_id\": \"merchant-payout-id-1\",\n  \"amount\": \"10000.00\",\n  \"currency\": \"INR\",\n  \"method\": \"upi\",\n  \"destination\": {\n    \"account_number\": \"account_number\",\n    \"ifsc\": \"ifsc\",\n    \"holder_name\": \"holder_name\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "List payouts",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "NP-Version",
                "value": "{{apiVersion}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/payouts",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "payouts"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "20",
                  "disabled": true
                },
                {
                  "key": "starting_after",
                  "value": "starting_after",
                  "disabled": true
                },
                {
                  "key": "ending_before",
                  "value": "ending_before",
                  "disabled": true
                },
                {
                  "key": "merchant_payout_id",
                  "value": "merchant-payout-id-1",
                  "disabled": true
                },
                {
                  "key": "status",
                  "value": "queued",
                  "disabled": true
                }
              ]
            },
            "description": "List payouts. Scope: payouts:read."
          }
        },
        {
          "name": "Retrieve a payout",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "NP-Version",
                "value": "{{apiVersion}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/payouts/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "payouts",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Retrieve a payout. Scope: payouts:read."
          }
        },
        {
          "name": "Cancel a queued payout",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "NP-Version",
                "value": "{{apiVersion}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/payouts/:id/cancel",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "payouts",
                ":id",
                "cancel"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Cancel a queued payout. Scope: payouts:write."
          }
        }
      ]
    },
    {
      "name": "Balances",
      "item": [
        {
          "name": "Balances per currency",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "NP-Version",
                "value": "{{apiVersion}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/balances",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "balances"
              ]
            },
            "description": "Balances per currency. Scope: balances:read."
          }
        },
        {
          "name": "Ledger entries of the merchant",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "NP-Version",
                "value": "{{apiVersion}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/balance-transactions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "balance-transactions"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "20",
                  "disabled": true
                },
                {
                  "key": "starting_after",
                  "value": "starting_after",
                  "disabled": true
                },
                {
                  "key": "ending_before",
                  "value": "ending_before",
                  "disabled": true
                },
                {
                  "key": "currency",
                  "value": "INR",
                  "disabled": true
                }
              ]
            },
            "description": "Ledger entries of the merchant. Scope: balances:read."
          }
        },
        {
          "name": "Request a settlement to a registered destination",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "NP-Version",
                "value": "{{apiVersion}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "Use your own order or withdrawal id in real code; reuse it when you retry."
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/settlements",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "settlements"
              ]
            },
            "description": "Request a settlement to a registered destination. Scope: settlements:write.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"amount\": \"10000.00\",\n  \"currency\": \"INR\",\n  \"destination_id\": \"destination_id\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "List settlements",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "NP-Version",
                "value": "{{apiVersion}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/settlements",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "settlements"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "20",
                  "disabled": true
                },
                {
                  "key": "starting_after",
                  "value": "starting_after",
                  "disabled": true
                },
                {
                  "key": "ending_before",
                  "value": "ending_before",
                  "disabled": true
                }
              ]
            },
            "description": "List settlements. Scope: settlements:read."
          }
        },
        {
          "name": "Retrieve a settlement",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "NP-Version",
                "value": "{{apiVersion}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/settlements/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "settlements",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Retrieve a settlement. Scope: settlements:read."
          }
        },
        {
          "name": "Destinations registered in the portal",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "NP-Version",
                "value": "{{apiVersion}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/settlement-destinations",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "settlement-destinations"
              ]
            },
            "description": "Destinations registered in the portal. Scope: settlements:read."
          }
        },
        {
          "name": "The merchant's top-ups (prefunding)",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "NP-Version",
                "value": "{{apiVersion}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/topups",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "topups"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "20",
                  "disabled": true
                },
                {
                  "key": "starting_after",
                  "value": "starting_after",
                  "disabled": true
                },
                {
                  "key": "ending_before",
                  "value": "ending_before",
                  "disabled": true
                }
              ]
            },
            "description": "The merchant's top-ups (prefunding). Scope: balances:read."
          }
        },
        {
          "name": "The project's USDT top-up address per chain",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "NP-Version",
                "value": "{{apiVersion}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/topup-addresses",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "topup-addresses"
              ]
            },
            "description": "The project's USDT top-up address per chain. Scope: balances:read."
          }
        }
      ]
    },
    {
      "name": "Test mode",
      "item": [
        {
          "name": "Test mode: move a pay-in",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "NP-Version",
                "value": "{{apiVersion}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/test/payins/:id/simulate",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "test",
                "payins",
                ":id",
                "simulate"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Test mode: move a pay-in. Scope: payins:write. Test mode only.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"action\": \"succeed\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Test mode: move a payout",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "NP-Version",
                "value": "{{apiVersion}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/test/payouts/:id/simulate",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "test",
                "payouts",
                ":id",
                "simulate"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Test mode: move a payout. Scope: payouts:write. Test mode only.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"action\": \"succeed\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "Crypto",
      "item": [
        {
          "name": "Get or create a customer's permanent USDT address",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "NP-Version",
                "value": "{{apiVersion}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/crypto/addresses",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "crypto",
                "addresses"
              ]
            },
            "description": "Get or create a customer's permanent USDT address. Scope: crypto:write.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"customer_ref\": \"customer-ref-1\",\n  \"chain\": \"tron\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "List customer addresses",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "NP-Version",
                "value": "{{apiVersion}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/crypto/addresses",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "crypto",
                "addresses"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "20",
                  "disabled": true
                },
                {
                  "key": "starting_after",
                  "value": "starting_after",
                  "disabled": true
                },
                {
                  "key": "ending_before",
                  "value": "ending_before",
                  "disabled": true
                },
                {
                  "key": "customer_ref",
                  "value": "customer-ref-1",
                  "disabled": true
                },
                {
                  "key": "chain",
                  "value": "tron",
                  "disabled": true
                }
              ]
            },
            "description": "List customer addresses. Scope: crypto:read."
          }
        },
        {
          "name": "Retrieve a customer address",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "NP-Version",
                "value": "{{apiVersion}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/crypto/addresses/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "crypto",
                "addresses",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Retrieve a customer address. Scope: crypto:read."
          }
        }
      ]
    },
    {
      "name": "Events",
      "item": [
        {
          "name": "List events",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "NP-Version",
                "value": "{{apiVersion}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/events",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "events"
              ],
              "query": [
                {
                  "key": "after_sequence",
                  "value": "1",
                  "disabled": true
                },
                {
                  "key": "types[]",
                  "value": "payin.created",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "20",
                  "disabled": true
                }
              ]
            },
            "description": "List events. Scope: events:read."
          }
        },
        {
          "name": "Retrieve an event",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "NP-Version",
                "value": "{{apiVersion}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/events/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "events",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Retrieve an event. Scope: events:read."
          }
        },
        {
          "name": "Send an event to the webhook endpoints again",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "NP-Version",
                "value": "{{apiVersion}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/events/:id/redeliver",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "events",
                ":id",
                "redeliver"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Send an event to the webhook endpoints again. Scope: webhooks:write."
          }
        },
        {
          "name": "A 60-second, single-use WebSocket token",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "NP-Version",
                "value": "{{apiVersion}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/stream/tokens",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "stream",
                "tokens"
              ]
            },
            "description": "A 60-second, single-use WebSocket token. Scope: events:read.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "Webhooks",
      "item": [
        {
          "name": "List webhook endpoints",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "NP-Version",
                "value": "{{apiVersion}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/webhook-endpoints",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "webhook-endpoints"
              ]
            },
            "description": "List webhook endpoints. Scope: webhooks:write."
          }
        },
        {
          "name": "Add a webhook endpoint",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "NP-Version",
                "value": "{{apiVersion}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/webhook-endpoints",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "webhook-endpoints"
              ]
            },
            "description": "Add a webhook endpoint. Scope: webhooks:write.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"url\": \"url\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Retrieve a webhook endpoint",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "NP-Version",
                "value": "{{apiVersion}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/webhook-endpoints/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "webhook-endpoints",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Retrieve a webhook endpoint. Scope: webhooks:write."
          }
        },
        {
          "name": "Change a webhook endpoint",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "NP-Version",
                "value": "{{apiVersion}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/webhook-endpoints/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "webhook-endpoints",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Change a webhook endpoint. Scope: webhooks:write.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Remove a webhook endpoint",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "NP-Version",
                "value": "{{apiVersion}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/webhook-endpoints/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "webhook-endpoints",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Remove a webhook endpoint. Scope: webhooks:write."
          }
        },
        {
          "name": "Public keys that sign webhooks (JWKS)",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "NP-Version",
                "value": "{{apiVersion}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/.well-known/webhook-keys.json",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                ".well-known",
                "webhook-keys.json"
              ]
            },
            "description": "Public keys that sign webhooks (JWKS). Scope: any valid key."
          }
        }
      ]
    },
    {
      "name": "Reports",
      "item": [
        {
          "name": "Request a CSV export (balance transactions, pay-ins or payouts)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "NP-Version",
                "value": "{{apiVersion}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/reports",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "reports"
              ]
            },
            "description": "Request a CSV export (balance transactions, pay-ins or payouts). Scope: reports:write.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"kind\": \"balance_transactions\",\n  \"from\": \"2026-11-01\",\n  \"to\": \"2026-11-01\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Retrieve an export and its download link",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "NP-Version",
                "value": "{{apiVersion}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/reports/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "reports",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Retrieve an export and its download link. Scope: reports:write."
          }
        }
      ]
    }
  ]
}
