Skip to main content

Export Purchase Orders

GET 

/api/spscommerce/:integrationInstance/purchase-orders/export

Download the purchase order list as CSV or XLSX. The file always starts with a row number and the purchase order ID, then the chosen columns; date-times are in the account's time zone.

Required scope: integrations:read

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

Authentication: Requires Bearer token.

scope picks the rows: filtered (default; what the list's filters match, archived purchase orders hidden unless filter[archived] says otherwise), all, current_page or selected (with ids). Every filter and sort of List Purchase Orders applies.

included: JSON array of column keys to include, in order. Available: po_number, po_date, trading_partner_id, buyer_name, ship_to_name, total_quantity, total_amount, currency_code, processing_status, sales_order, requested_ship_date, archived_at, created_at. Leave it out for every column.

Response: a file download. An export of more than 1,000 rows is built in the background instead: the response is 202 with a tracked job id, and the file is offered when the job finishes.

Request​

Responses​

OK

Response Headers
    Content-Type