Skip to main content
GET
/
v1
/
purchases
List
curl --request GET \
  --url https://{defaultHost}/v1/purchases \
  --header 'Authorization: Bearer <token>'
{
  "object": "list",
  "pagination": {
    "count": 2,
    "limit": 20,
    "page": 1,
    "url": "/v1/purchases"
  },
  "data": [
    {
      "id": "f0ceda27-192e-4914-aa31-3ca8d6474af8",
      "object": "purchase",
      "live_mode": true,
      "quantity": 1,
      "revoked": false,
      "revoked_at": null,
      "revoke_at": null,
      "customer": "20b63194-f05e-408e-be6f-3ee62ff4bcaf",
      "initial_order": "3d74240a-612b-4496-a4a5-6c3161a57064",
      "license": null,
      "price": "0437e023-d336-4f37-a330-f7d3ff2dc7e9",
      "product": "2056980d-bef9-44d9-a840-d1d150c3a069",
      "subscription": null,
      "variant": null,
      "review": null,
      "created_at": 1778010910,
      "updated_at": 1778010910
    },
    {
      "id": "52b883a4-60f6-4603-b086-d231fbde8b0b",
      "object": "purchase",
      "live_mode": true,
      "quantity": 1,
      "revoked": false,
      "revoked_at": null,
      "revoke_at": null,
      "customer": "20b63194-f05e-408e-be6f-3ee62ff4bcaf",
      "initial_order": null,
      "license": null,
      "price": "0437e023-d336-4f37-a330-f7d3ff2dc7e9",
      "product": "2056980d-bef9-44d9-a840-d1d150c3a069",
      "subscription": null,
      "variant": null,
      "review": null,
      "created_at": 1778010910,
      "updated_at": 1778010910
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://developer.surecart.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

checkout_ids[]
string[]

Only return objects that belong to the given checkouts.

created_at
object

Only return records that were created during the given date interval.

customer_ids[]
string[]

Only return objects that belong to the given customers.

downloadable
boolean

Only return objects that have associated downloads.

ids[]
string[]

Only return objects with the given IDs.

license_ids[]
string[]

Only return objects that belong to the given licenses.

limit
integer

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

live_mode
boolean

Only return objects that are live mode or test mode.

order_ids[]
string[]

Only return objects that belong to the given orders.

page
integer

The page of items you want returned.

product_ids[]
string[]

Only return objects that belong to the given products.

revoked
boolean

Only return objects that are revoked or not revoked.

subscription_ids[]
string[]

Only return objects that belong to the given subscriptions.

Response

200 - application/json

Success

object
string

A string describing the object type returned.

pagination
object
data
array

An array of objects.