Skip to content

Retrieve a checkout session

GET
/checkout/sessions/{id}
id
required
string

Checkout session ID

The session

object
amount
required

A monetary amount in the currency’s minor units (e.g. cents for USD).

integer format: int64
Example
1000
created
required
integer format: int64
currency
required

Currently supported currencies by Paygasus Pay

string
Allowed values: USD
Example
USD
id
required
string
livemode
required
boolean
object
required
string
payment_intent_id
One of:
null
payment_status
One of:
null
status
required
string
Allowed values: created opened completed expired
status_detail
string | null
url
required

The Paygasus-hosted page for this session — where the merchant sends the customer.

string

No such session

object
error
required
object
code
required
string
message
required
string
param
string | null
type
required
string