Checkout API
Checkout is used to collect the first card payment and tokenize the card for future renewals.POST /v1/checkout/order
Initialize a checkout order for a plan and customer email. RequiresX-Api-Key.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
planCode | string | Yes | Plan code. |
order.callbackUrl | string | Yes | Checkout callback URL. |
order.customerEmail | string | Yes | Customer email. |
order.amount | integer | Yes | Accepted in request, overwritten with plan amount. |
order.currency | string | No | Accepted in request, overwritten with plan currency. |
order.orderReference | string | No | Merchant reference stored in metadata. |
order.customerId | string | No | Optional provider customer ID. |
order.accountId | string | No | Optional account ID override. |
order.orderMetaData | object | No | Extra metadata. |
Response
Related webhook events
payment_method.attachedinvoice.paidsubscription.createdpayment_success
