The Remitos API manages dispatch notes — documents that record when and to which institution a food delivery was made. Each remito is identified by a UUID, links to an institution by its internal Long ID, and carries a delivery date. The list endpoint accepts flexible date filters so operations staff can query deliveries by month, year, or an arbitrary date range.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/alvarezlautaro/BancoAlimentos/llms.txt
Use this file to discover all available pages before exploring further.
Base URL
Path parameters use UUID format (e.g.
3fa85f64-5717-4562-b3fc-2c963f66afa6).Endpoints
Create remito
Bearer token with the
REMITO_CREAR authority.NuevoRemitoDTO
Delivery date in
YYYY-MM-DD format. Must not be a future date.Internal numeric ID of the destination institution.
| Code | Meaning |
|---|---|
201 Created | Remito created successfully |
400 Bad Request | Invalid request data |
404 Not Found | Institution not found |
422 Unprocessable Entity | Business rule violation |
201 Created
List all remitos (paginated)
Bearer token with the
REMITO_VER authority.Filter by month (1–12). Optional.
Filter by year (e.g.
2024). Optional.Start of date range in
YYYY-MM-DD format. Optional.End of date range in
YYYY-MM-DD format. Optional.Zero-based page index. Default:
0.Number of records per page. Default:
10.Sort field and direction. Default:
fecha.200 OK — Spring Page<RemitoDTO> envelope.
Get remito by ID
Bearer token with the
REMITO_VER authority.External UUID of the remito.
200 OK — single RemitoDTO object.
Full update
Bearer token with the
REMITO_ACTUALIZAR authority.External UUID of the remito to update.
ActualizarRemitoDTO fields (see Data models below).
Response — 200 OK — returns the updated RemitoDTO.
Partial update
Bearer token with the
REMITO_ACTUALIZAR authority.External UUID of the remito.
ActualizarRemitoDTO shape; only provided fields are updated.
Response — 200 OK — returns the updated RemitoDTO.
Delete remito
Bearer token with the
REMITO_ELIMINAR authority.External UUID of the remito to delete.
204 No Content — empty body on success.
Data models
NuevoRemitoDTO
Delivery date (
YYYY-MM-DD). Must not be in the future.Internal numeric ID of the destination institution.
RemitoDTO
Unique identifier of the remito, assigned by the system.
Delivery date in
YYYY-MM-DD format.Internal numeric ID of the destination institution.
ActualizarRemitoDTO
| Field | Type | Required | Constraints |
|---|---|---|---|
fecha | LocalDate | Must not be a future date | |
idInstitucion | Long | Internal institution ID |
Pagination
List responses use Spring’s standardPage<T> envelope.
| Query param | Default | Description |
|---|---|---|
page | 0 | Zero-based page number |
size | 10 | Records per page |
sort | fecha | Sort field and optional direction (asc/desc) |
mes, anio, desde, hasta) can be combined freely. When both mes/anio and desde/hasta are supplied, the server’s filtering logic applies.