GEThttps://api.spirestock.com/api/v1/exports/orders#
Export orders as XLSX or PDF. Supports status and date range filters.
Access: API key read scope; staff need Orders (8) — export.
Parameters
formatstring- Export format: xlsx (default) or pdf
statusnumber- Filter by order status (1-4)
date_fromstring- Start date (YYYY-MM-DD)
date_tostring- End date (YYYY-MM-DD)
production_unit_idnumber- Filter by production unit
curl "https://api.spirestock.com/api/v1/exports/orders?format=xlsx&date_from=2026-05-01&date_to=2026-05-31" \
-H "Authorization: Bearer YOUR_TOKEN" \
-o orders-export.xlsxBinary file download (XLSX or PDF).
Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Content-Disposition: attachment; filename="orders-2026-05.xlsx"