# Sign your Veri*Factu records (Spain)

> For a business in Spain, Shoprocket keeps a Veri*Factu billing record and tax QR code for every invoice. Upload your qualified electronic certificate in Settings > Invoices so each record is signed, as Spanish law requires from 1 January 2027.

Help Centre / Taxes - Updated 2 November 2026

Spain's anti-fraud law asks invoicing software to keep a tamper-evident record of every invoice, called Veri\*Factu. When your business address is in Spain, Shoprocket does this for you: every invoice and credit note gets a **billing record**, chained to the one before it, and a tax QR code printed on the invoice.

From **1 January 2027**, a record only counts once it is signed with your **qualified electronic certificate**, the same one you use with the AEAT. You upload it once, for free, and every record from then on is signed as it is made.

## Before you begin

- Your **business address** in **Settings > General** must be in Spain. The **Veri\*Factu (Spain)** card only appears for Spanish stores.
- Add your **NIF** as your Spain tax registration in **Settings > Taxes** (see [Set up tax](https://shoprocket.io/help/set-up-tax.md)). Until you do, records have no NIF and invoices have no QR code, and a certificate can't be matched to you.
- Have your certificate as a **.p12** or **.pfx** file, with its password. This is the file you get when you export your certificate from your browser or download it from the FNMT. It must be issued to your business or to its representative.

## Upload your certificate

1. Go to **Settings > Invoices**. The **Veri\*Factu (Spain)** card shows your NIF, how many billing records and event log entries there are, and the newest record.
2. Under **Signing certificate**, click **Upload certificate**.
3. Choose your **Certificate file** and enter the **Certificate password**. The password is used once to open the file and is not kept.
4. Click **Save**.

![The Upload certificate panel with the certificate file chosen and its password entered](https://shoprocket.io/img/help/verifactu-certificate/upload.webp)

Shoprocket checks that the file opens, that it is a qualified signature certificate, that it is in force, and that its NIF is your store's. If all is well, the card shows who it was **Issued to**, who it was **Issued by**, the date it is **Valid until**, and how many records are signed.

The private key is stored encrypted, and is never shown or downloaded again.

## If the upload is refused

The message says why:

- **That password does not open this file**: check the password and try again.
- **This is not a qualified signature certificate**: use a qualified one, such as the FNMT certificate you use with the AEAT.
- **The NIF in this certificate is not your store's NIF**: use a certificate issued to your business or its representative, or check the NIF in **Settings > Taxes**.
- **This certificate has expired** or **is not valid yet**: renew it, or wait until its start date.
- **We can't read this file**: upload the .p12 or .pfx file that holds both your certificate and its private key, not a .cer file.

## Renew before it expires

Certificates last a few years. From 30 days before yours expires, the card shows the expiry date and asks you to renew it. Once you have the new one, click **Replace certificate** and upload it. If it does expire, new records are not signed until you upload a renewed one; records already signed keep their signature.

To stop signing, click **Remove**. Records already signed stay signed.

## Download your records

Click **Download records** on the card to get an XML file of every billing record and event, in case the AEAT asks for them. Shoprocket checks that the chain of records is intact before it makes the file, and the download itself is logged.

The records are kept in Shoprocket. They are not sent to the AEAT.

## Related

- [Tax invoices and credit notes](https://shoprocket.io/help/tax-invoices.md)
- [E-invoices for business customers](https://shoprocket.io/help/e-invoices.md)
- [EU VAT and the One-Stop Shop](https://shoprocket.io/help/eu-vat-and-oss.md)

[Open Invoice settings in your dashboard](https://app.shoprocket.io/go/settings/invoices)

---

- HTML version: https://shoprocket.io/help/verifactu-certificate
- Language: English (en)
- Also in: [العربية](https://shoprocket.io/ar/help/verifactu-certificate.md), [Deutsch](https://shoprocket.io/de/hilfe/veri-factu-datensaetze-signieren.md), [Ελληνικά](https://shoprocket.io/el/help/verifactu-certificate.md), [Español](https://shoprocket.io/es/ayuda/firma-tus-registros-verifactu.md), [Français](https://shoprocket.io/fr/aide/signer-vos-enregistrements-verifactu.md), [עברית](https://shoprocket.io/he/help/verifactu-certificate.md), [हिन्दी](https://shoprocket.io/hi/help/verifactu-certificate.md), [Bahasa Indonesia](https://shoprocket.io/id/bantuan/tanda-tangani-catatan-verifactu.md), [Italiano](https://shoprocket.io/it/aiuto/firmare-i-registri-verifactu.md), [日本語](https://shoprocket.io/ja/help/verifactu-certificate.md), [Lietuvių](https://shoprocket.io/lt/pagalba/pasirasykite-verifactu-irasus.md), [Norsk](https://shoprocket.io/nb/hjelp/signer-verifactu-postene-dine.md), [Nederlands](https://shoprocket.io/nl/hulp/veri-factu-records-ondertekenen.md), [Polski](https://shoprocket.io/pl/pomoc/podpisuj-rekordy-verifactu.md), [Português](https://shoprocket.io/pt/ajuda/assine-seus-registros-verifactu.md), [Română](https://shoprocket.io/ro/ajutor/semneaza-inregistrarile-verifactu.md), [Русский](https://shoprocket.io/ru/help/verifactu-certificate.md), [ไทย](https://shoprocket.io/th/help/verifactu-certificate.md), [Türkçe](https://shoprocket.io/tr/yardim/verifactu-sertifikasi.md), [中文](https://shoprocket.io/zh/help/verifactu-certificate.md)
