Skip to content

Create export

POST/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_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

Headers

  • Idempotency-Keystring

    Send the same key to retry safely: the first answer is replayed for 24 hours.

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • resourceenumrequired

    What an export writes out.

    • products
    • customers
    • inventory
    • orders
  • placed_fromdate · or null

    Orders: placed on or after this day (store time zone).

  • placed_todate · or null

    Orders: placed on or before this day.

  • order_queryobject

    Orders: the list's filters, exactly as GET /orders takes them.

  • order_idsarray of strings

    Orders: only these, as selected in the list (at most 1,000).

Returns

202 Being prepared.

Errors

  • 403forbiddenMissing permission.
  • 422validation_failedThe end date is before the start date.