cURL
curl --request GET \ --url https://api.cnaught.com/v1/checkout/sessions/{id} \ --header 'Authorization: Bearer <token>'
{ "id": "zpQ6QSNRQh", "amount_kg": 100, "price_usd_cents": 200, "success_url": "https://www.example.com/confirmation?my_query=my_value&session_id={CHECKOUT_SESSION_ID}", "cancel_url": "https://www.example.com/purchase-credits", "checkout_url": "https://checkout.cnaught.com/pay/zpQ6QSNRQh", "state": "open", "created_on": "2022-07-31T18:00:00.000000Z", "expires_on": "2022-08-01T18:00:00.000000Z", "completed_on": null, "portfolio_id": "mHvNvWbq", "order_description": "on behalf of Jane Smith", "order_webhook_url": "https://www.example.com/callback" }
Returns the Checkout Session with the given id
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Id of the Checkout Session to retrieve
"zpQ6QSNRQh"
Checkout Session
The response is of type object.
object