Invoice with reverse charge in TicketBAI
With reverse charge, the invoice sets especial.inversion_sujeto_pasivo to true and, in desglose_iva, tipo_impositivo and cuota_impuesto to 0.
| Field | Value |
|---|---|
| API | TicketBAI API |
| Invoice type or key | especial.inversion_sujeto_pasivo: true |
| Endpoint | /ticketbai/create |
| When to use it | Operations where the recipient accounts for VAT (for example, certain construction work). |
What changes in this case
Under reverse charge (inversión del sujeto pasivo) the recipient accounts for VAT, not the issuer. It applies to specific operations set by VAT rules, such as certain construction work.
The invoice charges no VAT: tipo_impositivo and cuota_impuesto are 0 and importe_total equals the base. With inversion_sujeto_pasivo set to true, the TicketBAI file declares the operation as subject and not exempt with reverse charge (S2).
JSON request
{
"serie": "Ejemplos",
"numero": "1",
"fecha_expedicion": "19-11-2026",
"descripcion": "Factura con inversión del sujeto pasivo",
"nif": "A15022510",
"nombre": "Nombre destinatario",
"cp": "48001",
"direccion": "Calle Ejemplo 1, Bilbao",
"lineas": [
{
"descripcion": "Trabajos de construcción",
"cantidad": "1",
"importe_unitario": "1000.00",
"importe_total": "1000.00"
}
],
"desglose_iva": [
{
"base_imponible": "1000.00",
"tipo_impositivo": "0",
"cuota_impuesto": "0.00"
}
],
"especial": {
"inversion_sujeto_pasivo": true
},
"importe_total": "1000.00"
}Common errors
If especial.inversion_sujeto_pasivo is true, the API rejects any desglose_iva entry with a tipo_impositivo other than 0.
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.