Get a payment intent
Fetch a payment intent by id. Scoped to the authenticating merchant and the key's stamped environment; intents that belong to another merchant or environment return 404 indistinguishably from unknown ids.
Fetch a payment intent by id. Scoped to the authenticating merchant and the key's stamped environment; intents that belong to another merchant or environment return 404 indistinguishably from unknown ids.
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
application/json
curl -X GET "https://example.com/payment_intents/string"{ "amount": "10000", "checkout_mode": "hosted", "country": "MY", "created_at": "2026-05-09T12:34:00.000Z", "currency": "MYR", "environment": "test", "failure_code": null, "failure_message": null, "id": "dord_01HZYABCDXYZ", "merchant_reference": "order-2026-05-09-0001", "next_action": { "expires_at": "2026-05-09T12:49:00.000Z", "type": "redirect_to_url", "url": "https://checkout.example/pay/dord_01HZYABCDXYZ" }, "object": "payment_intent", "payment_method": "FPX", "processing_reason": null, "receipt": null, "status": "succeeded", "updated_at": "2026-05-09T12:34:02.000Z"}List payment intents GET
List payment intents for the authenticating merchant in the key's environment, ordered most-recent-first. Walk pages via `next_cursor`. Filters narrow the set; cursor and filters are independent; apply the filters again on each page request.
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.