anyshop docs homeStatusOpen the dashboard

API reference Exports Start an export

API referenceExports

Start an export

POST methodhttps://api.anyshop.io/v1/exports

Prepared once the response is sent: poll the export until its status is ready, then download it. One export is prepared at a time, 5 a day per store. Unsold keys are never available through the API: export them from the dashboard, with a two-factor code and a password.

  • Scope exports:write
  • Idempotent with Idempotency-Key
  • Works while the store is suspended

Body

application/json0 required, 1 optional
  • partsarray of enums Default: products, orders, customers, licenses, coupons and settings. Unsold keys are not available through the API.productsorderscustomerslicensescouponssettingsfilesAt least 1 items

Headers

  • Idempotency-Keystring Up to 255 characters. A retry with the same key and request gets the first answer, without running twice (24 hours).

Returns

The data_export object.

Errors

Status and error.type
  • 400invalid_requestThe request is not valid; error.param names the field
  • 401authenticationNo API key, or it is not valid
  • 403permissionThe key does not have the scope this needs, it is a test key where only a live key may act (the catalog), or the store is suspended (store_suspended)
  • 404not_foundNot found in the key's store and mode
  • 409conflictConflicts with the object's state (type conflict), or an Idempotency-Key reused for another request (type idempotency, code idempotency_key_reused)
  • 429rate_limitedToo many requests; see Retry-After