id_venta and includes a full detalles breakdown of returned products. All requests must include your API key in the Authorization header.
GET /returns
Returns a paginated list of sales return records. Filter by date range to scope the results to a specific period. Each record includes header-level return information and adetalles array of the individual products that were returned.
Query parameters
string
Start date for filtering returns, in
Y-m-d format (e.g. 2025-01-01). Use together with fecha_fin to define a date range.string
End date for filtering returns, in
Y-m-d format (e.g. 2025-01-31). Use together with fecha_inicio to define a date range.integer
Page number to retrieve. Defaults to
1.integer
Number of records per page. Accepts values between
1 and 200. Defaults to 100.Response example
Response fields
boolean
Indicates whether the request completed successfully.
array
Array of return objects matching the applied filters.
GET /returns/{id}
Retrieves a single return record by its numeric ID. The response returns the same full Return object described above, including thedetalles array of returned line items.
Path parameter
integer
required
The unique numeric identifier of the return record you want to retrieve.
data key with "success": true. All fields, including detalles, are identical to the structure documented in the GET /returns response above.
GET /returns/summary
Returns aggregate statistics for your return activity over an optional date range. Use this endpoint to measure the volume and value of merchandise being returned, identify high-return periods, and quantify the financial impact of returns on your revenue.Query parameters
string
Start date for the summary period, in
Y-m-d format. Omit to include all return records from the beginning.string
End date for the summary period, in
Y-m-d format. Omit to include all records up to the current date.Response example
Response fields
integer
Total number of return transactions processed within the requested period.
number
Gross monetary value of all returns in the period, including tax.
number
Total tax amount included across all return records in the period.
number
Sum of all discounts applied to returned line items in the period.
number
Average value per return transaction, calculated as
total_devuelto / cantidad_devoluciones.array
Breakdown of return count and total value grouped by document type.
string
Display name of the company associated with your API key.
string
ISO 8601 timestamp indicating when the summary was generated.
object
Echo of the date filters used to compute the summary, useful for confirming the request parameters.