Create checkout

Creates a new checkout payment. Returns a provider-rendered payment UI and a payment_id to track the payment's lifecycle.

Supports two request modes:

  • Mode A: Standard checkout using merchant credentials (X-Merchant-Id, X-Merchant-Api-Key headers required); send amount, currency and customer_email.
  • Mode B: Widget-token checkout: send widget_token; amount, currency, order and merchant come from the token (merchant headers optional).

Each field below says what it means in each mode.

Note: saved_payment_method_id, payment_method_type: "pay_by_bank", alternative_payment_method_id and the advanced-flow payment_method are mutually exclusive; combining them returns 400. Rail validation runs before the widget token is consumed, so a rejected request leaves the token usable.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

Pay with a method from effective_alternative_methods in POST /api/v1/checkout/lookup, e.g. stripe:apple_pay. It cannot be combined with saved_payment_method_id. Required with it: resume_id.

≥ 0

Amount in minor units, e.g. 4999 for £49.99. Mode A: required. Mode B: optional, and when sent it must match the token's exactly.

length ≥ 1

A card from the shopper's RezolvePay wallet (pvc_…). Send it with session_token.

3-letter ISO currency code. Mode A: required. Mode B: optional, and when sent it must match the token's.

The shopper, forwarded to the payment provider. Mode A: required. Mode B: omit for a guest paying with a new card; required with saved_payment_method_id or a wallet card.

length ≥ 1

The customer_id (pkc_…) returned by POST /api/v1/passkey/setup-intent, sent with setup_intent_id.

card (the default) or pay_by_bank. Pay by bank is offered only to an eligible merchant for a gbp order, and never for a recurring checkout.

A UUID v4 you generate for an alternative_payment_method_id checkout, so a shopper coming back from a redirect resumes the same payment. Only with alternative_payment_method_id.

Required with payment_method_type: pay_by_bank: your URL the shopper returns to after approving at their bank. The provider appends its own query parameters. Absolute https (http only for localhost in local development).

boolean
Defaults to false

Store the new card against customer_email for later checkouts. No effect for a guest; ignored when paying with a saved card or by bank.

Charge a card the shopper saved at an earlier checkout instead of collecting one. It must belong to this shopper, merchant and payment provider.

length ≥ 1

The session_token from the shopper's passkey sign-in, POST /api/v1/passkey/auth/verify. Sent with card_id.

length ≥ 1

A card the shopper just entered against the SetupIntent from POST /api/v1/passkey/setup-intent (seti_…). Send it with customer_id; save_card: true then keeps it in the shopper's wallet.

The single-use token from POST /api/v1/checkout/init. Selects Mode B: merchant, order, amount and currency come from the token, and merchant headers are not needed.

Responses

Language
Credentials
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json