---
title: "List the current buyer's website-Team purchase history"
method: POST
path: "/account/orders/query"
tags: ["Account"]
---

# List the current buyer's website-Team purchase history

`POST /account/orders/query`

## Request

- Base URL: `https://api.session.services`
- URL: `https://api.session.services/account/orders/query`
- Auth: API key in header `x-tenant-id`

Returns the signed-in buyer's purchases for the verified website client's account Team, newest first.

## Request body

- object: Page request for the current buyer's purchases.
  - `cursor` string: Opaque cursor from the previous page.
  - `limit` integer: Maximum purchases to return.

## Response `200`

OK

- object: A page of the current buyer's purchases for the website's account Team.
  - `teamId` string, required: Unique team identifier
  - `orders` object[], required
    - `id` string, required: A unique identifier for this order.
    - `createdAt` string, date-time, required: Timestamp in ISO 8601 format when this order was created.
    - `status` 'PENDING' | 'PROCESSING' | 'SUCCESSFUL' | 'DISPUTED' | 'ABANDONED', required: Current payment lifecycle status. PENDING: awaiting payment. PROCESSING: payment in progress. SUCCESSFUL: payment confirmed. DISPUTED: chargeback filed. ABANDONED: expired or cancelled.
    - `price` object, required
      - `total` integer, required: Total amount the customer should pay in cents. Calculated as: gross + discount + sms
      - `currency` 'AED' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'ARS' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'BGN' | 'BHD' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BRL' | 'BSD' | 'BTN' | 'BWP' | 'BZD' | 'CAD' | 'CHF' | 'CLP' | 'CNY' | 'COP' | 'CRC' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'ERN' | 'ETB' | 'EUR' | 'FJD' | 'FKP' | 'GBP' | 'GEL' | 'GHS' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'ISK' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KRW' | 'KWD' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'LYD' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MNT' | 'MOP' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MYR' | 'NAD' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'OMR' | 'PAB' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SEK' | 'SGD' | 'SHP' | 'SLE' | 'SRD' | 'SVC' | 'SZL' | 'THB' | 'TJS' | 'TMT' | 'TND' | 'TOP' | 'TRY' | 'TTD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'USD' | 'UYU' | 'UZS' | 'VND' | 'VUV' | 'WST' | 'XAF' | 'XCD' | 'XOF' | 'XPF' | 'ZAR' | 'ZMW' | 'ZWL', required: Currency code in ISO 4217 format
      - `refunded` integer, required: Total amount refunded in cents (negative value)
    - `event` object, required
      - `id` string, required: Unique identifier of the event associated with the order
      - `name` string, required: Display name of the event
      - `slug` string, required: URL-friendly slug of the event
  - `nextCursor` string: Cursor for the next page. Omitted on the last page.

## Other responses

- `400`: 400
- `401`: 401
- `403`: 403
- `404`: 404
- `409`: 409
- `412`: 412
- `422`: 422
- `429`: 429
- `500`: 500
- `501`: 501
- `503`: 503

## Changes

- **2026-11-09** `38649d1c1ac7`: 1 breaking, 3 warning, 2 info
  - the `limit` request property type changed from `number` to `integer`
  - the `cursor` request property's maxLength was set to `16384`
  - the `limit` request property's max was set to `25.00`
  - the `limit` request property's min was set to `1.00`
  - …2 more
- **2026-11-09** `24b4e38e7054`: 3 breaking, 3 info
  - the `orders/items/createdAt` response's property format changed from `date-time` to no format for status `200`
  - the `orders/items/price/refunded` response's property type changed from `integer` to `number` for status `200`
  - the `orders/items/price/total` response's property type changed from `integer` to `number` for status `200`
  - the `limit` request property type was generalized from `integer` to `number`
  - …2 more
- **2026-09-21** `2b2f16550f6d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/session/apis/session-services-api/changes/account/orders/query/post.md)

---

[API](https://skmtc.dev/session/apis/session-services-api.md) - [All operations](https://skmtc.dev/session/apis/session-services-api/llms.txt) - [OpenAPI document](https://skmtc.dev/session/apis/session-services-api/revisions/9346dc3eea56?raw)
