Attestwire › Rule reference › PEPPOL-COMMON-R055

PEPPOL-COMMON-R055 A Dutch OIN under scheme 0190 should be exactly twenty digits

noun · Peppol BIS · warning · BT-49

For a sample invoice, the library reports: The Buyer electronic address (BT-49) is "1234567890" under scheme "0190", which identifies the Dutch government organisation identification number (OIN). A value in that scheme must be exactly twenty digits, and this one is not.

Business term
BT-49
Severity
warning

The fix

Correct buyer.electronicAddress, or change its scheme identifier if the value belongs to a different register. A failing check digit or length almost always means a digit was transposed, dropped or added in transcription — compare it against the source register rather than re-typing it.

A passing value

the shape this field expects
"electronicAddress": { "schemeId": "0190", "value": "00000001234567890000" }

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:

TeachingError
{
  "rule": "PEPPOL-COMMON-R055",
  "field": "BT-49",
  "severity": "warning",
  "message": "The Buyer electronic address (BT-49) is \"1234567890\" under scheme \"0190\", which identifies the Dutch government organisation identification number (OIN). A value in that scheme must be exactly twenty digits, and this one is not. The OIN (Organisatie-identificatienummer) is the twenty-digit number the Dutch government issues to public organisations, and it is how many Dutch public bodies are addressed on Peppol. Leading zeros are part of it: stored as a number rather than as text, an OIN loses them and fails this check. 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. Peppol added this rule in BIS 3.0.21 as a warning, to give senders time to correct their data, and has said the Dutch identifier rules become fatal in a later release. 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 buyer.electronicAddress, or change its scheme identifier if the value belongs to a different register. A failing check digit or length almost always means a digit was transposed, dropped or added in transcription — compare it against the source register rather than re-typing it.",
  "example": "\"electronicAddress\": { \"schemeId\": \"0190\", \"value\": \"00000001234567890000\" }",
  "xpath": "/ubl:Invoice/cac:AccountingCustomerParty/cac:Party/cbc:EndpointID",
  "docsUrl": "https://attestwire.com/rules/PEPPOL-COMMON-R055"
}

xpath is always a UBL path. On a CII invoice, look for the matching CII field instead.