Authenticated Checkout
Create a checkout session for an authenticated customer. Customer information is retrieved from the token.Headers
Request Body
Success Response - Payment Required (200)
Success Response - Free Order (200)
When the total is zero (e.g., 100% discount coupon), the order is created immediately:Available Payment Methods
Available payment methods depend on the store’s configuration and the order amount. Not all methods are available for every store.
Guest Checkout
Create a checkout session without OTP authentication. Customer details are provided directly in the request body.Headers
Request Body
Initiate Payment
After creating a checkout session, initiate the actual payment with the customer’s chosen payment method.Authenticated Payment
Authorization: Bearer <token> with embed:checkout ability.
Guest Payment
Request Body (Both Endpoints)
Response Types
The response varies by payment method: Card, Mada, STC Pay, Apple Pay, Coinbase, PayPal (with PayPal.me link)redirect_url to complete payment.
PayPal (manual, email only)
Error Responses
Product Fields
Products can have custom fields that customers fill in during checkout. Pass field values in thefields object, keyed by the field’s array index from the product data.

