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": "3d0c6da7-c6fb-4816-94ba-bcb247769c7c",
      "object": "purchase",
      "live_mode": true,
      "quantity": 1,
      "revoked": false,
      "revoked_at": null,
      "revoke_at": null,
      "customer": "d9f60634-fd5b-462b-99c7-2e27889d6d14",
      "initial_order": "f8ba0daf-8245-41d3-a616-9a0b81c396fb",
      "license": null,
      "price": "f891ad50-752c-4845-a833-48f3bc56af6e",
      "product": "dc571f0d-4d0e-4848-a05f-9136f15cfc30",
      "subscription": null,
      "variant": null,
      "review": null,
      "created_at": 1780925552,
      "updated_at": 1780925552
    },
    {
      "id": "0ec7e6bb-b396-42d0-a9b0-adce2895233a",
      "object": "purchase",
      "live_mode": true,
      "quantity": 1,
      "revoked": false,
      "revoked_at": null,
      "revoke_at": null,
      "customer": "d9f60634-fd5b-462b-99c7-2e27889d6d14",
      "initial_order": null,
      "license": null,
      "price": "f891ad50-752c-4845-a833-48f3bc56af6e",
      "product": "dc571f0d-4d0e-4848-a05f-9136f15cfc30",
      "subscription": null,
      "variant": null,
      "review": null,
      "created_at": 1780925552,
      "updated_at": 1780925552
    }
  ]
}

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.