Export the registro chain of one NIF (ES, art. 14)

Hands out every registro of the chain belonging to `vatId` as ONE json document, as required by art. 14 RD 1007/2023: the obligado tributario must be able to produce the records for an inspection. Each entry carries the frozen `registro` next to its `huella`, so the hash can be recomputed by the recipient — the registro is passed through unchanged, never reshaped. Scoped to the organisation behind the API key: a chain owned by someone else is not visible and comes back as an empty export. Optional `from`/`to` (ISO-8601) narrow the range by entry timestamp; above 5000 entries a range is mandatory and the error says so.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

vatIdstringRequired

Query parameters

fromdatetimeOptional

Only entries appended at or after this ISO-8601 instant. Mandatory together with or instead of to once the chain exceeds the export limit.

todatetimeOptional

Only entries appended at or before this ISO-8601 instant.

Response

The chain, ordered by sequence number
vatIdstring

NIF whose chain this is — the chain key.

exportedAtstring

ISO-8601 timestamp of THIS export, not of the last entry.

fromstring or null
Lower bound of the exported range, or null.
tostring or null
Upper bound of the exported range, or null.
entryCountinteger

Number of entries in entries.

entrieslist of objects

Errors

400
Export Chain Verifactu Request Bad Request Error
401
Export Chain Verifactu Request Unauthorized Error