Create Checkout Session
Headers
Body
The ID of the product associated with the checkout session.
Identify and track each checkout request.
Prefill the checkout session with a discount code.
Customer data for checkout session. This will prefill the customer info on the checkout page
Collect additional information from your customer using custom fields. Up to 3 fields are supported.
The URL to which the user will be redirected after the checkout process is completed.
A key-value pair where the key is a string, and the value can be a string, number, or null. This metadata will be propagated across all related objects, such as subscriptions and customers.
Response
Unique identifier for the object.
String representing the environment.
test
, live
, sandbox
String representing the object’s type. Objects of the same type share the same value.
Status of the checkout.
The product associated with the checkout session.
The URL to which the customer will be redirected to complete the payment.
The URL to which the user will be redirected after the checkout process is completed.
Identify and track each checkout request.
The order associated with the checkout session.
The subscription associated with the checkout session.
The customer associated with the checkout session.
Additional information collected from your customer during the checkout process.
A key-value pair where the key is a string, and the value can be a string, number, or null.