TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/NemonInvocash/verifactu-php/llms.txt
Use this file to discover all available pages before exploring further.
Destinatario model identifies the party that receives an invoice. It supports both domestic recipients (identified by a Spanish NIF) and foreign recipients (identified by a country code, an ID type from lista L7, and a foreign identification number). A Destinatario instance is passed into RegistroAlta via its objects array; when the invoice has no identifiable recipient, pass Destinatario::empty() or omit the key entirely.
Construction
For Spanish recipients, populate
nif. For foreign recipients, leave nif empty and populate otroCodPais, otroIDType, and otroID instead. Both sets of fields can coexist in the array but only the relevant subset will be forwarded to the API by getArrayData().Fields
Recipient’s name or company name (nombre-razón social). Maps to API field
NombreRazon.Recipient’s Spanish tax identification number. Maps to API field
NIF. Use for domestic recipients registered with AEAT.ISO 3166-1 alpha-2 country code for foreign recipients (e.g.
"FR", "DE", "GB"). Maps to API field OtroCodPais.Foreign identification type, taken from lista L7. Both the integer ID and the string code are accepted. Maps to API field
OtroIDType. Required when otroID is populated.Foreign identification number (passport, VAT number, etc.) for the recipient in their country of residence. Maps to API field
OtroID.Getters and Setters
| Method | Description |
|---|---|
getNombreRazon(): string | Returns the recipient’s name or company name. |
setNombreRazon(string $v): void | Sets the recipient’s name or company name. |
getNif(): string | Returns the recipient’s Spanish NIF. |
setNif(string $v): void | Sets the recipient’s Spanish NIF. |
getOtroCodPais(): string | Returns the foreign country code. |
setOtroCodPais(string $v): void | Sets the foreign country code. |
getOtroIDType(): int|string | Returns the foreign ID type (lista L7). |
setOtroIDType(int|string $v): void | Sets the foreign ID type (lista L7). |
getOtroID(): string | Returns the foreign identification number. |
setOtroID(string $v): void | Sets the foreign identification number. |
getArrayData()
getArrayData(): array returns an associative array containing only the fields that have non-empty values, ready to be embedded inside the Destinatarios key of the RegistroAlta payload.
PHP property names differ from the API field names used in the payload:
| PHP property | API field key |
|---|---|
nombreRazon | NombreRazon |
nif | NIF |
otroCodPais | OtroCodPais |
otroIDType | OtroIDType |
otroID | OtroID |
RegistroAlta::getArrayData() wraps the result in a single-element array under the key Destinatarios, matching the API’s expected structure.empty()
Destinatario::empty(): Destinatario returns a Destinatario with all string fields set to '' and otroIDType set to 0. Use it as a safe no-op placeholder inside RegistroAlta when the invoice type does not require an identified recipient (e.g. simplified invoices under Art. 61d).

