Attestwire › Rule reference › PEPPOL-COMMON-R044
PEPPOL-COMMON-R044 An Italian IPA code should be exactly six letters or digits
noun · Peppol BIS · warning · BT-34
For a sample invoice, the library reports: The Seller electronic address (BT-34) is "TOOLONG" under scheme "0201", which identifies the Italian IPA code (Codice Univoco Unità Organizzativa). A value in that scheme must be exactly six letters or digits, and this one is not.
- Business term
BT-34- Severity
warning
The fix
Correct seller.electronicAddress, or change its scheme identifier if the value belongs to a different register. A check digit failing almost always means one digit was transposed or dropped in transcription — compare it against the source register rather than re-typing it.
A passing value
"electronicAddress": { "schemeId": "0201", "value": "UF9DHV" }What the library returns
The full error returned by @attestwire/en16931. It includes the rule ID,
affected field and suggested correction. Developers can use this object in their application:
{
"rule": "PEPPOL-COMMON-R044",
"field": "BT-34",
"severity": "warning",
"message": "The Seller electronic address (BT-34) is \"TOOLONG\" under scheme \"0201\", which identifies the Italian IPA code (Codice Univoco Unità Organizzativa). A value in that scheme must be exactly six letters or digits, and this one is not. The IPA code addresses a specific organisational unit inside an Italian public body, and it is fixed-width. A value of any other length is usually the body's fiscal code pasted into the wrong field. Peppol flags this one as a warning rather than a rejection, so the document will be delivered — but a wrong identifier is delivered to the wrong place, or to nowhere. This is a Peppol BIS Billing 3.0 profile rule: it applies because profile is \"peppol-bis-3\". It does not apply to the en16931, xrechnung-ubl or xrechnung-cii profiles, whose validators will accept the same document.",
"fix": "Correct seller.electronicAddress, or change its scheme identifier if the value belongs to a different register. A check digit failing almost always means one digit was transposed or dropped in transcription — compare it against the source register rather than re-typing it.",
"example": "\"electronicAddress\": { \"schemeId\": \"0201\", \"value\": \"UF9DHV\" }",
"xpath": "/ubl:Invoice/cac:AccountingSupplierParty/cac:Party/cbc:EndpointID",
"docsUrl": "https://attestwire.com/rules/PEPPOL-COMMON-R044"
}
xpath is always a UBL path. On a CII invoice, look for the
matching CII field instead.