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": "c5507a25-2af9-4760-b9e1-5e7a78681e89",
      "object": "purchase",
      "live_mode": true,
      "quantity": 1,
      "revoked": false,
      "revoked_at": null,
      "revoke_at": null,
      "customer": "2f26cbe5-7e4c-49ad-b559-ab556d2b72b1",
      "initial_order": "8e96ddae-98f4-472d-82cf-88b4769d92ba",
      "license": null,
      "price": "0e38b618-b63f-4282-9cc3-37b571ba0782",
      "product": "09dc6416-92ab-4625-8daa-cad5540e90fd",
      "subscription": null,
      "variant": null,
      "review": null,
      "created_at": 1770234883,
      "updated_at": 1770234883
    },
    {
      "id": "cdc374ee-9d9c-4224-8585-a75d9e1cdced",
      "object": "purchase",
      "live_mode": true,
      "quantity": 1,
      "revoked": false,
      "revoked_at": null,
      "revoke_at": null,
      "customer": "2f26cbe5-7e4c-49ad-b559-ab556d2b72b1",
      "initial_order": null,
      "license": null,
      "price": "0e38b618-b63f-4282-9cc3-37b571ba0782",
      "product": "09dc6416-92ab-4625-8daa-cad5540e90fd",
      "subscription": null,
      "variant": null,
      "review": null,
      "created_at": 1770234883,
      "updated_at": 1770234883
    }
  ]
}

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.