Retrieve a checkout session
Retrieve details of a checkout session by ID. View status, customer info, and payment details.
Authorizations
API key for authentication. You can find your API key in the Creem dashboard under Settings > API Keys.
Query Parameters
The ID of the checkout session to retrieve.
"chk_1234567890"
Response
Successfully retrieved the checkout session
Unique identifier for the object.
String representing the environment.
test, prod, sandbox String representing the object's type. Objects of the same type share the same value.
Status of the checkout.
pending, processing, completed, expired "completed"
The product associated with the checkout session.
Identify and track each checkout request.
The number of units for the of the product.
The per-unit price override (in cents, product currency) this checkout was created with. Only present when the checkout was created with a custom_price. One-time payment products only.
1500
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.
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.
"https://example.com/return"
License keys issued for the order.
DEPRECATED: Use license_keys instead. Features issued for the order.
Metadata for the checkout in the form of key-value pairs
{
"userId": "user_123",
"visitCount": 42,
"lastVisit": "2023-04-01"
}The discount applied to the checkout, if any.