Record in the same operation
The record is generated when the document is issued. If it cannot be generated, the document is not issued.
Taking payment and invoicing are one and the same operation. Each document generates its invoicing record with a chained hash and a QR code, and StockRest submits it to the AEAT (Spanish Tax Agency) with the restaurant's certificate.
Illustrative example. This is not an issued invoice.
Invoicing software must generate a record for each invoice, chained to the previous one, and include a QR code on the document. Under the VERI*FACTU option, those records are sent to the Spanish Tax Agency.
StockRest was designed for this option from the start: the record is not a later add-on, it is part of issuing the document.
Business-to-business e-invoicing has its own regulations and is not covered by using VERI*FACTU. Before starting, each restaurant's specific tax situation is reviewed.
Your restaurant
Tax ID (NIF) and venue address
The issued document and the status of its submission follow separate paths, and both remain visible.
The record is generated when the document is issued. If it cannot be generated, the document is not issued.
Each record includes the hash of the previous one, so the chain cannot be altered without it showing.
The content of the record is checked against the schemas published by the AEAT before it is sent.
The receipt and the invoice carry the QR code so that the customer can check them on the AEAT's online portal.
The connection to the AEAT is authenticated with the restaurant's certificate, which is stored encrypted.
Records are sent in batches with the waiting times set by the AEAT. If no response arrives, the status is queried before resending.
Issued documents are never overwritten. A correction is made with a corrective invoice or with a full invoice that replaces the receipt, and both remain linked to the original.
| Document | Code |
|---|---|
| Simplified invoice (receipt) | F2 |
| Full invoice | F1 |
| Full invoice replacing a receipt | F3 |
| Corrective invoice for a simplified invoice | R5 |
| Corrective invoice for all other invoices | R1 to R4 |
Each restaurant's submission has three modes. Going live happens once everything has been checked.
No record is generated or sent. This is the starting point while the tax details are being set up.
Records are sent to the AEAT's test environment to check the certificate and the configuration.
Records are submitted to the AEAT with full tax validity. Training mode never sends anything.
According to the timetable published by the AEAT, adaptation becomes mandatory in January 2027 for Corporate Income Tax payers and in July 2027 for everyone else who is required to comply.
Always check the current information on the AEAT's online portal.
Tell us how your restaurant works and we will show you how the dining room, kitchen, purchasing and till fit together.