Skip to main content

Get order history

POST 

/api/branchs/history/orders

Returns the merchant's orders with their current status, courier and recipient, plus the period's totals (orders, in route, completed and cancelled). Each order includes its public tracking URL in tracking.URLtracking.

The body is required (without a body it returns 500), but all its fields are optional: with {} it returns the first page (20 orders), from the most recent to the oldest. With export: 1 it also generates an Excel file with all the results and returns its URL in export.URLDataExcel.

Request​

Responses​

Order history retrieved. The orders are in data.data and the pagination in data.pagination.