Get a data export
AI agents: read /llms.txt; add .md to any page URL. This page as Markdown: /reference/data-exports/v1-data-export-show.md. Index of every page and the rules for every call: /llms.txt. Guides and concepts in one file: /llms-full.txt. OpenAPI: /openapi.json.
GET/
Returns one export. Poll it after you create an export: when status is ready, download the file; when it is failed, error_code says why.
pending and generating mean it is still running. progress.completed counts rows written so far.
Path parameters
Your team slug, shown as Team ID next to your API key in Profile.
- Example
your-team
- Example
The export's
id, from the create answer. A hash id; unique keys and document numbers are refused with 404.- Example
G59hl28azOL22k
- Example
Request body
This operation takes no request body.
Response
200Successful response.
Child fields (12)
What you asked for: the dates (and
date_field) as you sent them, and thecolumnsyou chose, without repeats, withschema_version. Null for customer and product exports sent withoutcolumns.Child fields (5)
columnsarray of stringsOnly when you chose columns.
date_fieldstringSales order exports only.
end_datestringschema_versionintegerOnly when you chose columns.
start_datestring
A plain number for the person who created it. It is not a hash id and no operation takes it; show
creator.nameinstead.The person who created it; null if their account was deleted. More of their account fields may appear; rely only on these.
Why it failed.
export_generation_failed: the file could not be built; create a new export.export_attempt_expired: it did not finish in time.export_queue_failed: it could not be queued. Null unlessstatusisfailed.- One of:
"export_generation_failed","export_attempt_expired","export_queue_failed"
- One of:
When the download stops working: 3 days after the export became ready. The file is then deleted; the export stays in the list but can't be downloaded.
File size in bytes, once ready.
The export id. Use it to poll and to download.
Child fields (2)
Rows written so far, not counting the header row. Updated every 500 rows; product exports update only at the end.
Rows in the file, not counting the header row. Null until the export is ready: there is no total to show a percentage against while it runs.
pending: queued.generating: running.ready: the file can be downloaded.failed: seeerror_code.- One of:
"pending","generating","ready","failed"
- One of:
- One of:
"customer_list","sales_order_list","invoice_list","invoice_item_list","payment_list","purchase_order_list","tax_list","simple_product_list","variant_product_list"
- One of:
Errors
401The API key is missing or wrong (
unauthenticated).403You are not allowed to do this.
api_access_not_in_plan: your team's plan doesn't include API access (Pro and above, with an active subscription or trial), so every request answers this until the team upgrades. When your role lacks the permission the operation needs, the body is only{"message": "Insufficient Permission"}. Other refusals use the error envelope, withunauthorizedoruser_is_not_authorized.404Not found.
page_not_found: the team slug is unknown, you are not a member of the team, or an id in the path is not one of this team's.code: null, with a message that starts "No query results for": there is no record with that id.- When
- The id is not one of this team's exports.
- Fix
- Use the
idthe create operation returned.
Notes
- An export still
pendingorgeneratingabout an hour after it was queued is markedfailedwithexport_attempt_expiredthe next time YoPrint checks: when someone on your team creates an export, or at the regular cleanup. Create it again (the sameidempotency_keyqueues the same export again); a smaller date range or fewer columns finishes sooner.
Related
- GETDownload a data export's file
/v1/ api/ store/ {team_slug}/ data_export/ {id}/ download - GETList data exports
/v1/ api/ store/ {team_slug}/ data_export
