Skip to Content
Developers

Pagination and filters

Cursor pagination, newest first.

List endpoints return objects newest first:

{
  "object": "list",
  "url": "/v1/orders",
  "has_more": true,
  "data": [ { "id": "ord_01J...", "object": "order" } ]
}
  • limit: 1 to 100, default 25.
  • starting_after: the id of the last object you received. Repeat while has_more is true.
curl "https://api.tixxy.nl/v1/orders?limit=100&starting_after=ord_01J..." \
  -H "Authorization: Bearer tixxy_live_..."

Filters

Most lists accept event (an evt_ id), updated_since and created_since (ISO 8601). Use updated_since to sync changes since your last run, or better, use webhooks.

Orders accept expand[]=tickets to include the tickets of each order.

Filters per list endpoint

Every list endpoint accepts limit and starting_after. The other filters differ per endpoint:

Endpointeventupdated_since / created_sinceOther filters
GET /v1/eventsYessale_status
GET /v1/ticket-typesYesYes
GET /v1/ordersYesYesstatus, payment_status, external_reference, expand[]
GET /v1/ticketsYesYesorder, ticket_type, status, checked_in
GET /v1/promocodesYesYescode
GET /v1/productsYesYes
GET /v1/guest-list-entriesYesYes
GET /v1/webhook-endpoints

Filters with a fixed set of values:

FilterValues
sale_status (events)not_started, active, ended
status (orders)pending, completed, cancelled
payment_status (orders)paid, invoiced, awaiting_invoice
status (tickets)valid, invalid, cancelled, refunded
checked_in (tickets)true, false

Combine filters and pagination in one request:

curl "https://api.tixxy.nl/v1/tickets?event=evt_01J...&checked_in=true&limit=100" \
  -H "Authorization: Bearer tixxy_live_..."

Fetching every page

Keep requesting the next page with the id of the last object until has_more is false:

async function listAll(path, params = {}) {
  const objects = [];
  let startingAfter;

  do {
    const query = new URLSearchParams({ ...params, limit: '100' });
    if (startingAfter) query.set('starting_after', startingAfter);

    const response = await fetch(`https://api.tixxy.nl/v1${path}?${query}`, {
      headers: { Authorization: `Bearer ${process.env.TIXXY_TOKEN}` },
    });
    const page = await response.json();

    objects.push(...page.data);
    startingAfter = page.has_more ? page.data.at(-1).id : undefined;
  } while (startingAfter);

  return objects;
}

const orders = await listAll('/orders', { updated_since: '2026-10-01T00:00:00Z' });

Use limit=100 for large syncs: fewer requests keep you well within the rate limits.

On this page