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.
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.
Authorization
apiKey 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
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"}Create a payment intent POST
Create a provider-neutral payment intent. `hosted` always enters branded AnyPay checkout; `merchant` requires a payment method and returns a canonical next action. An optional Provider is a strict policy-governed pin with no fallback. Idempotent on the complete create fingerprint under both `merchant_reference` and `Idempotency-Key`: identical replays return the original intent and changed input conflicts. The key's environment stamps the intent.
Confirm pending payment at provider POST
Request confirmation at the routed provider for a pending payment. The provider call runs durably; poll the intent or wait for webhooks until status is terminal.