All four filters apply to the page you got, not your whole order history.A page of 50 orders containing 2 refunded ones returns count: 2 while
hasMore is still true. A short or empty page doesn’t mean there’s nothing left.Page until hasMore is false.
async function allOrders(filters = {}) { const out = []; let cursor = null; do { const qs = new URLSearchParams({ ...filters, limit: '100', ...(cursor ? { cursor } : {}) }); const res = await fetch(`https://exclusivo.one/api/v1/orders?${qs}`, { headers: { Authorization: `Bearer ${process.env.EXC_API_KEY}` }, }); const { data, pagination } = await res.json(); out.push(...data); cursor = pagination.hasMore ? pagination.nextCursor : null; } while (cursor); return out;}
Because filters are per-page, a narrow filter over a long history costs a lot of
requests. For anything ongoing use a webhook —
order.created, order.paid, order.fulfilled, order.refunded — and keep
this endpoint for backfills.
These carry the transaction signature or hash.A signature on its own doesn’t prove an order was paid — it proves a transaction
landed. We verify sender, recipient and amount before marking anything paid. If
you’re reconciling independently, check the same three.