{
  "_type": "export",
  "__export_format": 4,
  "__export_date": "2026-05-02T12:01:04.636Z",
  "__export_source": "tokenpay.dev-portal:S089-WS3",
  "resources": [
    {
      "_id": "wrk_tokenpay_v1",
      "_type": "workspace",
      "parentId": null,
      "name": "TokenPay Merchant API",
      "description": "This document is the machine-readable contract for every v1 merchant-facing\nendpoint served by `gateway-service`. It is the source of truth for the\ndeveloper portal, SDKs, and Postman collection — if the spec and the\nimplementation disagree, the implementation is the bug.\n\nScope boundary:\n  * **Included**: the 20 routes under `/v1` that are part of the public\n    merchant contract.\n  * **Not included**: admin-only routes (`/v1/merchants/*`,\n    `/admin/*`), dashboard dual-auth routes (`/v1/merchant-payments`,\n    `/v1/merchant-settlements`, `/v1/merchant-webhooks`,\n    `/v1/merchants/me/*`), service-to-service endpoints (`/internal/*`),\n    and merchant-auth/onboarding/application surfaces\n    (`/merchant-auth/*`, `/merchant-onboarding/*`,\n    `/merchant-applications/*`).\n\nSee `docs/api/VERSIONING.md` for the stability guarantee and deprecation\npolicy that applies to every operation below.\n"
    },
    {
      "_id": "env_tokenpay_v1",
      "_type": "environment",
      "parentId": "wrk_tokenpay_v1",
      "name": "Base environment",
      "data": {
        "base_url": "https://api.tokenpayment.io",
        "api_key": "tk_test_replace_me"
      },
      "isPrivate": false,
      "modified": 1777723264635,
      "created": 1777723264635
    },
    {
      "_id": "req_listPayments",
      "_type": "request",
      "parentId": "wrk_tokenpay_v1",
      "name": "GET /v1/payments — List payments for the authenticated merchant.",
      "method": "GET",
      "url": "{{ _.base_url }}/v1/payments",
      "headers": [
        {
          "name": "X-API-Key",
          "value": "{{ _.api_key }}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {},
      "description": "List payments for the authenticated merchant.",
      "metaSortKey": -1
    },
    {
      "_id": "req_createPayment",
      "_type": "request",
      "parentId": "wrk_tokenpay_v1",
      "name": "POST /v1/payments — Create a gateway payment. [DEPRECATED — use `/v1/trades`]",
      "method": "POST",
      "url": "{{ _.base_url }}/v1/payments",
      "headers": [
        {
          "name": "X-API-Key",
          "value": "{{ _.api_key }}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {
        "mimeType": "application/json",
        "text": "{\n  \"example\": \"see-openapi\"\n}"
      },
      "description": "Create a gateway payment. [DEPRECATED — use `/v1/trades`]",
      "metaSortKey": -2
    },
    {
      "_id": "req_getPayment",
      "_type": "request",
      "parentId": "wrk_tokenpay_v1",
      "name": "GET /v1/payments/{id} — Get a payment by ID.",
      "method": "GET",
      "url": "{{ _.base_url }}/v1/payments/{id}",
      "headers": [
        {
          "name": "X-API-Key",
          "value": "{{ _.api_key }}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {},
      "description": "Get a payment by ID.",
      "metaSortKey": -3
    },
    {
      "_id": "req_getPaymentCheckout",
      "_type": "request",
      "parentId": "wrk_tokenpay_v1",
      "name": "GET /v1/payments/{id}/checkout — Fetch the data needed to render the checkout widget.",
      "method": "GET",
      "url": "{{ _.base_url }}/v1/payments/{id}/checkout",
      "headers": [
        {
          "name": "X-API-Key",
          "value": "{{ _.api_key }}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {},
      "description": "Fetch the data needed to render the checkout widget.",
      "metaSortKey": -4
    },
    {
      "_id": "req_cancelPayment",
      "_type": "request",
      "parentId": "wrk_tokenpay_v1",
      "name": "POST /v1/payments/{id}/cancel — Cancel a payment that is still in an early (pre-paid) state.",
      "method": "POST",
      "url": "{{ _.base_url }}/v1/payments/{id}/cancel",
      "headers": [
        {
          "name": "X-API-Key",
          "value": "{{ _.api_key }}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {},
      "description": "Cancel a payment that is still in an early (pre-paid) state.",
      "metaSortKey": -5
    },
    {
      "_id": "req_uploadPaymentProof",
      "_type": "request",
      "parentId": "wrk_tokenpay_v1",
      "name": "POST /v1/payments/{id}/proof — Upload a payment proof image and transition to `confirming`.",
      "method": "POST",
      "url": "{{ _.base_url }}/v1/payments/{id}/proof",
      "headers": [
        {
          "name": "X-API-Key",
          "value": "{{ _.api_key }}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {},
      "description": "Upload a payment proof image and transition to `confirming`.",
      "metaSortKey": -6
    },
    {
      "_id": "req_getPaymentPromptPayQR",
      "_type": "request",
      "parentId": "wrk_tokenpay_v1",
      "name": "GET /v1/payments/{id}/promptpay-qr — PNG render of the dynamic PromptPay QR for a payment.",
      "method": "GET",
      "url": "{{ _.base_url }}/v1/payments/{id}/promptpay-qr",
      "headers": [
        {
          "name": "X-API-Key",
          "value": "{{ _.api_key }}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {},
      "description": "PNG render of the dynamic PromptPay QR for a payment.",
      "metaSortKey": -7
    },
    {
      "_id": "req_getRates",
      "_type": "request",
      "parentId": "wrk_tokenpay_v1",
      "name": "GET /v1/rates — Snapshot of liquidity and best-rate for a currency/payment-method pair.",
      "method": "GET",
      "url": "{{ _.base_url }}/v1/rates",
      "headers": [
        {
          "name": "X-API-Key",
          "value": "{{ _.api_key }}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {},
      "description": "Snapshot of liquidity and best-rate for a currency/payment-method pair.",
      "metaSortKey": -8
    },
    {
      "_id": "req_listThaiBanks",
      "_type": "request",
      "parentId": "wrk_tokenpay_v1",
      "name": "GET /v1/reference/thai-banks — Directory of Thai banks supported as settlement destinations.",
      "method": "GET",
      "url": "{{ _.base_url }}/v1/reference/thai-banks",
      "headers": [
        {
          "name": "X-API-Key",
          "value": "{{ _.api_key }}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {},
      "description": "Directory of Thai banks supported as settlement destinations.",
      "metaSortKey": -9
    },
    {
      "_id": "req_generatePromptPayQR",
      "_type": "request",
      "parentId": "wrk_tokenpay_v1",
      "name": "POST /v1/promptpay/qr — Generate an EMVCo PromptPay payload string from a PromptPay ID + amount.",
      "method": "POST",
      "url": "{{ _.base_url }}/v1/promptpay/qr",
      "headers": [
        {
          "name": "X-API-Key",
          "value": "{{ _.api_key }}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {
        "mimeType": "application/json",
        "text": "{\n  \"example\": \"see-openapi\"\n}"
      },
      "description": "Generate an EMVCo PromptPay payload string from a PromptPay ID + amount.",
      "metaSortKey": -10
    },
    {
      "_id": "req_listSettlements",
      "_type": "request",
      "parentId": "wrk_tokenpay_v1",
      "name": "GET /v1/settlements — List settlements (cursor-paginated) for the authenticated merchant.",
      "method": "GET",
      "url": "{{ _.base_url }}/v1/settlements",
      "headers": [
        {
          "name": "X-API-Key",
          "value": "{{ _.api_key }}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {},
      "description": "List settlements (cursor-paginated) for the authenticated merchant.",
      "metaSortKey": -11
    },
    {
      "_id": "req_getMerchantBalance",
      "_type": "request",
      "parentId": "wrk_tokenpay_v1",
      "name": "GET /v1/merchants/{id}/balance — Merchant PAY balance + deficit projection.",
      "method": "GET",
      "url": "{{ _.base_url }}/v1/merchants/{id}/balance",
      "headers": [
        {
          "name": "X-API-Key",
          "value": "{{ _.api_key }}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {},
      "description": "Merchant PAY balance + deficit projection.",
      "metaSortKey": -12
    },
    {
      "_id": "req_receiverConfirmPendingFunds",
      "_type": "request",
      "parentId": "wrk_tokenpay_v1",
      "name": "POST /v1/pending-funds/{id}/receiver-confirm — Receiver-side proof on a pending_funds row.",
      "method": "POST",
      "url": "{{ _.base_url }}/v1/pending-funds/{id}/receiver-confirm",
      "headers": [
        {
          "name": "X-API-Key",
          "value": "{{ _.api_key }}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {
        "mimeType": "application/json",
        "text": "{\n  \"example\": \"see-openapi\"\n}"
      },
      "description": "Receiver-side proof on a pending_funds row.",
      "metaSortKey": -13
    },
    {
      "_id": "req_listMerchantSellOrders",
      "_type": "request",
      "parentId": "wrk_tokenpay_v1",
      "name": "GET /v1/merchant-sell-orders — List sell orders for the authenticated merchant.",
      "method": "GET",
      "url": "{{ _.base_url }}/v1/merchant-sell-orders",
      "headers": [
        {
          "name": "X-API-Key",
          "value": "{{ _.api_key }}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {},
      "description": "List sell orders for the authenticated merchant.",
      "metaSortKey": -14
    },
    {
      "_id": "req_createMerchantSellOrder",
      "_type": "request",
      "parentId": "wrk_tokenpay_v1",
      "name": "POST /v1/merchant-sell-orders — Create a new sell order.",
      "method": "POST",
      "url": "{{ _.base_url }}/v1/merchant-sell-orders",
      "headers": [
        {
          "name": "X-API-Key",
          "value": "{{ _.api_key }}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {
        "mimeType": "application/json",
        "text": "{\n  \"example\": \"see-openapi\"\n}"
      },
      "description": "Create a new sell order.",
      "metaSortKey": -15
    },
    {
      "_id": "req_getMerchantSellOrder",
      "_type": "request",
      "parentId": "wrk_tokenpay_v1",
      "name": "GET /v1/merchant-sell-orders/{id} — Read a single sell order.",
      "method": "GET",
      "url": "{{ _.base_url }}/v1/merchant-sell-orders/{id}",
      "headers": [
        {
          "name": "X-API-Key",
          "value": "{{ _.api_key }}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {},
      "description": "Read a single sell order.",
      "metaSortKey": -16
    },
    {
      "_id": "req_confirmSellOrderCashLeg",
      "_type": "request",
      "parentId": "wrk_tokenpay_v1",
      "name": "POST /v1/merchant-sell-orders/{id}/confirm-cash-leg — Confirm the merchant has executed the cash leg externally.",
      "method": "POST",
      "url": "{{ _.base_url }}/v1/merchant-sell-orders/{id}/confirm-cash-leg",
      "headers": [
        {
          "name": "X-API-Key",
          "value": "{{ _.api_key }}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {
        "mimeType": "application/json",
        "text": "{\n  \"example\": \"see-openapi\"\n}"
      },
      "description": "Confirm the merchant has executed the cash leg externally.",
      "metaSortKey": -17
    },
    {
      "_id": "req_listReceiverConfirmAudit",
      "_type": "request",
      "parentId": "wrk_tokenpay_v1",
      "name": "GET /admin/audit/receiver-confirm — Admin read-only list of receiver-confirm audit rows.",
      "method": "GET",
      "url": "{{ _.base_url }}/admin/audit/receiver-confirm",
      "headers": [
        {
          "name": "X-API-Key",
          "value": "{{ _.api_key }}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {},
      "description": "Admin read-only list of receiver-confirm audit rows.",
      "metaSortKey": -18
    },
    {
      "_id": "req_getReceiverConfirmAuditRow",
      "_type": "request",
      "parentId": "wrk_tokenpay_v1",
      "name": "GET /admin/audit/receiver-confirm/{id} — Admin read-only detail for a single audit row.",
      "method": "GET",
      "url": "{{ _.base_url }}/admin/audit/receiver-confirm/{id}",
      "headers": [
        {
          "name": "X-API-Key",
          "value": "{{ _.api_key }}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {},
      "description": "Admin read-only detail for a single audit row.",
      "metaSortKey": -19
    },
    {
      "_id": "req_listMerchantDisputes",
      "_type": "request",
      "parentId": "wrk_tokenpay_v1",
      "name": "GET /v1/merchant-disputes — List disputes for the authenticated merchant.",
      "method": "GET",
      "url": "{{ _.base_url }}/v1/merchant-disputes",
      "headers": [
        {
          "name": "X-API-Key",
          "value": "{{ _.api_key }}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {},
      "description": "List disputes for the authenticated merchant.",
      "metaSortKey": -20
    },
    {
      "_id": "req_createMerchantDispute",
      "_type": "request",
      "parentId": "wrk_tokenpay_v1",
      "name": "POST /v1/merchant-disputes — Create a merchant-initiated dispute.",
      "method": "POST",
      "url": "{{ _.base_url }}/v1/merchant-disputes",
      "headers": [
        {
          "name": "X-API-Key",
          "value": "{{ _.api_key }}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {
        "mimeType": "application/json",
        "text": "{\n  \"example\": \"see-openapi\"\n}"
      },
      "description": "Create a merchant-initiated dispute.",
      "metaSortKey": -21
    },
    {
      "_id": "req_getMerchantDispute",
      "_type": "request",
      "parentId": "wrk_tokenpay_v1",
      "name": "GET /v1/merchant-disputes/{id} — Read a single dispute (merchant-scoped).",
      "method": "GET",
      "url": "{{ _.base_url }}/v1/merchant-disputes/{id}",
      "headers": [
        {
          "name": "X-API-Key",
          "value": "{{ _.api_key }}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {},
      "description": "Read a single dispute (merchant-scoped).",
      "metaSortKey": -22
    },
    {
      "_id": "req_listAdminDisputes",
      "_type": "request",
      "parentId": "wrk_tokenpay_v1",
      "name": "GET /admin/disputes — Admin list of disputes across all merchants.",
      "method": "GET",
      "url": "{{ _.base_url }}/admin/disputes",
      "headers": [
        {
          "name": "X-API-Key",
          "value": "{{ _.api_key }}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {},
      "description": "Admin list of disputes across all merchants.",
      "metaSortKey": -23
    },
    {
      "_id": "req_getAdminDisputeQueue",
      "_type": "request",
      "parentId": "wrk_tokenpay_v1",
      "name": "GET /admin/disputes/queue — Stuck-PAY admin queue (non-terminal disputes ordered oldest-first).",
      "method": "GET",
      "url": "{{ _.base_url }}/admin/disputes/queue",
      "headers": [
        {
          "name": "X-API-Key",
          "value": "{{ _.api_key }}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {},
      "description": "Stuck-PAY admin queue (non-terminal disputes ordered oldest-first).",
      "metaSortKey": -24
    },
    {
      "_id": "req_getAdminDispute",
      "_type": "request",
      "parentId": "wrk_tokenpay_v1",
      "name": "GET /admin/disputes/{id} — Admin read of a single dispute (with full event audit trail).",
      "method": "GET",
      "url": "{{ _.base_url }}/admin/disputes/{id}",
      "headers": [
        {
          "name": "X-API-Key",
          "value": "{{ _.api_key }}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {},
      "description": "Admin read of a single dispute (with full event audit trail).",
      "metaSortKey": -25
    },
    {
      "_id": "req_resolveAdminDispute",
      "_type": "request",
      "parentId": "wrk_tokenpay_v1",
      "name": "POST /admin/disputes/{id}/resolve — Super-admin resolve a dispute (terminal transition).",
      "method": "POST",
      "url": "{{ _.base_url }}/admin/disputes/{id}/resolve",
      "headers": [
        {
          "name": "X-API-Key",
          "value": "{{ _.api_key }}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {
        "mimeType": "application/json",
        "text": "{\n  \"example\": \"see-openapi\"\n}"
      },
      "description": "Super-admin resolve a dispute (terminal transition).",
      "metaSortKey": -26
    },
    {
      "_id": "req_listMerchantBuyOrders",
      "_type": "request",
      "parentId": "wrk_tokenpay_v1",
      "name": "GET /v1/merchant-buy-orders — List buy_orders for the calling merchant",
      "method": "GET",
      "url": "{{ _.base_url }}/v1/merchant-buy-orders",
      "headers": [
        {
          "name": "X-API-Key",
          "value": "{{ _.api_key }}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {},
      "description": "List buy_orders for the calling merchant",
      "metaSortKey": -27
    },
    {
      "_id": "req_createMerchantBuyOrder",
      "_type": "request",
      "parentId": "wrk_tokenpay_v1",
      "name": "POST /v1/merchant-buy-orders — Create a buy_order in pending status",
      "method": "POST",
      "url": "{{ _.base_url }}/v1/merchant-buy-orders",
      "headers": [
        {
          "name": "X-API-Key",
          "value": "{{ _.api_key }}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {
        "mimeType": "application/json",
        "text": "{\n  \"example\": \"see-openapi\"\n}"
      },
      "description": "Create a buy_order in pending status",
      "metaSortKey": -28
    },
    {
      "_id": "req_getMerchantBuyOrder",
      "_type": "request",
      "parentId": "wrk_tokenpay_v1",
      "name": "GET /v1/merchant-buy-orders/{id} — Fetch a single buy_order by id",
      "method": "GET",
      "url": "{{ _.base_url }}/v1/merchant-buy-orders/{id}",
      "headers": [
        {
          "name": "X-API-Key",
          "value": "{{ _.api_key }}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {},
      "description": "Fetch a single buy_order by id",
      "metaSortKey": -29
    },
    {
      "_id": "req_cancelMerchantBuyOrder",
      "_type": "request",
      "parentId": "wrk_tokenpay_v1",
      "name": "POST /v1/merchant-buy-orders/{id}/cancel — Cancel a pending buy_order",
      "method": "POST",
      "url": "{{ _.base_url }}/v1/merchant-buy-orders/{id}/cancel",
      "headers": [
        {
          "name": "X-API-Key",
          "value": "{{ _.api_key }}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {},
      "description": "Cancel a pending buy_order",
      "metaSortKey": -30
    },
    {
      "_id": "req_getPendingSettlements",
      "_type": "request",
      "parentId": "wrk_tokenpay_v1",
      "name": "GET /v1/settlements/pending — Summary of unsettled accruals grouped by currency.",
      "method": "GET",
      "url": "{{ _.base_url }}/v1/settlements/pending",
      "headers": [
        {
          "name": "X-API-Key",
          "value": "{{ _.api_key }}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {},
      "description": "Summary of unsettled accruals grouped by currency.",
      "metaSortKey": -31
    },
    {
      "_id": "req_getSettlementReport",
      "_type": "request",
      "parentId": "wrk_tokenpay_v1",
      "name": "GET /v1/settlements/report — Aggregate settlement report for a date range.",
      "method": "GET",
      "url": "{{ _.base_url }}/v1/settlements/report",
      "headers": [
        {
          "name": "X-API-Key",
          "value": "{{ _.api_key }}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {},
      "description": "Aggregate settlement report for a date range.",
      "metaSortKey": -32
    },
    {
      "_id": "req_exportSettlements",
      "_type": "request",
      "parentId": "wrk_tokenpay_v1",
      "name": "GET /v1/settlements/export — Export settlements as JSON or CSV.",
      "method": "GET",
      "url": "{{ _.base_url }}/v1/settlements/export",
      "headers": [
        {
          "name": "X-API-Key",
          "value": "{{ _.api_key }}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {},
      "description": "Export settlements as JSON or CSV.",
      "metaSortKey": -33
    },
    {
      "_id": "req_listAdjustments",
      "_type": "request",
      "parentId": "wrk_tokenpay_v1",
      "name": "GET /v1/settlements/adjustments — List settlement adjustments for the authenticated merchant.",
      "method": "GET",
      "url": "{{ _.base_url }}/v1/settlements/adjustments",
      "headers": [
        {
          "name": "X-API-Key",
          "value": "{{ _.api_key }}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {},
      "description": "List settlement adjustments for the authenticated merchant.",
      "metaSortKey": -34
    },
    {
      "_id": "req_getSettlement",
      "_type": "request",
      "parentId": "wrk_tokenpay_v1",
      "name": "GET /v1/settlements/{id} — Get a settlement with its line items.",
      "method": "GET",
      "url": "{{ _.base_url }}/v1/settlements/{id}",
      "headers": [
        {
          "name": "X-API-Key",
          "value": "{{ _.api_key }}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {},
      "description": "Get a settlement with its line items.",
      "metaSortKey": -35
    },
    {
      "_id": "req_getSettlementAuditLog",
      "_type": "request",
      "parentId": "wrk_tokenpay_v1",
      "name": "GET /v1/settlements/{id}/audit-log — Merchant-visible audit trail for a settlement.",
      "method": "GET",
      "url": "{{ _.base_url }}/v1/settlements/{id}/audit-log",
      "headers": [
        {
          "name": "X-API-Key",
          "value": "{{ _.api_key }}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {},
      "description": "Merchant-visible audit trail for a settlement.",
      "metaSortKey": -36
    },
    {
      "_id": "req_retrySettlement",
      "_type": "request",
      "parentId": "wrk_tokenpay_v1",
      "name": "POST /v1/settlements/{id}/retry — Retry a failed settlement by resetting it to `pending`.",
      "method": "POST",
      "url": "{{ _.base_url }}/v1/settlements/{id}/retry",
      "headers": [
        {
          "name": "X-API-Key",
          "value": "{{ _.api_key }}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {},
      "description": "Retry a failed settlement by resetting it to `pending`.",
      "metaSortKey": -37
    },
    {
      "_id": "req_disputeSettlement",
      "_type": "request",
      "parentId": "wrk_tokenpay_v1",
      "name": "POST /v1/settlements/{id}/dispute — Open a dispute against a completed settlement.",
      "method": "POST",
      "url": "{{ _.base_url }}/v1/settlements/{id}/dispute",
      "headers": [
        {
          "name": "X-API-Key",
          "value": "{{ _.api_key }}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {
        "mimeType": "application/json",
        "text": "{\n  \"example\": \"see-openapi\"\n}"
      },
      "description": "Open a dispute against a completed settlement.",
      "metaSortKey": -38
    },
    {
      "_id": "req_listWebhookDeliveries",
      "_type": "request",
      "parentId": "wrk_tokenpay_v1",
      "name": "GET /v1/webhooks/deliveries — Recent webhook delivery attempts for this merchant.",
      "method": "GET",
      "url": "{{ _.base_url }}/v1/webhooks/deliveries",
      "headers": [
        {
          "name": "X-API-Key",
          "value": "{{ _.api_key }}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {},
      "description": "Recent webhook delivery attempts for this merchant.",
      "metaSortKey": -39
    }
  ]
}
