QR Code Structure and Field Mapping
Refer the table to know more about the message incorporated in the QR code.
The table shows details such as code, description, maximum length and mandatory columns. In the Mandatory column, you must include fields with the symbol +. Fields with the symbol ++ are optional, but you must include them if the related information exists.
Code | Description | Maximum Length | Mandatory | Source Information |
---|---|---|---|---|
A | Issuer Tax Identification Number/Tax Registration Number (NIF/TRN) | 9 | + | Manage Tax Registrations, Legal Reporting Unit Tax Profile |
B | Customer NIF/TRN | 30 | + |
Customer, Tax Profile, Tax Registrations, Registration Number For Generic customers, display '999999990' |
C | Customer Country | 12 | + |
Completed by designating “Desconhecido” in
|
D | Document Type | 2 | + | Transaction Type Regional Information, andAR Transaction Types |
E | Document Status | 1 | + | Receivables transaction header, Miscellaneous, Regional Information and Invoice Status |
F | Document Date | 8 | + | Receivables transaction header and Transaction Date |
G | Document's Unique Identification | 60 | + | Combination of the transaction type, document sequence ID, and document number |
H | ATCUD | 70 | + | Receivables transaction header, Miscellaneous, Regional Information, and ATCUD |
I1 | Tax Country Region | 5 | + |
Tax reporting code value of the tax rate on the Receivables transaction that has these attributes:
If there is only one Tax Country Region for a particular invoice, fields I1 to I8 are populated. The indication that a document exists without VAT rate is displayed in tables 4.2, 4.3, or 4.4 of the SAF-T (PT) as «0» (I1:0). |
I2 | Taxable Amount for Exempt VAT rate | 16 | ++ |
Lines with tax rates have these tax reporting codes for respective tax reporting type codes:
OR
|
I3 | Taxable Amount for Reduced VAT rate | 16 | ++ |
Lines with tax rates have these tax reporting codes for respective tax reporting type codes:
|
I4 | Total tax amount for Reduced VAT rate | 16 | ++ |
Lines with tax rates have these tax reporting codes for respective tax reporting type codes:
|
I5 | Taxable Amount for Intermediate VAT rate | 16 | ++ |
Lines with tax rates have these tax reporting codes for respective tax reporting type codes:
|
I6 | Total tax amount for intermediate VAT | 16 | ++ |
Lines with tax rates have these tax reporting codes:
|
I7 | Taxable Amount for Normal VAT rate | 16 | ++ | Lines with tax rates have these tax reporting codes for respective tax
reporting type codes:
|
I8 | Total tax amount for normal VAT | 16 | ++ |
Lines with tax rates have these tax reporting codes for respective tax reporting type codes:
|
J1 | Tax Country Region | 5 | ++ |
Tax reporting code value of the tax rate on the Receivables transaction that has these attributes:
Note: If there is only one Tax Country Region for a particular
invoice, fields I1 to I8 are populated.
|
J2 | Taxable Amount for Exempt VAT rate | 16 | ++ |
Lines with tax rates have these tax reporting codes for respective tax reporting type codes:
OR
|
J3 | Taxable Amount for Reduced VAT rate | 16 | ++ |
Lines with tax rates have these tax reporting codes for respective tax reporting type codes:
|
J4 | Total tax amount for Reduced VAT rate | 16 | ++ |
Lines with tax rates have these tax reporting codes for respective tax reporting type codes:
|
J5 | Taxable Amount for Intermediate VAT rate | 16 | ++ |
Lines with tax rates have these tax reporting codes for respective tax reporting type codes:
|
J6 | Total tax amount for intermediate VAT | 16 | ++ |
Lines with tax rates have these tax reporting codes for respective tax reporting type codes:
|
J7 | Taxable Amount for Normal VAT rate | 16 | ++ |
Lines with tax rates have these tax reporting codes for respective tax reporting type codes:
|
J8 | Total tax amount for normal VAT | 16 | ++ |
Lines with tax rates have these tax reporting codes for respective tax reporting type codes:
|
K1 | Tax Country Region | 5 | ++ |
Tax reporting code value of the tax rate on the Receivables transaction has these attributes:
NOTE: If there is only one Tax Country Region for a particular invoice, fields I1 to I8 are populated. |
K2 | Taxable Amount for Exempt VAT rate | 16 | ++ |
Lines with tax rates have these tax reporting codes for respective tax reporting type codes:
OR
|
K3 | Taxable Amount for Reduced VAT rate | 16 | ++ | Lines with tax rates have these tax reporting codes for respective tax
reporting type codes:
|
K4 | Total tax amount for Reduced VAT rate | 16 | ++ |
Lines with tax rates have these tax reporting codes for respective tax reporting type codes:
|
K5 | Taxable Amount for Intermediate VAT rate | 16 | ++ |
Lines with tax rates have these tax reporting codes for respective tax reporting type codes:
|
K6 | Total tax amount for intermediate VAT | 16 | ++ |
Lines with tax rates have these tax reporting codes for respective tax reporting type codes:
|
K7 | Taxable Amount for Normal VAT rate | 16 | ++ |
Lines with tax rates have these tax reporting codes for respective tax reporting type codes:
|
K8 | Total tax amount for normal VAT Rate | 16 | ++ | Lines with tax rates have these tax reporting codes for respective tax
reporting type codes:
|
L | Not subject to VAT / non-taxable amount | 16 | ++ | Lines with tax rates have these tax reporting codes for respective tax
reporting type codes:
|
M | Stamp Duty Amount | 16 | ++ |
Lines with tax rates have these tax reporting codes:
|
N | Total Tax | 16 | + | Total tax amount on the document |
O | Total Document Amount including Tax | 16 | + | Total amount on the document |
P | Withholding Tax Amount | 16 | ++ | Not included in the QR code message |
Q |
4 characters of Hash |
4 | + | Receivables transaction header, Miscellaneous, Regional Information, Hash value |
R | Software Certificate number | 4 | + | Receivables transaction header, Miscellaneous, Regional Information, Certificate Number |
S | Other Optional Information | 65 | ++ | N/A |
Known Limitations
Here are some known limitations:
- QR code and ATCUD are not supported in Receipt transactions, as these are not included in the signature processing.
- ATCUD is not supported in Supply Chain transactions.