# SDI-00313

Source: https://xmlvalid.com/rules/SDI-00313

> L'elemento 1.1.4 <CodiceDestinatario> può essere valorizzato con "XXXXXXX" per comunicare i dati di fatture emesse esclusivamente verso soggetti non residenti (1.4.1.1 <IdFiscaleIVA> deve essere valorizzato e 1.4.1.1.1 <IdPaese> deve essere diverso da "IT")

- Level: error
- Rule sets: SdI checks (FatturaPA ordinary invoice) Specifiche tecniche 1.9.1
- Context: `/p:FatturaElettronica`
- Test: `$recipient != 'XXXXXXX' or ($buyer/IdFiscaleIVA and $buyer/IdFiscaleIVA/IdPaese != 'IT')`

In English: CodiceDestinatario (1.1.4) "XXXXXXX" is only for invoices to buyers not resident in Italy: the buyer's IdFiscaleIVA (1.4.1.1) must be given, with an IdPaese other than IT.

Validate a document against these rules: https://xmlvalid.com/validate
