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: theidof the last object you received. Repeat whilehas_moreistrue.
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:
| Endpoint | event | updated_since / created_since | Other filters |
|---|---|---|---|
GET /v1/events | Yes | sale_status | |
GET /v1/ticket-types | Yes | Yes | |
GET /v1/orders | Yes | Yes | status, payment_status, external_reference, expand[] |
GET /v1/tickets | Yes | Yes | order, ticket_type, status, checked_in |
GET /v1/promocodes | Yes | Yes | code |
GET /v1/products | Yes | Yes | |
GET /v1/guest-list-entries | Yes | Yes | |
GET /v1/webhook-endpoints |
Filters with a fixed set of values:
| Filter | Values |
|---|---|
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.