Skip to content

verifactu-sdk API


verifactu-sdk API / BuildQrUrlInput

Interface: BuildQrUrlInput

Defined in: src/qr/buildUrl.ts:56

Input bag accepted by buildQrUrl.

Every value is validated syntactically before the URL is assembled; see the function-level @throws for the exact preconditions.

Properties

nif

nif: string

Defined in: src/qr/buildUrl.ts:58

9-character Spanish NIF of the invoice issuer.


numSerieFactura

numSerieFactura: string

Defined in: src/qr/buildUrl.ts:60

Series + invoice number (1–60 chars, ASCII 32–126). May contain /, spaces, etc.


fechaExpedicionFactura

fechaExpedicionFactura: string

Defined in: src/qr/buildUrl.ts:62

Issue date in ISO YYYY-MM-DD form; converted to DD-MM-YYYY for the URL.


importeTotal

importeTotal: string | number

Defined in: src/qr/buildUrl.ts:64

Total invoice amount, as either a string ("241.4", "241.40") or number.


mode

mode: QrMode

Defined in: src/qr/buildUrl.ts:66

Whether the issuing system emits verifiable or non-verifiable invoices.


environment

environment: QrEnvironment

Defined in: src/qr/buildUrl.ts:68

Target AEAT environment (preproduction / production).


language?

optional language?: QrLanguage

Defined in: src/qr/buildUrl.ts:70

Optional AEAT response-language code (v0.5.0 extension).

Released under the MIT license.