es-facturae-v3
Correction Definitions
Auto-generation of corrective invoices or credit and debit notes is supported.Extension Keys
One or all of the following extensions may be required as part of the correction options. See the Extensions section for possible values.es-facturae-correction
Scenarios
Scenarios attach notes and extensions to a document when its filters match. Read more about scenarios.bill/invoice
bill/invoice
| Tags | Type | Output |
|---|---|---|
| - | standardcorrectivecredit-notedebit-note | { |
simplified | - | { |
self-billed | - | { |
| - | standard | { |
| - | correctivecredit-notedebit-note | { |
summary | - | { |
copy | standard | { |
copy | corrective | { |
copysummary | standard | { |
Extensions
FacturaE: Document Type
es-facturae-doc-type
es-facturae-doc-type
| Code | Name |
|---|---|
FC | Commercial Invoice |
FA | Simplified Invoice |
AF | Self-billed Invoice |
FacturaE: Invoice Class
es-facturae-invoice-class
es-facturae-invoice-class
| Code | Name |
|---|---|
OO | Original |
OR | Corrective Original |
OC | Summary Original |
CO | Copy of the Original |
CR | Copy of the Corrective |
CC | Copy of the Summary |
FacturaE Change
FacturaE requires a specific and single code that explains why the previous invoice is being corrected.es-facturae-correction
es-facturae-correction
| Code | Name |
|---|---|
01 | Invoice code |
02 | Invoice series |
03 | Issue date |
04 | Name and surnames/Corporate name - Issuer (Sender) |
05 | Name and surnames/Corporate name - Receiver |
06 | Issuer’s Tax Identification Number |
07 | Receiver’s Tax Identification Number |
08 | Supplier’s address |
09 | Customer’s address |
10 | Item line |
11 | Applicable Tax Rate |
12 | Applicable Tax Amount |
13 | Applicable Date/Period |
14 | Invoice Class |
15 | Legal literals |
16 | Taxable Base |
80 | Calculation of tax outputs |
81 | Calculation of tax inputs |
82 | Taxable Base modified due to return of packages and packaging materials |
83 | Taxable Base modified due to discounts and rebates |
84 | Taxable Base modified due to firm court ruling or administrative decision |
85 | Taxable Base modified due to unpaid outputs where there is a judgement opening insolvency proceedings |
Validation Rules
Validation rules check each struct against a set of assertions and report any failures with a unique code and message. Read more about validation.bill.Invoice
bill.Invoice
| Field | Test | Validation Code / Message |
|---|---|---|
customer.tax_id.code |
| GOBL-ES-FACTURAE-V3-BILL-INVOICE-01Customer tax ID code is required for Spanish customers |
tax |
| GOBL-ES-FACTURAE-V3-BILL-INVOICE-02Tax object is required with ext document type and invoice classes |
tax.ext |
| GOBL-ES-FACTURAE-V3-BILL-INVOICE-03Tax ext require ‘es-facturae-doc-type’ and ‘es-facturae-invoice-class’ extensions |
preceding |
| GOBL-ES-FACTURAE-V3-BILL-INVOICE-04Preceding document reference is required for credit-note, corrective, debit-note invoices |
preceding[*].issue_date |
| GOBL-ES-FACTURAE-V3-BILL-INVOICE-05Preceding document issue date is required |
preceding[*].ext |
| GOBL-ES-FACTURAE-V3-BILL-INVOICE-06Preceding document ext require ‘es-facturae-correction’ extension |