POST /v1/stores/search, and Shoplist writes every matching store to a CSV file inside a ZIP archive. Poll the export, then download the file from a signed link. Use a team API key or partner OAuth token with the exports:write scope. An export belongs to the person who created the API key or approved the OAuth connection.
Start an export
UsePOST /v1/exports with an Idempotency-Key and the most credits the export may spend in max_credits. filters takes the store search filters; send {} to export every open store. include picks the store groups whose columns the file holds, and max_rows caps the row count below your plan limit.
curl
202 with the export while a background job writes the file.
POST /v1/exports 202
Check the export
PollGET /v1/exports/{id} every few seconds until status is completed or failed.
curl
An export that takes longer than usual to finish carries
"delayed": true. Keep polling; it still completes or fails.
GET /v1/exports/5f0c6a8e-3b7d-5c41-9a2e-6d1b8f4c2a90 200
Download the file
Fetchdata.download.url with any HTTP client, for example curl -sS -o stores.zip "<download url>", and send no Authorization header with it. The link lasts 15 minutes. Each GET /v1/exports/{id} returns a fresh link, so request the export again when a link expires. On a completed export the link can be null for a moment or when the file is unavailable; poll again.
The ZIP holds one CSV file. Rows follow store ID order, the same order as POST /v1/stores/search with "sort": "id". The job reads stores when it runs, so the file reflects the data at that time and can hold fewer rows than estimated_rows. The file starts with the identity columns, then adds the columns of each group in include, in the order of the CSV columns table below. List cells join their values with |. Each app in apps.items is a JSON object.
Credits
An export costs one credit per row written, with a minimum of 10 credits. An export that writes no rows costs nothing. When you start an export, Shoplist reserves credits for the estimated rows up torow_limit. When the export finishes, Shoplist charges for the rows written and refunds the rest of the reservation. Your plan sets the most rows one export can write. Exports are paid in credits and do not count toward the unique-store allowance.
Retries
AnIdempotency-Key belongs to your team, as on every /v1 endpoint. Sending the same idempotency key and body again with any authorized team API key or OAuth token returns the same export, with no second charge or job. The same key with a different body returns 422 idempotency_key_reused. When the export service is busy, the API answers 503 service_unavailable with Retry-After; retry the same request with the same key. A 402 insufficient_credits answer is final for its key: after adding credits, send the request with a new Idempotency-Key.