Delivery orders (pedidos a domicilio) require a dedicated invoicing flow because the delivery fee is taxed differently from the prepared food items on the same order. While restaurant food typically carries INC at 8 %, the delivery fee is generally subject to IVA at 19 % — and must appear as a distinct, separately taxed line on the electronic invoice. This endpoint handles orders from any delivery channel: Rappi, Didi, your own web platform, or an in-house dispatcher. The acquirer model mirrors the local order endpoint and supports both anonymous consumers and identified customers.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/farojas85/fast-rest-api/llms.txt
Use this file to discover all available pages before exploring further.
Planned Endpoint
| Property | Value |
|---|---|
| Method | POST |
| Path | /api/v1/pedidos/domicilio/ (planned) |
| Success status | 201 Created (planned) |
Business Rules
The following rules are derived from the project feature spec (Historia de Usuario 2: Facturación de Pedidos a Domicilio):Delivery fee is a separate taxable line item
The
delivery_fee must be treated as an independent invoice line with its own tax rate. It is not bundled into the food items’ subtotal. Typically it is subject to IVA 19 %, not INC 8 %.Tax rates are configurable per item
The
InvoiceItemDTO schema exposes both inc_tax_rate and iva_tax_rate as optional per-item fields. The POS or delivery platform integration is responsible for sending the correct rate for each line, including the delivery fee line.Acquirer model is identical to local orders
The
customer_id field follows the same anonymous/identified pattern: "222222222222" for Consumidor Final, or the customer’s RUT/NIT for identified buyers. Delivery platforms may supply a customer identifier during checkout.Planned Request Body
The following fields are based onInvoiceCreateRequest from src/infrastructure/controllers/schemas/invoice_schema.py and the delivery feature specification.
List of order items. Each item carries independent tax configuration, allowing food lines and the delivery fee line to be taxed at different rates within the same invoice.
Voluntary tip amount. Reported on the invoice but not taxable — excluded from both INC and IVA bases.
Customer RUT, NIT, or Cédula number. Defaults to the DIAN-approved anonymous consumer code
"222222222222". Delivery platforms may supply the end customer’s identifier at checkout.Delivery fee amount. This value is added as a distinct invoice line subject to
iva_tax_rate (typically 19 %). A value of 0.0 indicates no delivery charge (e.g., free delivery promotions).Identifies the platform or channel through which the order was placed. Used for reporting, reconciliation with third-party platform invoices, and operational analytics. Accepted values:
"RAPPI", "DIDI", "WEB", "LOCAL".Tax Differences vs. Local Orders
The key distinction between a delivery order and a dine-in order is the tax treatment of the delivery fee line:- Local dine-in order
- Delivery order
| Line item | Applicable tax | Typical rate |
|---|---|---|
| Food & beverages | INC | 8 % |
| Alcoholic beverages (certain categories) | IVA | 19 % |
| Voluntary tip | None | — |
ImpuestoRequest.nombre and ImpuestoRequest.tasa in PedidoLocalCreateRequest.items array showing mixed tax treatment: