curl --request GET \
--url https://api.dots.dev/api/v2/checkout-sessions/{checkout_session_id} \
--header 'Authorization: Basic <encoded-value>'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "open",
"payment_intent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"success_url": "<string>",
"cancel_url": "<string>",
"checkout_session_url": "<string>",
"client_reference_id": "<string>",
"expiry": "2023-11-07T05:31:56Z",
"metadata": {},
"line_items": [
{
"quantity": 123,
"price_id": "<string>"
}
],
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customer_email": "jsmith@example.com",
"amount_total": 123
}
Retrieve a checkout session by an ID
curl --request GET \
--url https://api.dots.dev/api/v2/checkout-sessions/{checkout_session_id} \
--header 'Authorization: Basic <encoded-value>'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "open",
"payment_intent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"success_url": "<string>",
"cancel_url": "<string>",
"checkout_session_url": "<string>",
"client_reference_id": "<string>",
"expiry": "2023-11-07T05:31:56Z",
"metadata": {},
"line_items": [
{
"quantity": 123,
"price_id": "<string>"
}
],
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customer_email": "jsmith@example.com",
"amount_total": 123
}
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
ID of the checkout session to retrieve
OK
The response is of type object
.
Was this page helpful?