Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
New: Stripe & TossPayments integration guides now available →
커서 기반 페이지네이션으로 대량 데이터 탐색하기
limit
starting_after
{ "data": [ { "id": "prod_abc", "name": "Product A" }, { "id": "prod_def", "name": "Product B" } ], "has_more": true, "next_cursor": "prod_def" }
data
has_more
next_cursor
let cursor: string | undefined; const allProducts = []; do { const params = new URLSearchParams({ limit: '100' }); if (cursor) params.set('starting_after', cursor); const res = await fetch( `https://api.headlesscommerce.io/v1/storefront/products?${params}`, { headers: { Authorization: `Bearer ${apiKey}` } }, ); const body = await res.json(); allProducts.push(...body.data); cursor = body.has_more ? body.next_cursor : undefined; } while (cursor);
# 상태 필터 + 생성일 기준 정렬 GET /v1/admin/products?status=active&sort=created_at&order=desc&limit=50