Skip to main content
GET
Retrieve a checkout session

Authorizations

Authorization
string
header
default:easner_sk_test_…
required

A secret key, easner_sk_test_… or easner_sk_live_…, as Authorization: Bearer. Each key has one business, one mode and fixed scopes. Transfer routes also accept a transfer's easner_ta_… secret for the customer.

Path Parameters

id
string
required

The object id, as the API returned it.

Response

The session.

One session with its live status, read from the payment provider while it is open.

object
any
required
id
string
required
Pattern: ^cs_
checkout_session_id
string
required
Pattern: ^cs_
url
string<uri>
required
status
enum<string>
required
Available options:
open,
processing,
complete,
expired,
failed
payment_status
string
required
mode
enum<string>
required
Available options:
payment,
subscription
amount_total
integer
required
currency
string
required
livemode
boolean
required
amount
integer
amount_subtotal
integer
amount_due_today
integer
amount_discount
integer
amount_tax
integer
line_items
object[]
customer
string<uuid> | null
customer_email
string | null
customer_name
string | null
subscription_id
string | null
payment_method_type
string | null
custom_fields
object
terms_accepted_at
string<date-time> | null
completed_at
string<date-time> | null
expires_at
string<date-time> | null
metadata
object