This request creates a checkout session using the unique identifier generated when the customer resource was created.
If your workflow requires sending the additional_data object, it can be sent as part of the checkout session.
POST/checkout/sessions
Body application/json
customer_idstring
The unique identifier of the customer, created using the Create Customer endpoint (UUID, 36 chars).
merchant_order_idstringrequired
The unique identifier of the customer’s order (MAX 255; MIN 3).
payment_descriptionstringrequired
The description of the payment (MAX 255; MIN 3).
callback_urlstring
The URL where we will redirect your customer after making the purchase. Required for alternative payment methods with redirection. (MAX 526; MIN 3)
countrystringrequired
Country where the transaction must be processed (MAX 2; MIN 2; ISO 3166-1).
account_idstringrequired
The unique identifier of the account. You find this information on the WHITELABEL dashboard (UUID, 36 chars).
amountobject
Specifies the payment amount object, with the value and currency.
Show amount properties
currencystringrequired
The currency used to make the payment. For a full list of currency codes, see Country reference (MAX 3; MIN 3; ISO 4217).
valuenumber<float>required
The payment amount (multiple of 0.0001).
alternative_amountobject
Alternative currency representation of the transaction amount.
Show alternative_amount properties
currencystringrequired
The alternative currency code. For a full list of currency codes, see Country reference (MAX 3; MIN 3; ISO 4217).
valuenumber<float>required
The alternative amount value (multiple of 0.0001).
shipping_methodsany[]
Delivery options the customer can pick from inside a wallet widget (Fast Checkout). The first method is preselected. The currency of every amount must match the session currency.
Show shipping_methods properties
idstringrequired
Merchant-defined identifier of the delivery method (MAX 255). Echoed back as shipping.method.id on the payment.
labelstringrequired
Name the wallet displays for the method (MAX 255).
detailstring
Optional secondary text, such as the delivery promise (MAX 255).
amountobjectrequired
Cost of the delivery method.
Show amount properties
currencystringrequired
ISO 4217 currency code. Must match the session currency.
valuenumber<float>required
Cost value (multiple of 0.0001).
delivery_estimateobject
Optional delivery window (date-only, format YYYY-MM-DD).
Show delivery_estimate properties
fromstring
Earliest delivery date.
tostring
Latest delivery date.
summary_itemsany[]required
Order breakdown the wallet sheet displays when this method is selected (at least one item; the last entry is the grand total).
Show summary_items properties
idstringrequired
Identifier of the line item (MAX 255).
labelstringrequired
Name the wallet displays for the line item (MAX 255).
amountobjectrequired
Amount of the line item. Currency must match the session currency.
Show amount properties
currencystringrequired
ISO 4217 currency code.
valuenumber<float>required
Amount value (multiple of 0.0001).
metadataobject[]
Specifies a list of metadata objects. You can add up to 120 metadata objects.
The object to send the installment plan created in WHITELABEL to show your customers and let them choose from. This optional field is used in case a particular installments plan needs to be used in the session. if not sent, we will display the installment plan created for the account for each scenario, if any.
Show installments properties
plan_idstring
Plan Id of the installment plan created in WHITELABEL
planobject[]
Installments to show the customer in with the checkout_session. This optional struct is used in case a particular installments plan needs to be used in the session and does not have an installments plan created for it. if not sent, we will display the installment plan created for the account for each scenario, if any.
Show plan properties
installmentinteger<int32>required
The number of monthly installments shoppers can choose
ratenumber<float>required
The rate applied to the final amount of the transaction by the payment provider after using installments. The value should be entered as a multiplier, not a percentage. For example, to apply a 20% rate, enter 1.20 instead of 20.
recurring_paymentobject
Optional object to enable and configure recurring payments (subscriptions).
Show recurring_payment properties
descriptionstring
Description of the subscription plan.
management_urlstring
URL where the user can manage their subscription.
billing_agreementstring
Billing agreement identifier.
regular_billingobject
Configuration for the recurring billing cycle.
Show regular_billing properties
labelstringrequired
Descriptive label for the billing cycle (e.g. “Monthly”).
The unique identifier (UUID) of the Custom Checkout to use for this session. Optional. When omitted, the session uses the account’s default checkout.
wallet_card_acceptanceobject
Optional. Limits which cards the customer can select in the Apple Pay payment sheet. Cards that do not match are shown greyed out. Every field is optional; a field that is not sent keeps the default behaviour. Values must be uppercase, and an empty list is rejected with 400 INVALID_PARAMETERS. It can only be set when the session is created.
Show wallet_card_acceptance properties
supported_countriesstring[]
Countries that issued the card, as ISO 3166-1 alpha-2 codes. This is the card’s issuing country, not the customer’s location.
supported_networksstring[]
Card networks the customer can select. Replaces the default list (AMEX, DISCOVER, ELECTRON, ELO, MASTERCARD, VISA, MAESTRO).
supported_funding_types"CREDIT" | "DEBIT"[]
Funding types the customer can select: CREDIT, DEBIT, or both.