How to
Invoicing during a TicketBAI incident
What to do if you can't issue with TicketBAI or your invoices don't reach Hacienda: article 17 in Álava and Gipuzkoa, its legend, the template to notify Hacienda and the rejections of the Provincial Council of Bizkaia.
Note
Nubigest doesn't offer TicketBAI yet. This article explains the procedure for when it does.
With TicketBAI, Nubigest signs each invoice when you issue it and sends its file to your territory's Hacienda Foral, the provincial tax authority (how TicketBAI works in Nubigest). If something fails, article 17 of the TicketBAI regulations of Álava and Gipuzkoa says what to do, and it tells two cases apart: you can't generate the file or issue the invoice with the program, or you can generate it but not send it. In Bizkaia, the Provincial Council can also reject what Nubigest records in the LROE: it's explained in “If the Provincial Council of Bizkaia rejects an invoice”, at the end.
| What happens | What Nubigest does | What you do |
|---|---|---|
| You issue, but the file doesn't reach Hacienda (art. 17.3) | Keeps it and retries sending by itself | Nothing: you deliver the invoice as usual |
| You can't issue with Nubigest (art. 17.1 and 17.2) | Issues nothing and saves nothing | You notify Hacienda, invoice by other means in an incident series and re-enter them afterwards |
If invoices don't reach Hacienda
It happens when Hacienda doesn't answer, the connection to it fails or it doesn't accept the certificate Nubigest sends with (code 001), which Nubigest solves. The invoice is issued anyway, with its TicketBAI code and QR, and you can deliver it to your customer without waiting. Article 17.3 asks the program to keep the files and send them when the connection is back, and that's what Nubigest does: you don't have to notify Hacienda or change series.
- The invoice is Sending to Hacienda until Hacienda receives it. Nubigest retries by itself, with the same files it signed when you issued and in the same order.
- If a record has gone more than an hour without arriving, it shows up in Fiscal › Action required, under Records pending for over 1 hour.
- If it goes past 12 hours, those who manage invoicing also get the email Invoices not yet at Hacienda.
- If the invoice is in Sending to Hacienda stopped, sending has halted on an error that retrying doesn't fix, such as Gipuzkoa's code 007, which asks you to authorize Nubigest's device in its e-office. Whoever manages the fiscal area reviews it in Action required and, once the cause is solved, resumes it with Retry, which resends in order everything the organization had stopped.
Note
Seeing Action required needs access to the fiscal area; pressing Retry and getting the 12-hour email, permission to manage it. Each role's permissions, in Roles and permissions.
If you can't issue with Nubigest
It happens when you can't generate the file or issue the invoice with Nubigest: a power cut, a broken computer, your connection going down or a Nubigest failure. Nubigest works over the internet, so without a connection you can't generate any file either: it's this case, not the previous one.
If signing is what fails, issuing shows TicketBAI signing failed and nothing was saved. Try again in a few minutes. The invoice hasn't been issued and its number hasn't been used: the draft stays as it was and Issue tries again. If it shows TicketBAI signing failed because of an error on our side and nothing was saved. Trying again won’t fix it: please contact support., write to support: until it's fixed, you're in this case. On the other hand, The TicketBAI certificate still has to be linked to your tax ID and territory. isn't an incident: link the current certificate in Settings › Invoicing (how) and issue again. Cancelling an invoice also needs signing, with the same messages: if it fails, cancel it once it works again.
The procedure is only needed for invoices you have to issue at the time of the transaction, such as a sale to a private individual. If one can wait (the deadlines, in What an invoice is and when to issue it), issue it with Nubigest once it works again. If it can't wait:
Notify Hacienda
Write to your territory's Hacienda Foral with your name or company name, your tax ID and the cause, and say in the subject that it's an article 17 incident: the address and the template are below. You do it yourself: Nubigest doesn't notify on your behalf. The rules set no deadline; notify as soon as it starts.
Open an incident series
Number these invoices in order and without gaps in a series you only use for them, different from Nubigest's. Since they'll go into TicketBAI later, keep the series within 20 characters, with no space at its start or end, not starting with DFA_ and without # % & + ? ¿ or quotes. You can settle it in advance, with an invoice template that already carries the legend.
Issue each invoice by other means
On paper, for instance, with all the details of an invoice, its number in the incident series and your territory's legend. It carries no TicketBAI code or QR: only the program generates them. Note the date and time you issue it, give it to your customer and keep a copy.
Re-enter them when it's over
As soon as the cause is gone, enter the details of every invoice in the incident series into the TicketBAI program, in order and one after another, to generate their files and send them. What the program produces is a duplicate of the invoice you already delivered, and your customer can ask you for it with its TicketBAI code and QR. You don't need to tell Hacienda the incident is over.
Warning
Nubigest can't do that re-entry yet: it doesn't accept an invoice with the series, number, date and time you issued it with, and it doesn't produce its duplicate. Don't issue those invoices again as new ones, nor the draft left in Nubigest for the same sale: they'd have another number and another date, and the sale would be invoiced twice. Write to support with the list of the invoices in the incident series.
What details an invoice carries, in Anatomy of an invoice, and how a series is numbered, in Invoice numbering and series.
What changes between Álava and Gipuzkoa
The procedure is the same in both territories. What changes is the legend the invoice carries, which goes in Spanish as the regulation words it, and how you notify Hacienda:
| Álava | Gipuzkoa | |
|---|---|---|
| Rules | TicketBAI regulation (Foral Decree 48/2021), art. 17 | TicketBAI regulation (Foral Decree 32/2020), art. 17, as worded by Foral Decree 12/2021 |
| Invoice legend | «factura o justificante expedido según lo dispuesto en el artículo 17 del Decreto Foral por el que se desarrolla la obligación TicketBAI» (invoice or receipt issued under article 17 of the Foral Decree implementing the TicketBAI obligation) | «factura o justificante sin TicketBAI con incidencia notificada» (invoice or receipt without TicketBAI, with a notified incident) |
| Notice | Email to ticketbai@araba.eus | Email to ticketbai@gipuzkoa.eus |
| If it lasts more than 24 hours | Its FAQ asks for nothing more | Also a written submission in Zergabidea, the Hacienda Foral's online platform |
| When it's over | No need to notify | No need to notify |
Note
Bizkaia has its own TicketBAI regulation, whose incident procedure this article doesn't cover yet: if you can't issue with Nubigest, ask the Provincial Council of Bizkaia which legend and which notice it requires.
Gipuzkoa changed its legend on 1 January 2022. If you come across the previous one, which cited article 17 of the regulation, it's no longer the one in force.
Notice template
Write to your territory's address with the subject «Incidencia del artículo 17 del Reglamento TicketBAI» (article 17 incident, TicketBAI regulation) and this text, in Spanish, with your details instead of the brackets. Its fields are your name or company name, tax ID, start date and time, cause, incident series, expected end and a contact:
Nombre o razón social: [ ]
NIF: [ ]
Inicio: [fecha], a las [hora]
Causa: [qué ha pasado]
Serie de incidencias: [serie]
Fin previsto: [fecha y hora]
Contacto: [teléfono o email]
- For «Causa» (cause), one phrase is enough: «corte de luz» (power cut), «avería del ordenador» (computer breakdown), «sin conexión a internet» (no internet connection) or «el programa TicketBAI no puede firmar las facturas» (the TicketBAI program can't sign the invoices).
- If you don't know when it will end, write «sin determinar» (not yet known) in «Fin previsto» (expected end).
- Keep the email you sent: it's the proof that you notified.
- In Gipuzkoa, if the incident goes past 24 hours, submit the same text as a written submission in Zergabidea.
If the Provincial Council of Bizkaia rejects an invoice
In Bizkaia, Nubigest records each invoice in BATUZ's LROE when you issue it (how). If the Provincial Council rejects an entry, Nubigest stops the organization's submissions with the reason: the invoice stays in Sending to Hacienda stopped, the following ones wait and Fiscal › Action required says what fails. What you do depends on what it rejects:
| What it rejects | What you do |
|---|---|
| The income data of model 140, such as an IAE heading that isn't on its list | On the invoice, Correct the income data…: change the IAE heading or the Collections and payments criterion and click Correct and resend. The TicketBAI file doesn't change: it's resent with the corrected income data |
The device certificate (N3_0000016) | Register Nubigest's certificate in procedure 1740 of the Provincial Council's e-office, with the serial number from Settings › Invoicing, and click Retry in Action required |
Your identification (N5_ codes): the tax ID or the name don't match its register | Check the name and surnames in Record book and the tax ID, as they appear in the Provincial Council's register, and click Retry |
| The invoice file | Regularize the invoice in BATUZ's e-office, with the steps below, and click Regularized in the e-office… |
A signed file isn't modified, and resending it would give the same rejection. To regularize the invoice, its notice in the invoice detail brings the guide from BATUZ's FAQ 160:
Record the operation in subchapter 1.2
In BATUZ's e-office, record the operation in subchapter 1.2 of the LROE, the one for income without guarantor software, with its most relevant details if any of them doesn't pass its checks.
If an invoice detail changes, rectify it
If what fails changes one of the contents that article 15 of the Invoicing Regulation requires to rectify, also issue a corrective invoice with Rectify…, which Nubigest records in subchapter 1.1.
If the operation was wrong, cancel it
Record the cancellation of the original invoice in subchapter 1.2, in the e-office, and, if appropriate, issue a new invoice in Nubigest, which records it in 1.1.
Mark the invoice as regularized
Click Regularized in the e-office… and confirm it with Mark as regularized. The invoice stays rejected in 1.1, with Regularized in the e-office: the transaction is recorded in subchapter 1.2 of the LROE in its detail; it leaves Action required and the following submissions resume.
Warning
Nubigest records nothing in subchapter 1.2: you, or your accountant, do it in the e-office. Mark the invoice as regularized only once it's done, because it resumes the submissions of the following invoices.
Correct the income data… and Regularized in the e-office… need the permission to rectify invoices and a recent sign-in; Retry, the one to manage the fiscal area. If a model 140 invoice mixes regime key 52 (simplified scheme) with lines under the general scheme, Nubigest doesn't issue it, so it never gets rejected: make one invoice per activity.