Export of goods invoice in TicketBAI
An export of goods outside the EU is sent with especial.clave_regimen 02 (export) and the base in exenta with causa_exencion E2 (article 21 of the Foral VAT Rule).
| Field | Value |
|---|---|
| API | TicketBAI API |
| Invoice type or key | clave_regimen 02 y exenta E2 |
| Endpoint | /ticketbai/create |
| When to use it | Sales of goods to customers outside the EU. |
What changes in this case
The customer is identified with id_otro (in the example, a US passport with codigo_pais US). tipo_operacion is bienes.
Regime key 02 marks an export and the base goes in exenta with cause E2. The invoice has no desglose_iva.
JSON request
Factura extracomunitaria - Exportación de bienes
{
"serie": "Ejemplos",
"numero": "1",
"fecha_expedicion": "19-11-2026",
"descripcion": "Factura extracomunitaria - Exportación de bienes",
"id_otro": {
"codigo_pais": "US",
"id_type": "03",
"id": "M76543210"
},
"nombre": "Nombre destinatario",
"cp": "10001",
"direccion": "1 Example Avenue, New York",
"tipo_operacion": "bienes",
"lineas": [
{
"descripcion": "Venta de bienes",
"cantidad": "1",
"importe_unitario": "200.00",
"importe_total": "200.00"
}
],
"exenta": {
"causa_exencion": "E2",
"base_imponible": "200.00"
},
"especial": {
"clave_regimen": "02"
},
"importe_total": "200.00"
}Related cases
Services outside the EUServices to businesses outside the EU, and to consumers outside the EU when they are article 69.Two services (advice, consultancy, electronic services, assignment of rights…).Services outside the EUIntra-EU B2B goodsSales of goods to businesses in other EU countries.Intra-EU B2B goodsExempt invoiceVAT-exempt operations.Exempt invoice
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.