PintLint

Rules / IBR-009

IBR-009 error

The Seller postal address

The Seller postal address (ibg-05) must contain a Seller country code (ibt-040).

Fails

<cac:PostalAddress>
  <!-- cbc:IdentificationCode is missing -->
</cac:PostalAddress>

Fix

Add cbc:IdentificationCode inside cac:PostalAddress.

Schematron
Context
cac:AccountingSupplierParty/cac:Party/cac:PostalAddress
Test
normalize-space(cac:Country/cbc:IdentificationCode) != ''

Official text: The Seller postal address (ibg-05) MUST contain a Seller country code (ibt-040).

Official · PINT shared rules. Severity: error. Runs on UBL XML.

Check an invoice