Get settlement history
POST/api/branchs/history/settlements
Returns the merchant's settlements (statements): the payment to the merchant of what was collected on delivery, minus the shipping cost and the commission. Each statement includes the bank account where it was deposited, its totals and the orders it settles.
Every body field is optional: without a body it returns the first page (20 statements), 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
- 200
- 400
- 401
- 500
Settlement history retrieved
Invalid filters, sorting or pagination. Only the first error found is reported.
The token is missing, expired (it lasts 15 minutes) or invalid. Log in again to get a new one.
Internal error