Create export
/ admin/ v1/ stores/ {store_id}/ exports- Idempotency-Key supported
Prepare a CSV file of products, customers, stock or orders (UTF-8, readable by Excel; the product and customer files use Shopify's columns and import back here). Poll the export for its download link. Requires the resource's read permission.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.
Headers
Idempotency-KeystringSend the same key to retry safely: the first answer is replayed for 24 hours.
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
resourceenumrequiredWhat an export writes out.
- products
- customers
- inventory
- orders
placed_fromdate · or nullOrders: placed on or after this day (store time zone).
placed_todate · or nullOrders: placed on or before this day.
order_queryobjectOrders: the list's filters, exactly as
GET /orderstakes them.order_idsarray of stringsOrders: only these, as selected in the list (at most 1,000).
Returns
202 Being prepared.
Errors
- 403
forbiddenMissing permission. - 422
validation_failedThe end date is before the start date.