# aligned-ibrp-017

Source: https://xmlvalid.com/rules/aligned-ibrp-017

> The last 4 to 6 digits of the Payment card primary account number (ibt-87) MUST be present if Payment card information (ibg-18) is provided in the Invoice.

- Level: error
- Rule sets: PINT JP rules (Japan) 1.1.3
- Context: `cac:PaymentMeans/cac:CardAccount`
- Test: `string-length(cbc:PrimaryAccountNumberID)>=4 and string-length(cbc:PrimaryAccountNumberID)<=6`

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