Invoice under REBU (second-hand goods) in TicketBAI
A REBU invoice is sent with especial.clave_regimen 03: desglose_iva carries the base and tax calculated on the margin, and importe_total is the sale price.
| Field | Value |
|---|---|
| API | TicketBAI API |
| Invoice type or key | clave_regimen 03 |
| Endpoint | /ticketbai/create |
| When to use it | Sales of second-hand goods, works of art or antiques under REBU. |
What changes in this case
REBU lets VAT be charged only on the resale margin. Take a second-hand item sold for €3,000 and bought for €2,000: the margin is €1,000. At 21%:
- Taxable base = €1,000 × 100 / 121 ≈ €826.45.
- Tax amount = €826.45 × 0.21 ≈ €173.55.
importe_total is the sale price, €3,000. With key 03, the API does not require importe_total to match the breakdown or the lines, because VAT is calculated on the margin.
The invoice you hand over does not show the VAT amount separately and carries the note "Special scheme for second-hand goods"; the breakdown only goes in the TicketBAI file.
JSON request
{
"serie": "Ejemplos",
"numero": "1",
"fecha_expedicion": "19-11-2026",
"descripcion": "Factura en régimen especial de bienes usados (REBU)",
"nif": "A15022510",
"nombre": "Nombre destinatario",
"cp": "48001",
"direccion": "Calle Ejemplo 1, Bilbao",
"lineas": [
{
"descripcion": "Bien usado",
"cantidad": "1",
"importe_unitario": "2826.45",
"importe_total": "3000.00"
}
],
"desglose_iva": [
{
"base_imponible": "826.45",
"tipo_impositivo": "21",
"cuota_impuesto": "173.55"
}
],
"especial": {
"clave_regimen": "03"
},
"importe_total": "3000.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.