Spain SII - Invoices Issued
Invoice
Changes to generic fields
recipient.contact.taxIdTypeis required.customInfo.esp.descriptionis required.customInfo.esp.vatSchemeTypeCodeis required.
type Invoice {
// ...all generic invoice fields
lines: [
{
// ..other line item fields
vat: {
code: string;
exemptReasonCode?: string;
}
customInfo: {
itemType?: string;
}
}
];
recipient: {
// ...everything from invoice.recipient,
// invoice.recipient.taxId can not have a ES country prefix for domestic transactions but it can for intra-EU or export transactions
contact: {
email?: string;
}
customInfo:{
taxIdType: string
}
};
customInfo: {
esp: {
fiscalYear?: string;
settlementPeriod?: string;
description: string;
invoiceType?: string;
taskType?: string;
vatSchemeTypeCode: string;
taxPayerCode?: string;
registrationId?: string;
warehouseAddress?: string;
arrivalDate?: string;
transactionType?: string;
}
};
Field information
Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | A value from an enumerated list of types: |
| string | Conditional | Mandatory if the E2: Exempt on account of Article 21 E3: Exempt on account of Article 22 E4: Exempt under Articles 23 and 24 E5: Exempt on account of Article 25 E6: Exempt on other grounds If lines[].vat.code is "NS": ESP-IM714: Sales is not subject to VAT under specific non-taxable legal categories (Articles 7 and 14 Note: When using this field, leave out |
| string | Yes | Three-letter country code (ISO 3166). |
| string | Conditional | Email address of recipient. Required for invoices submitted to non-registered entities |
| string | Yes | Identification types in the country of residence. A value from an enumerated list of types: 03: PASSPORT 04: OFFICIAL IDENTIFICATION DOCUMENT ISSUED BY THE COUNTRY OR REGION OF RESIDENCE 05: RESIDENCE CERTIFICATE 06: OTHER SUPPORTING DOCUMENT 07: NOT REGISTERED |
| string | Optional | Fiscal year (YYYY format) |
| string | Optional | Settlement period (MM format, 01-12) |
| string | Required | Operation description of the invoice |
| string | Optional | F1: Regular Invoice F2: Simplified Invoice |
| string | Optional | A value from an enumerated list of communication types: A1: Modification of invoices/records (registry errors) A4: Modification of Travelers Invoice A5: Registration of VAT refunds for travelers A6: Modification of VAT refunds for travelers |
| string | Conditional | Classification for transactions subject and not exempt from Spanish VAT. A value from an enumerated list of types: S1: Standard not exempt- Without reverse charge S2: Reverse Charge S3: Without reverse charge and with reverse charge. Note: Do not use when |
| string | Required | A value from an enumerated list of codes as outlined on Spain SII VAT regime codes |
Example CSV file
Updated about 11 hours ago