Skip to main content

Download Sales Orders Export

GET 

/api/sales-orders/list/export/download

Downloads a completed background export produced by Export Sales Orders (queued path). The filename is the one reported in the tracked job log's results.file field.

Required scope: orders:read

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Authentication: Requires Bearer token. Scope: orders (read).

Response is the binary file (CSV or XLSX) with an attachment Content-Disposition header. Returns 404 if the file param is empty or the file no longer exists.

Requires permission: sales_orders.export

file must be a file name produced by this endpoint's export. Any other name, or a name containing a path, returns 404.

Only the user who started the export, or an account admin, can download it; anyone else gets the same 404 as a missing file.

Request​

Responses​

OK

Response Headers
    Content-Type
    Content-Disposition