Skip to content

Search API reference

Find an endpoint or a guide of the Sovgate API reference and jump straight to it.

Retrieve a checkout session

Get a session by the ID its creation returned, to check it was paid.

GET/v1/checkout/sessions/{id}

Get a session by the ID its creation returned, to check it was paid.

Endpoint

http
GET /v1/checkout/sessions/{id}

Path parameters

NameTypeDescription
idstringThe session's ID, cs_....

Example request

bash
curl https://api.sovgate.com/v1/checkout/sessions/cs_test_8a34998a7056ac775cff7b78 \  -H "Authorization: Bearer sov_sk_test_your_key"

Example response

json
{  "id": "cs_test_8a34998a7056ac775cff7b78",  "object": "checkout_session",  "livemode": false,  "mode": "payment",  "status": "complete",  "payment_status": "paid",  "ui_mode": "hosted_page",  "currency": "usd",  "amount_total": 4000,  "line_item_count": 1,  "customer": null,  "client_reference_id": "order_8812",  "metadata": {    "cart": "c_1042"  },  "url": null,  "payment_link": null,  "payment": "pay_baa7f53c0bc0867df75250d9",  "attempts": 1,  "created": "2026-11-27T14:00:00Z",  "expires_at": "2026-11-28T14:00:00Z",  "completed_at": "2026-11-27T14:03:41Z",  "expired_at": null}