Exchange invoice in TicketBAI: replacing simplified invoices
To swap a simplified invoice for a full one, issue a new invoice with sustitucion_simplificada set to true and the original simplified invoice in rectificadas_sustituidas.
| Field | Value |
|---|---|
| API | TicketBAI API |
| Invoice type or key | sustitucion_simplificada: true |
| Endpoint | /ticketbai/create |
| When to use it | When the customer asks for an invoice in their name for a receipt already issued. |
What changes in this case
Say you issued a receipt (a simplified invoice) and the customer later asks for an invoice with their details. You issue a new full invoice, with its own series and number, that identifies the recipient and sets sustitucion_simplificada to true.
rectificadas_sustituidas lists the series, number and date of the simplified invoices being replaced. It is an array: one exchange invoice can replace several.
The exchange invoice must be a full invoice (simplificada set to false) and cannot also be a corrective invoice.
JSON requests
Original simplified invoice
{
"serie": "SIMPLE",
"numero": "1",
"fecha_expedicion": "19-11-2026",
"descripcion": "Factura simplificada",
"simplificada": true,
"lineas": [
{
"descripcion": "Producto",
"cantidad": "1",
"importe_unitario": "200.00",
"importe_total": "242.00"
}
],
"desglose_iva": [
{
"base_imponible": "200.00",
"tipo_impositivo": "21",
"cuota_impuesto": "42.00"
}
],
"importe_total": "242.00"
}Exchange invoice
{
"serie": "CANJE",
"numero": "1",
"fecha_expedicion": "19-11-2026",
"descripcion": "Factura completa en sustitución de una simplificada",
"nif": "A15022510",
"nombre": "Nombre destinatario",
"cp": "48001",
"direccion": "Calle Ejemplo 1, Bilbao",
"sustitucion_simplificada": true,
"rectificadas_sustituidas": [
{
"serie": "SIMPLE",
"numero": "1",
"fecha_expedicion": "19-11-2026"
}
],
"lineas": [
{
"descripcion": "Producto",
"cantidad": "1",
"importe_unitario": "200.00",
"importe_total": "242.00"
}
],
"desglose_iva": [
{
"base_imponible": "200.00",
"tipo_impositivo": "21",
"cuota_impuesto": "42.00"
}
],
"importe_total": "242.00"
}Related cases
Try this case in the test environment
Create your free account and ask soporte@verifacti.com for a TicketBAI test NIF; then copy the request and send it with its test API key.