Retrieve the status and order details for a checkout session or payment link
checkout_id is the cs_xxx value returned when the cart was created.
| Parameter | Type | Description |
|---|---|---|
checkout_id | string | The checkout ID (cs_xxx) |
| Status | Description |
|---|---|
pending | Cart exists, no payment attempted yet |
completed | Payment captured successfully |
failed | Payment failed or declined |
| Status Code | Error Code | Description |
|---|---|---|
| 401 | unauthorized | Invalid API key |
| 404 | not_found | Checkout ID not found |