SUQODocs
User GuideAPI ReferenceSDKs
Checkout Sessions

Retrieve a checkout session

Read one of your own open checkout sessions by the `public_id` returned when it was opened: its line items, customer, seller details and expiry. A session is served only while it is open — once paid or past `expires_at` it answers 404, as does an unknown `public_id` or one belonging to another account.

GET
/checkout-sessions/{public_id}/
AuthorizationBearer <token>

API key issued to the partner, sent with the Bearer prefix — for example: Authorization: Bearer su_key_9f2c4d1ab3….

Keys minted on the live instance are prefixed su_key_ and keys minted on sandbox su_test_key_. The two instances keep separate key tables and separate hosts, so a sandbox key sent to the live host — or the reverse — answers Invalid API key. rather than falling back to the other environment.

In: header

Path Parameters

public_id*string

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/checkout-sessions/string/"
{  "public_id": "string",  "line_items": {},  "customer_id": "string",  "seller_details": {    "id": "string",    "phone": "string",    "business_logo": "http://example.com",    "business_name": "string"  },  "return_url": "http://example.com",  "expires_at": "2019-08-24T14:15:22Z",  "completed_at": "2019-08-24T14:15:22Z",  "is_expired": "string"}