Export of goods invoice in Verifactu
An export of goods outside the EU is sent with clave_regimen 02 and operacion_exenta E2, with no tax fields.
| Field | Value |
|---|---|
| API | Verifactu API |
| Invoice type or key | F1 · clave_regimen 02 · E2 |
| Endpoint | /verifactu/create |
| When to use it | Sale of goods leaving the EU. |
What changes in this case
The export of goods involves the sale of physical products that leave the European Union's VAT application territory. In these cases, the operation is subject to but exempt from Spanish VAT, regardless of whether the recipient is a company, a professional, or a final consumer.
To correctly reflect this exemption in Verifactu, the JSON requires a specific configuration. First, the clave_regimen must be used with the value 02 (Export). Second, the line must be explicitly marked as exempt using the operacion_exenta field with the value E2 (Exempt under Article 21 of the VAT Law). Since there is an exemption cause, the API will not accept sending the tax rate or passed-on quota fields.
The identification of the extra-community client is always done through the id_otro block. Depending on the document provided by the client, document types such as 03 (Passport), 04 (ID in country of residence) or 06 (Other supporting document) will be used, always accompanied by their ISO country code.
Below is an example of such an invoice.
JSON request
{
"serie": "Ejemplos",
"numero": "1",
"fecha_expedicion": "19-11-2026",
"tipo_factura": "F1",
"descripcion": "Factura extracomunitaria - Exportación de bienes",
"id_otro": {
"codigo_pais": "US",
"id_type": "03",
"id": "M76543210"
},
"nombre": "Nombre destinatario",
"lineas": [
{
"base_imponible": "200",
"clave_regimen": "02",
"operacion_exenta": "E2"
}
],
"importe_total": "200"
}Try this case in the test environment
Create your free account, copy the request and send it with the test API key of your test NIF.