GET
/
v1
/
purchases
List purchases
curl --request GET \
  --url https://api.kajabi.com/v1/purchases \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "<string>",
      "type": "purchases",
      "attributes": {
        "amount_in_cents": 123,
        "payment_type": "<string>",
        "multipay_payments_made": 123,
        "opt_in": true,
        "raw_extra_contact_information": {},
        "currency": "<string>",
        "effective_start_at": "<string>",
        "cardholder_name": "<string>",
        "billing_address_zip": "<string>",
        "deactivated_at": "<string>",
        "deactivation_reason": "<string>",
        "coupon_code": "<string>",
        "source": "<string>",
        "referrer": "<string>",
        "quantity": 123,
        "created_at": "2023-11-07T05:31:56Z",
        "updated_at": "2023-11-07T05:31:56Z"
      },
      "relationships": {
        "offer": {
          "data": {
            "id": "<string>",
            "type": "<string>"
          }
        },
        "customer": {
          "data": {
            "id": "<string>",
            "type": "<string>"
          }
        },
        "transactions": {
          "data": [
            {
              "id": "<string>",
              "type": "<string>"
            }
          ]
        },
        "products": {
          "data": [
            {
              "id": "<string>",
              "type": "<string>"
            }
          ]
        }
      }
    }
  ],
  "links": {
    "self": "<string>",
    "current": "<string>"
  }
}

Authorizations

Authorization
string
header
required

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

Query Parameters

sort
string

Sort order, use: created_at for descending order use '-' e.g. &sort=-created_at

page[number]
integer
page[size]
integer

Number of documents

fields[purchases]
string

Partial attributes as specified, e.g. fields[purchases]=amount_in_cents

filter[active]
boolean

Filter by active purchases (not deactivated), for example ?filter[active]=true

filter[deactivated]
boolean

Filter by deactivated purchases, for example ?filter[deactivated]=true

filter[referrer]
string

Filter by referrer, for example ?filter[referrer_cont]=•••••

filter[coupon_code_eq]
string

Filter by coupon code, for example ?filter[coupon_code_eq]=•••••

filter[site_id]
string

Filter by site_id, for example ?filter[site_id]=111

filter[customer_id]
string

Filter by customer_id, for example ?filter[customer_id]=456789

Response

Success, list of purchases which the current user may access

data
object[]