Payment reference only once

Error CII-SR-469 Syntax (UBL/CII)

- Payment reference (BT-83) shall occur at most once in the document.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

The invoice contains more than one ram:PaymentReference element. BT-83 may occur at most once in the document.

What the rule means

BT-83 is the payment reference for the invoice. A single reference ensures that the invoice payment can be identified unambiguously.

Affected fields BT-83
Please provide the invoice payment reference only once

Your invoice contains the payment reference more than once. The entry can be reduced to a single occurrence.

What to do
  1. Check the use of FacturXInvoice.PaymentReference.
  2. Ensure that the payment reference is output only once in the invoice.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:ApplicableHeaderTradeSettlement>
  <ram:PaymentReference>REF-1</ram:PaymentReference>
  <ram:PaymentReference>REF-2</ram:PaymentReference>
</ram:ApplicableHeaderTradeSettlement>
✓ Correct
<ram:ApplicableHeaderTradeSettlement>
  <ram:PaymentReference>REF-1</ram:PaymentReference>
</ram:ApplicableHeaderTradeSettlement>
Check in FactoorSharp
  • FacturXInvoice.PaymentReference (BT-83)
Technical details

The test counts ram:PaymentReference elements under ram:ApplicableHeaderTradeSettlement and allows no more than one.

Where the rule applies

Applies to ram:PaymentReference within the invoice settlement ram:ApplicableHeaderTradeSettlement.

Context (rule/@context)
/rsm:CrossIndustryInvoice
Test expression (assert/@test)
count(//ram:ApplicableHeaderTradeSettlement/ram:PaymentReference) <= 1