Skip to main content
GET
Retrieve a checkout session
Click the base URL in the API playground and select the Sandbox host for test data or the Production host for live data. Use credentials from the same environment.

Authorizations

Authorization
string
header
required

The Server API Key obtained from the kelviq application. Pass as a Bearer token in the Authorization header. Example: 'Authorization: Bearer YOUR_API_KEY'

Path Parameters

session_id
string
required

The checkout session ID.

Response

The checkout session.

A single checkout session, with the order/subscription/payment method it produced.

id
string

Checkout session ID.

Example:

"cs_a1B2c3D4e5F6g7H8i9J0k1L2m3N4o5P6q7R8s9T0u1V2"

customer
object
product
object

A product in the catalog. Each product can have multiple plans, images and files.

billingAddress
object | null

The billing address of the customer.

discountCode
string | null
Example:

null

taxId
string | null
Example:

null

currency
string | null
Example:

"usd"

currencySymbol
string
Example:

"$"

status
string

Typical values: open, processing, success, expired.

Example:

"open"

createdOn
string<date-time>
Example:

"2026-07-29T10:30:00Z"

selectedData
object

Selected plan/addons for this session.

offeringData
object

Snapshot of the product/plan offering shown at checkout.

data
object
customFieldsData
object

Customer-submitted responses to custom checkout fields.

metadata
object

Customer-supplied metadata passed at checkout session creation.

customization
object

Customer-supplied checkout UI customization passed at session creation.

trialPeriod
integer

Trial period length in days.

Example:

0

order
object | null

null until an order has been created from this session.

subscription
object | null

null if the order has no linked subscription.

paymentMethod
object | null

The payment method used for the order's first successful transaction. null if no successful transaction exists yet.