Pagination
Collection endpoints use offset-based pagination. Pass limit andoffset as query params; the response carries a meta.paginationobject with totals.
Parameters
limit— default 50, max 250.offset— default 0.
Example
curlcurl "https://axisel.com/api/v1/products?limit=20&offset=40" \ -H "Authorization: Bearer sk_live_..."
json{ "data": [ /* 20 products */ ], "meta": { "pagination": { "limit": 20, "offset": 40, "total": 142, "hasMore": true } } }
Date filtering
List endpoints accept four ISO-8601 timestamp params:
createdAfter/createdBeforeupdatedAfter/updatedBefore
For incremental syncs, save the updatedAt of the last fetched record and pass it as updatedAfter on the next run.
Pagination pattern
javascriptasync function* fetchAll(path) { let offset = 0; const limit = 250; while (true) { const r = await fetch(`https://axisel.com/api/v1${path}?limit=${limit}&offset=${offset}`, { headers: { Authorization: `Bearer ${API_KEY}` }, }); const { data, meta } = await r.json(); for (const item of data) yield item; if (!meta.pagination.hasMore) break; offset += limit; } }