Get transaction and movement history
POST/api/branchs/history/transactionsAndMovements
Returns the merchant's transactions (top-ups and payments) with their related balance movements: shipping charges, commissions, refunds and benefits.
Each transaction includes the payment method, the wallet summary (previous balance, amount used and remaining balance) and the list of movements with their order, courier and service.
Benefit movements (movementIsBenefit: true) include their details in benefit; in the other movements benefit is null.
Every body field is optional: without a body it returns the first page (20 transactions), 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
Transactions and movements retrieved
Invalid filter, sorting or pagination. Only the first error found is reported, with the format Error en campo "<campo>": <motivo> (error in field "debe ser 0 o 1 (must be 0 or 1; export and filters.onlyFilteredMovements, as a number), debe ser un UUID válido (must be a valid UUID), número inválido (invalid number; negative amounts or values that are not numbers), texto inválido (máx N caracteres) (invalid text, max N characters), debe contener exactamente 4 dígitos (must contain exactly 4 digits), debe ser una fecha válida (YYYY-MM-DD) (must be a valid date), dateFrom no puede ser mayor a dateTo (dateFrom cannot be later than dateTo), debe ser un entero mayor a 0 (must be an integer greater than 0; pagination.page), debe ser un entero entre 1 y 50 (must be an integer between 1 and 50; pagination.limit) and debe ser ASC o DESC (must be ASC or DESC; order.direction).
The token is missing, expired (it lasts 15 minutes) or invalid. Log in again to get a new one.
Internal error