Authorizations
Your API key. This is required by all endpoints to access our API programatically. You can view your API Key by navigating to the app settings
Body
A unique string to reference the Checkout Session. This can be a customer ID, a cart ID, or similar. Merchants can use it to reconcile the session with their internal systems
100
The total payable amount (after applying discounts) in the main currency unit (e.g., USD, AED)
Currency code (ISO 4217 format, e.g., USD, INR, AED)
3
A list of items the customer is buying, including item-level details
URL where the customer should be redirected after payment success
URL where the customer should be redirected if the payment fails
URL where the customer should be redirected if they cancel payment
The total discount amount applied to the order. Provide the value in the main currency unit (e.g., USD, AED)
Customer object with customer-related details
A set of key-value pairs that merchants can attach to an object. This can be useful for storing additional information about the object in a structured format.Maximum of 40 pairs allowed. Keys must be alphanumeric and cannot contain square brackets ([ and ]). Keys must not exceed 24 characters, and values must not exceed 512 characters.
Response
The URL to the Checkout Session. Redirect customers to this URL to take them to the Hosted Checkout page
Status of the session: created, cancelled, expired, paid
paid
, created
, cancelled
, expired
The total payable amount (after applying discounts) in the main currency unit (e.g., USD, AED)
The total discount amount applied to the order. Provide the value in the main currency unit (e.g., USD, AED)
Currency code (ISO 4217 format, e.g., USD, INR, AED)
3
A unique string to reference the Checkout Session. This can be a customer ID, a cart ID, or similar, and merchants can use it to reconcile the session with their internal systems
ISO 8601 timestamp when the checkout session was created
A list of items the customer is buying, including item-level details
Customer object with customer-related details
A set of key-value pairs that merchants can attach to an object. This can be useful for storing additional information about the object in a structured format.Maximum of 40 pairs allowed. Keys must be alphanumeric and cannot contain square brackets ([ and ]). Keys must not exceed 24 characters, and values must not exceed 512 characters.
List of charges associated with the checkout