Skip to content

Search help

Type to search the help center articles.

Warning

This article explains how Nubigest works and is not tax advice. If you have a question about your case, ask your tax advisor.

This article is a translation: the Spanish version is the reference. Read it in Spanish

Concepts

Invoicing with TicketBAI

Who invoices with TicketBAI in Álava, Bizkaia and Gipuzkoa, how it's activated with Nubigest's device, what each invoice carries, how it's sent, consolidated and corrected, what changes in Bizkaia with BATUZ's LROE and what to do when the certificate is renewed or when you close invoicing.

Note

Nubigest doesn't offer TicketBAI yet: today, if you answer Álava, Bizkaia or Gipuzkoa in the tax setup wizard, you reach Invoicing not available with the notice TicketBAI, coming soon. This article explains how it will work once it's available.

TicketBAI is the system used to invoice in Álava (Araba), Bizkaia and Gipuzkoa. Each invoice is signed with a certificate and its file is sent to the territory's Provincial Council (Diputación Foral) at the moment it's issued; a cancellation, at the moment it's cancelled (each territory's TicketBAI regulation, art. 14). The printed invoice carries a TicketBAI code and a QR code that your customer uses to check on Hacienda's website that it was received (arts. 16 and 19). Nubigest does all of this for you: it signs with its device certificate, sends on your behalf and keeps each file exactly as it was sent.

Who invoices with TicketBAI

It depends on the tax authority you file your income tax or corporate tax with, not on where your customers are. In the wizard's Territory and regime step:

  • To Which tax authority do you file your income tax or corporate tax with? answer Provincial Council of Álava, Provincial Council of Bizkaia or Provincial Council of Gipuzkoa. If you're a self-employed person, it's the one of your habitual residence; if it's a company, the one of its tax address (Economic Agreement, arts. 6 and 14).
  • To Do you keep your VAT books through the SII? answer No. With the SII, Nubigest doesn't issue your invoices yet. In Bizkaia the question is a different one: whether you're a large company, a VAT group or registered in REDEME, which record in the LROE within 4 days. Nubigest doesn't cover that case yet.

In Bizkaia, TicketBAI is part of BATUZ, with the record book of economic operations (LROE): what changes, below, in “In Bizkaia: BATUZ's LROE”.

Note

The Spanish regulation on invoicing systems (RD 1007/2023), where comes from, doesn't apply to those subject to the Basque foral rules for income tax or corporate tax, as the AEAT points out in its FAQ. That's why, with TicketBAI, Nubigest sends nothing to the and doesn't ask you to authorize it.

How it's activated

After Territory and regime, the wizard has five more steps (six in Bizkaia). Instead of Representation, there's Device.

  1. Tax details

    Fill in Company details, click Save and then Confirm the details: with TicketBAI the AEAT register isn't checked. The Registration in the foral census notice reminds you that your must be registered in the census of your Provincial Council (in Álava, also in the IAE). If you already issued TicketBAI invoices with other software, answer Yes, I’ve issued TicketBAI invoices with other software in Previous TicketBAI software and upload the signed XML of its last invoice: Nubigest's first one will chain to it. If you invoiced with this tax ID in another Nubigest organization, do the same with the last invoice you issued there (it's in that organization's Whole history): one organization doesn't continue another one's chain. Without that file the chain starts again, and Hacienda only accepts that when getting the file is impossible.

  2. Record book (only in Bizkaia)

    The Record book model, 140 or 240, which Nubigest works out from your tax ID and only asks about if it starts with E or J. With model 140, also Name and surnames if you're an individual, the IAE heading of your activity and I apply the collections and payments criterion, if you allocate income when you collect it.

  3. Device

    Copy the Serial number of Nubigest's certificate and follow your territory's guide. In Álava, link it to your tax ID in the device certificate register on araba.eus before issuing and click I’ve linked it. In Gipuzkoa, click I’ll accept the device in the e-office after the first invoice: you'll have one month from when the Provincial Council receives your first file to authorize it in its e-office. In Bizkaia, register it before issuing in procedure 1740 of the Provincial Council's e-office and click I have registered it: Nubigest checks your identification with a query to the LROE, and your first invoice confirms the device's registration.

  4. Series

    Review the of each invoice type. TicketBAI splits each number into the series, what comes before the {####} counter, and the number, the counter: the format must end with the counter, the series can't be empty or longer than 20 characters, can't have a space at its start or end, can't contain # % & + ? ¿ or quotes, can't start with DFA_ and can't be the one of your previous software. The suggested formats already follow these rules.

  5. Taxes

    Review how each tax rate is classified: the tax, the regime key and whether the operation is subject, exempt or not subject. That classification goes in the file of each invoice.

  6. Activation

    Read the Invoicing terms, tick I have read and accept the invoicing terms and click Activate invoicing. There's no responsible declaration, and the test invoice of €1 plus VAT isn't offered with TicketBAI yet.

Each screen, with its fields, messages and errors, in The tax setup wizard.

Warning

In Gipuzkoa, authorize the device and never reject it: rejecting it deletes every TicketBAI file sent with it on your behalf. Authorizing it, on the other hand, ratifies everything sent. Once you have authorized it, click I’ve authorized it in Settings › Invoicing.

With the same tax ID, only one Nubigest organization can invoice with TicketBAI at a time: if another one already does, issuing shows Another organization already invoices with TicketBAI under this tax ID. Close its invoicing before issuing here. If that organization isn't yours, write to support.

What the invoice carries

  • The TicketBAI code, 39 characters long: TBAI, your tax ID, the issue date (day, month and two-digit year), the first 13 characters of the signature and a check code.
  • The QR code, below the code. It leads to the website of your territory's provincial tax authority, where anyone can check whether it received the invoice.

They go at the very bottom of the sheet, with no title or legend; in the PDF, at the foot of the last page. There's no Check QR in the fiscal area: the check is the one on Hacienda's website. The mentions of exemptions and the reasons of corrective invoices cite your territory's VAT rules, such as Álava Foral Regulatory Decree 12/1993 or Gipuzkoa Foral Regulatory Decree 3/2023.

What happens with each invoice

  1. It's signed when issued

    When you issue, Nubigest generates the invoice's file, which chains to the previous one, and signs it with the device certificate. If the file fails Hacienda's validations, including those that depend on the previous invoice (such as the last one from your previous software), you see The invoice fails the tax authority's validations. Check the highlighted data. with the list of what fails. If it can't sign, nothing is saved and the number isn't used up, and the message says what to do (in the table below).

  2. It's sent to Hacienda

    The file leaves right away for your Provincial Council, which answers whether it received it. Meanwhile, the invoice is Sending to Hacienda. If Hacienda doesn't answer, sending retries by itself.

  3. Hacienda answers

    The invoice becomes Received by Hacienda, Received with errors by Hacienda if it arrives with warnings, or Rejected by Hacienda. If Hacienda already had what it's sent, it counts as received: the cancellation of an invoice that was already cancelled (code 019) or the correction of a cancellation it already had registered (022). An error that retrying doesn't solve leaves Sending to Hacienda stopped until it's reviewed in Action required.

  4. Hacienda consolidates it

    Then Hacienda processes what it received: Gipuzkoa within a few minutes, and Álava doesn't show it in its query until the next day at the earliest. Every night, Nubigest asks Hacienda what it holds for your tax ID (its KONTSULTA service). In the record, Consolidation says Pending consolidation or Consolidated on with the date it was first checked. If consolidation finds errors, the invoice becomes Received with errors by Hacienda or Rejected by Hacienda. While it's recent (from the current or the previous month), each query gives it the status it has at Hacienda at that time: if Hacienda stops pointing out errors, for instance after you correct them in its e-office, it goes back to Received by Hacienda. In Bizkaia there's no consolidation: the LROE's answer is final, and every night Nubigest checks that what the LROE holds matches your records.

If signing isn't possible, when issuing or cancelling, the message says what to do:

MessageWhat you do
TicketBAI signing failed and nothing was saved. Try again in a few minutes.It's a temporary failure: try again in a few minutes
The TicketBAI certificate still has to be linked to your tax ID and territory.The device isn't linked, or the linked certificate expired or Nubigest no longer has it. Link the current one in Settings › Invoicing, as when Nubigest renews it (below); when issuing, Go fix it takes you there
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: retrying won't fix it
TicketBAI signing failed because Nubigest's signing service is switched off or misconfigured, and nothing was saved. We have already alerted support: try again later.It's Nubigest's failure and support already knows: you don't have to write to them. Try again later, not in a few minutes
Your open invoicing belongs to another tax authority environment or system than the one Nubigest uses now: close invoicing in Settings › Invoicing (“Close invoicing…”) and activate it again. What you issued is kept.Nubigest now uses another Hacienda environment (the test one or the real one), or another system, than your open invoicing's. Close it and activate it again; it also appears when cancelling or correcting, and when issuing, Go fix it takes you to Settings › Invoicing

Each record is in Fiscal › Register and, on the invoice, in its Hacienda tab: the signed file, each submission with Hacienda's answer and the consolidation. If what Hacienda holds doesn't match Nubigest's records, the installation freezes and restores itself, as explained in The fiscal area. With TicketBAI, what the closed installation hadn't sent yet isn't registered again: it goes out with its same files and, until it arrives, it shows up in Action required like any other submission.

How an invoice is corrected

An issued invoice can't be edited or deleted. Until Hacienda has received it, it can't be cancelled or rectified: the rejection is solved first. The invoice's notice offers what applies:

What you see on the invoiceWhat you do
Rejected by Hacienda with Resend…Only on an invoice Hacienda rejected because of the sending certificate (codes 001 and 007) before Nubigest retried or stopped those submissions on its own. The file is correct: solve the cause and click Resend…; the same file is sent again, with the same number. If you closed invoicing, it's resent once you activate it again with the same Provincial Council
Rejected by Hacienda with Fix the recipient…Correct the recipient and their address and click Send the fix: it's resent with the same number
Rejected by Hacienda, with the notice that Hacienda already had the registrationThe fix arrived when Hacienda already had the registration (code 020) and it didn't apply it, but the invoice is registered: its details are corrected in the provincial tax authority's e-office and, if it shouldn't have been issued, it's cancelled with Cancel… or rectified with Correct…
The cancellation, rejected, with Correct and resend the cancellation…Click Correct and resend: the cancellation is sent corrected, with the registration's details, and the invoice stays cancelled
The cancellation, rejected because Hacienda doesn't have the registration (code 018), with Fix the recipient…Fix the registration first, as with a rejection. Once Hacienda receives it, the invoice stays cancelled in Nubigest but in force at Hacienda: it shows up in Action required, with Open invoice, and its notice offers Correct and resend the cancellation…
Received with errors by Hacienda, with a detail to changeThe notice says The record’s details are corrected in the online office of the Álava provincial tax authority, not from here. (or Gipuzkoa's)
Received with errors by Hacienda, with nothing to change in itThe invoice is not corrected. Depending on the code, the notice tells you what to do: review the detail Hacienda points out or contact it; if it's about the certificate Nubigest signs with, nothing, because Nubigest renews it
Received with errors by Hacienda, because of the device or the censusThe invoice is not corrected. Action required shows The Gipuzkoa provincial tax authority does not recognize Nubigest's device (or Álava's) or … cannot find your tax ID in its census, with what to do; the warning disappears from the next files as soon as you solve it
Received by Hacienda, with wrong amounts, taxes or customer detailsCorrect…: a or, if it shouldn't have been issued, the
  • Fix the recipient… only changes the recipient: the number, the date and the amounts are already in the printed TicketBAI code and QR. If you change it, the invoice and its PDF show it as the file carries it: the tax ID in capitals and without spaces, dots or hyphens and, if it's Spanish, with Spain as the country.
  • If the invoice has a customer and you can edit customers, Also update the customer record, already ticked, also saves the corrected identification and address in their record, so the mistake isn't repeated.
  • In Bizkaia there's no Fix the recipient… or Correct and resend the cancellation…: a signed file isn't modified. What to do if the Provincial Council of Bizkaia rejects an invoice, in Invoicing during a TicketBAI incident.
  • Resend…, Fix the recipient… and Correct and resend the cancellation… need the permission to rectify invoices and a recent sign-in; otherwise, the dialog asks Confirm it’s you.

When to rectify and when to cancel, in I made a mistake on an invoice: what do I do?.

The software information

If Hacienda checks your invoicing in person, the TicketBAI software must show on a single screen who develops it, what it's called and which version you use (each territory's specifications order, art. 8). On the invoice pages, click the label with your company's name and then Software information: Developer, Developer’s tax ID, Software, Version and Device serial number. In Gipuzkoa it adds the developer's Responsible declaration (art. 8.d, added by Foral Order 64/2026). Anyone who can see invoices sees it, and it's also in Fiscal › Responsible declaration.

When Nubigest renews its certificate

The device certificate expires, and Nubigest renews it beforehand. Since the Provincial Council relates each certificate to your tax ID, the new one has to be linked:

  • Those who manage invoicing receive an email, Renew the device link, with the new serial number and Link the new certificate.
  • The wizard's Device step opens again with There is a new certificate and the deadline, which is the expiry of the linked certificate. Until then invoices are still signed with it. Settings › Invoicing shows the same notice. If it has already expired, the notice gives no date: link the new one as soon as you can, because without it no invoice is signed.
  • If the linked certificate expires and Nubigest doesn't have another valid one yet, Settings › Invoicing warns Invoices can't be signed: until Nubigest renews it no TicketBAI invoice can be signed, and once it does, it lets you know so you can link the new one.
  • Link the new one like the first: in Álava, on araba.eus before clicking I’ve linked it; in Gipuzkoa, click I’ll accept the device in the e-office after the first invoice and authorize it in the e-office within a month of its first file; in Bizkaia, register it in procedure 1740 and click I have registered it: Nubigest checks your identification against the LROE, and the first invoice signed with it confirms the registration.

If an invoice doesn't reach Hacienda

Hacienda must receive each invoice when it's issued, and Álava warns (016-283) when it receives a file more than 24 hours after the invoice. In Bizkaia the deadline for recording is a different one (below), but Nubigest also sends when you issue. That's why:

  • Action required shows Records pending for over 1 hour.
  • If a record has gone more than 12 hours without reaching Hacienda, those who manage invoicing receive an email, Invoices not yet at Hacienda, with See what requires action. There you'll see whether some data is missing, sending is blocked or Hacienda is not answering.

In Álava and Gipuzkoa, three of Hacienda's answers don't leave the invoice Rejected by Hacienda:

Hacienda answersWhat happensWhat you do
That it doesn't accept the certificate Nubigest sends with (code 001)The invoice stays Sending to Hacienda and sending retries by itself, with a wait. The certificate is Nubigest's: the same happens to every organizationNothing: Nubigest solves it
In Gipuzkoa, that this certificate isn't valid for your tax ID (code 007): the device isn't authorizedSending stops: the invoice stays in Sending to Hacienda stopped and nothing else goes out until it's resumedAuthorize the device in the Provincial Council's e-office (and click I’ve authorized it in Settings › Invoicing, if it shows) and then Retry in Action required: everything is resent, in order
On an invoice's first submission, that it already has another one with your tax ID and the same series, number and date (code 005)Sending stops: the invoice stays in Sending to Hacienda stoppedWrite to support: retrying would give the same error

In Bizkaia, any rejection by the Provincial Council stops sending: it's explained in Invoicing during a TicketBAI incident.

Retry needs the permission to manage the fiscal area and resumes every stopped submission of the organization, each in order, also those of a closed installation that still sends: what a restoration left unsent or an invoice you resent.

If signing isn't possible, the incident procedure of article 17 of each regulation applies; what can't be sent, Nubigest keeps and sends as soon as it can. It's explained in Invoicing during a TicketBAI incident.

In Bizkaia: BATUZ's LROE

In Bizkaia, TicketBAI is part of BATUZ, which adds the record book of economic operations (LROE): that's where your activity's income and expenses are recorded. Nubigest records each invoice you issue, and its cancellation, in subchapter 1.1 of the LROE, the one for income with guarantor software. You, or your accountant, record the expenses and the rest of the book in BATUZ's e-office.

ModelWhoWhat each entry carries
140Individuals with an economic activity and entities under income attribution (income tax)The invoice file and the income data: the IAE heading and the receipts and payments criterion
240Companies (corporate tax) and non-residents with a permanent establishmentThe invoice file

Nubigest works out the model from your tax ID and only asks about it for a joint ownership or a civil partnership, in the wizard's Record book step (The tax setup wizard).

  • The deadline. The rules allow until the 25th of the month after each quarter (31 January for the fourth) and before filing the VAT return. Nubigest doesn't wait: it records each invoice when you issue it, so that a rejection arrives in time to correct it. Those who record within 4 days (large companies, VAT groups and REDEME) are left out: Nubigest doesn't cover them yet.
  • The answer is final. The LROE answers when recording whether the invoice is Received by Hacienda, Received with errors by Hacienda or rejected, with no later consolidation.
  • Several activities. There's one IAE heading per organization: choose the one of your main activity. If an invoice belongs to another activity, correct the heading of its entry in the LROE application of BATUZ's e-office (FAQ 273). Changing the heading in the Record book (LROE) card of Settings › Invoicing applies to the invoices you issue afterwards.
  • Key 52 doesn't mix. With model 140, an invoice with lines under the simplified scheme (regime key 52) and under the general scheme isn't issued: make one invoice per activity.
  • Disbursements aren't income. A is part of the invoice total, but not of the VAT taxable base or the IRPF income (FAQ 31): on an invoice of €100 at 21 % plus a €50 disbursement, €171 in all, the income is €100. With model 140, the disbursement is also recorded in the LROE's chapter of fund provisions and disbursements, which you, or your accountant, keep in BATUZ's e-office. Model 240 has no such chapter.
  • No correction of the file. Gipuzkoa and Álava let you fix or correct what was sent; in Bizkaia, a signed file isn't modified (FAQ 273). A received invoice is corrected with a corrective invoice or cancelled, as in the other territories, and one received with errors, in BATUZ's e-office. The income data of model 140, on the other hand, can be corrected in Nubigest when the Provincial Council rejects it: it's explained in Invoicing during a TicketBAI incident.

The terms you accept

When you activate, you accept TicketBAI's Invoicing terms. In short:

  • The contents of your invoices are yours (customers, amounts and taxes); making the software comply with your territory's TicketBAI rules is Nubigest's job.
  • Nubigest signs and sends each invoice on your behalf to your territory's provincial tax authority, automatically and immediately.
  • The device has to stay linked to your tax ID: if you reject the link, Gipuzkoa deletes the invoices sent with it.
  • Your tax ID must be in the census of your territory's provincial tax authority.
  • Each invoice carries its TicketBAI code and QR, and Nubigest keeps the signed files exactly as they were sent.
  • An issued invoice can't be edited or deleted: it's rectified or cancelled, and its number is never reused.
  • If signing isn't possible, article 17 applies: notify Hacienda, invoice in an incident series with its legend and enter those invoices afterwards. What can't be sent, Nubigest keeps and sends as soon as it can.
  • Keeping your invoices is your obligation (art. 18 of each regulation). You can always download and export them with their files, also if you leave Nubigest.

When you close invoicing

If you stop invoicing with Nubigest, or switch tax authority (also from one foral territory to another), close invoicing in Settings › Invoicing with Close invoicing…. With TicketBAI, closing and Change of holder… revoke the device link: Nubigest stops signing and sending in your name. In Gipuzkoa, if you haven't confirmed that you authorized the device, both dialogs remind you to authorize it even after closing or changing holder, without rejecting it and within a month of the Provincial Council receiving your first invoice.

Afterwards, instead of the device card you see Hand-over of your TicketBAI files. It's the one of the invoicing you closed, not of your settings now: its Provincial Council, even if you've already answered another tax authority in the wizard, and its Tax ID, which after a change of holder is the previous holder's.

  1. Download your whole history

    Go to Exports leads to Whole history: your history in tranches of up to 500 invoices, one ZIP per tranche with the PDFs, every file as it was sent (rejected ones too) and Hacienda's answers. Keep them for as long as you must conserve them.

  2. In Gipuzkoa, authorize the device first

    Only if you didn't confirm that you authorized it in the e-office: the card first shows Authorize it before deregistering it. Authorize the device by that serial number, without rejecting it, within a month of the Provincial Council receiving your first invoice: authorizing it ratifies everything sent with it. Then ask for its deregistration.

  3. Deregister the device

    The card gives the Certificate serial number, the Tax ID and its territory's guide. In Gipuzkoa, find the device in the e-office's device lookup (Consulta de Dispositivos) and ask for its deregistration with a written request on Zergabidea: it revokes the authorization from that day and what was sent stays registered. Ask for deregistration, not rejection. Álava doesn't publish how to unlink it: remove the link in its register on araba.eus and, if it doesn't let you, ask the Álava tax office (Hacienda Foral de Álava). In Bizkaia, deregister the device certificate for your tax ID in procedure 1740 of the Provincial Council's e-office (Open procedure 1740 in Bizkaia’s e-office): what was recorded so far stays in your record book.

The card shows until you activate invoicing again. If before that you link the device again with the same tax ID and the same Provincial Council, the device card comes back instead: deregistering the device would undo the new link. If you close without having issued any invoice, it doesn't appear, because there are no files to hand over; in Álava, the link you made on araba.eus stays there until you remove it. What each card looks like, in Invoicing settings.

What Hacienda hadn't consolidated yet is still checked every night for the 30 days after closing: if consolidation finds errors, the invoice changes status as it did before closing. Before closing, resolve the invoices rejected or received with errors: afterwards, a rejected one can only be resent or fixed by activating invoicing again with the same Provincial Council, and while any is left to correct the wizard won't let you change tax authority.