curl --request GET \
  --url https://api.dots.dev/api/v2/checkout-sessions \
  --header 'Authorization: Basic <encoded-value>'
{
  "data": [
    {
      "amount_total": 123,
      "cancel_url": "<string>",
      "checkout_session_url": "<string>",
      "client_reference_id": "<string>",
      "created": "2023-11-07T05:31:56Z",
      "customer_email": "jsmith@example.com",
      "customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "expiry": "2023-11-07T05:31:56Z",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "line_items": [
        {
          "price_id": "<string>",
          "quantity": 123
        }
      ],
      "metadata": {},
      "payment_intent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "status": "open",
      "success_url": "<string>",
      "updated": "2023-11-07T05:31:56Z"
    }
  ],
  "has_more": true
}

Authorizations

Authorization
string
headerrequired

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Query Parameters

limit
string

A limit on the number of objects to be returned, between 1 and 100.

starting_after
string

A cursor for use in pagination. starting_after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with aaa, your subsequent call can include starting_after=aaa in order to fetch the next page of the list.

ending_before
string

A cursor for use in pagination. ending_before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with aaa, your subsequent call can include ending_before=aaa in order to fetch the previous page of the list.

Response

200 - application/json
data
object[]
has_more
boolean

true if there are more objects.