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": "e28f19b0-9e7e-476d-ab08-31500185e014",
      "object": "purchase",
      "live_mode": true,
      "quantity": 1,
      "revoked": false,
      "revoked_at": null,
      "revoke_at": null,
      "customer": "581cc67f-7dae-4d65-890c-33f8dee94821",
      "initial_order": "abca1eed-50e1-4e53-870f-b4eaf0d34605",
      "license": null,
      "price": "a1cae1d9-0295-4c0a-a5db-4a1743d1515f",
      "product": "2c43fed4-ff4c-47c8-9200-93e8e9021ed1",
      "subscription": null,
      "variant": null,
      "review": null,
      "created_at": 1769674982,
      "updated_at": 1769674982
    },
    {
      "id": "445af76a-8a60-4f8a-b9bd-307d2fe1baf6",
      "object": "purchase",
      "live_mode": true,
      "quantity": 1,
      "revoked": false,
      "revoked_at": null,
      "revoke_at": null,
      "customer": "581cc67f-7dae-4d65-890c-33f8dee94821",
      "initial_order": null,
      "license": null,
      "price": "a1cae1d9-0295-4c0a-a5db-4a1743d1515f",
      "product": "2c43fed4-ff4c-47c8-9200-93e8e9021ed1",
      "subscription": null,
      "variant": null,
      "review": null,
      "created_at": 1769674981,
      "updated_at": 1769674981
    }
  ]
}

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.