GET /api/transacciones
Returns all transactions that have not been soft-deleted, ordered by creation time descending (newest first). Each item includes the calculated monto_pendiente field.
Authentication: Required
Required role: Any authenticated user
Request
Headers
| Header | Value | Required |
|---|---|---|
| Authorization | Bearer <token> | Yes |
Response
Success (200)
Returns an array of transaction objects. Each object has the following fields:Transaction ID.
Sequential registration number.
Transaction description.
Transaction type (e.g.
venta).Service location.
Customer name.
Status:
pendiente, abierto, or cerrado.Kitchen status:
pendiente or terminado.Total amount as a decimal string.
Amount already paid as a decimal string.
Calculated outstanding amount (
monto_total - monto_pagado).Associated register ID.
ID of the user who created the transaction.
Creation date (
YYYY-MM-DD).Creation timestamp with timezone.
Error responses
| Status | Description |
|---|---|
| 401 | Unauthorized |