Create Checkout Session
Headers
Body
The ID of the product associated with the checkout session.
Collect additional information from your customer using custom fields. Up to 3 fields are supported.
Customer data for checkout session. This will prefill the customer info on the checkout page
Prefill the checkout session with a discount code.
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.
Identify and track each checkout request.
The URL to which the user will be redirected after the checkout process is completed.
The number of units for the order.
Response
The URL to which the customer will be redirected to complete the payment.
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.
The product associated with the checkout session.
Status of the checkout.
The URL to which the user will be redirected after the checkout process is completed.
Additional information collected from your customer during the checkout process.
The customer associated with the checkout session.
A key-value pair where the key is a string, and the value can be a string, number, or null.
The order associated with the checkout session.
Identify and track each checkout request.
The subscription associated with the checkout session.
The number of units for the of the product.