Base URL
All endpoints are served from:This is a local development server. There is no production base URL configured in this project.
Authentication
This API does not use token-based authentication. Requests are sent directly to the server without anyAuthorization header or API key.
Response format
All endpoints (except/api/dashboard and a few CEDIS utility routes) wrap their response in a common ApiResponse<T> envelope:
Number of records returned. For list responses this equals the array length; for single-object responses this is
1.ISO 8601 timestamp of when the response was generated (e.g.
"2026-04-07T14:32:00.123").The actual response payload — either a single object or an array of objects depending on the endpoint.
Example successful response
Example curl pattern
Resource groups
Dashboard
Aggregated KPI summary: expired items, items expiring soon, total inventory, reception counts, and pending RPC returns.
Inventario
Browse and filter the full inventory by expiry date, barcode, division, or department.
Recepciones CEDIS
Register and query truck-based CEDIS receptions including product details, discrepancies, and RPC data.
Ordenes de Compra
Create, retrieve, validate, and update the status of purchase orders.
RPC
Track reusable plastic container (RPC) returns: pending, completed, and bulk summaries.
Discrepancias
Record and list reception discrepancies when received quantities differ from expected.
HTTP status codes
| Status | Meaning |
|---|---|
200 OK | Request succeeded. |
400 Bad Request | Validation failed or an invalid enum value was provided. |
404 Not Found | The requested resource does not exist (returned inline by some endpoints). |
500 Internal Server Error | An unexpected server-side error occurred. |
Error response format
Errors are wrapped in the sameApiResponse<T> envelope. The data field contains an error object:
400), the data field is a map of field names to error messages:
Enum values
Several fields accept or return enum strings. Valid values are:| Enum | Values |
|---|---|
Division | PERECEDEROS, NO_PERECEDEROS |
Departamento | FRUTAS, VERDURAS, LACTEOS, CARNES, EMBUTIDOS, MULTIPLE, FARMACIA |
EstadoOrden | VIGENTE, EXPIRADA, CERRADA |
EstadoRecepcion | ACEPTADA, RECHAZADA, PENDIENTE, PARCIAL, CERRADA |
TipoRpc | TIPO1, TIPO2, TIPO3, CAJA_CARTON, OTRO, ENTREGA, DISCREPANCIA |