The Facturas API manages tax invoices issued for food donations processed through the Banco Alimentos system. Invoices can be created manually by providing a donation reference, date, and invoice type, or generated automatically from a confirmed donation using theDocumentation 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.
/generar/{idDonacion} endpoint. All IDs in this resource are Long integers. Access to each operation is controlled by dedicated authority strings.
Base URL
Endpoints
List all invoices
Bearer token with the
FACTURA_VER authority.200 OK
Get invoice by ID
Bearer token with the
FACTURA_VER authority.Internal numeric identifier of the invoice.
200 OK — single FacturaResponseDTO object.
Create invoice (manual)
Bearer token with the
FACTURA_CREAR authority.FacturaRequestDTO
Internal numeric ID of the donation this invoice is issued against.
Invoice date in
YYYY-MM-DD format.Invoice type. Must be one of the
TipoFactura enum values: A, B, or C.201 Created
Update invoice
Bearer token with the
FACTURA_ACTUALIZAR authority.Internal numeric identifier of the invoice to update.
FacturaRequestDTO fields as Create invoice.
Response — 200 OK — returns the updated FacturaResponseDTO.
Delete invoice
Bearer token with the
FACTURA_ELIMINAR authority.Internal numeric identifier of the invoice to delete.
200 OK
Auto-generate invoice from donation
Bearer token with the
FACTURA_CREAR authority.Internal numeric ID of the confirmed donation from which to generate the invoice.
The donation referenced by
idDonacion must not already have an associated invoice. If a factura already exists for that donation, the endpoint returns a business-rule error (422 Unprocessable Entity).A.
Response — 201 Created
Data models
FacturaRequestDTO
ID of the donation this invoice is issued for. Must not be null.
Invoice date in
YYYY-MM-DD format. Must not be null.Invoice type (
A, B, or C). Must not be null.FacturaResponseDTO
Internal numeric identifier of the invoice, assigned by the system.
Internal numeric ID of the associated donation.
Invoice date in
YYYY-MM-DD format.Invoice type:
A, B, or C.Full name of the donor, populated automatically from the donation record.
Enum: TipoFactura
| Value | Description |
|---|---|
A | Invoice type A — typically for VAT-registered entities |
B | Invoice type B — typically for end consumers |
C | Invoice type C — for exempt entities |