Merchant API
Payment Intents

Cancel pending payment at provider

Request cancel-pending at the routed provider for a payment that is still pending. The provider call runs durably; poll the intent or wait for webhooks until status is terminal.

POST
/payment_intents/{id}/cancel-pending

Request cancel-pending at the routed provider for a payment that is still pending. The provider call runs durably; poll the intent or wait for webhooks until status is terminal.

AuthorizationBasic <token>

Merchant API key pair. Send as Authorization: Basic base64(publicKey:secretKey) — username is the public key (pk_live_… / pk_test_…), password is the secret key (sk_live_… / sk_test_…). The public key prefix determines the environment of every order created by the request — there is no body, query, or header override.

In: header

Path Parameters

id*string

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/payment_intents/string/cancel-pending"
{  "amount": "string",  "checkout_mode": "hosted",  "country": "string",  "created_at": "string",  "currency": "string",  "environment": "live",  "failure_code": "string",  "failure_message": "string",  "id": "string",  "merchant_reference": "string",  "next_action": {    "expires_at": "string",    "type": "redirect_to_url",    "url": "http://example.com"  },  "object": "payment_intent",  "payment_method": "string",  "processing_reason": "asynchronous",  "receipt": {    "status": "required"  },  "status": "processing",  "updated_at": "string"}