Provide the third-party payment type

Error BR-DEX-10 XRechnung

The element "Third party payment type" BT-DEX-001 shall be transmitted if the group "THIRD PARTY PAYMENT" (BG-DEX-09) is transmitted.

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

A submitted cac:PrepaidPayment is missing cbc:ID, or the element contains only whitespace. The third-party payment type is therefore missing.

What the rule means

The third-party payment type is required when group BG-DEX-09 is submitted. It identifies the type of payment described by that group.

Please provide the third-party payment type

The payment type is missing from cbc:ID for a submitted third-party payment. Add a non-empty value there.

What to do
  1. Add a value to cbc:ID in cac:PrepaidPayment.
  2. Make sure the value is not empty or made up only of whitespace.
  3. Regenerate the invoice and check it again.
What it looks like
✗ Triggers the message
<cac:PrepaidPayment/>
✓ Correct
<cac:PrepaidPayment>
  <cbc:ID>Type de paiement</cbc:ID>
</cac:PrepaidPayment>
Technical details

The test checks whether cbc:ID contains a non-empty value after leading and trailing whitespace is removed.

Where the rule applies

The rule applies to cbc:ID within cac:PrepaidPayment at invoice level.

Original message from the Schematron
Das Element "Third party payment type" BT-DEX-001 muss übermittelt werden, wenn die Gruppe "THIRD PARTY PAYMENT" (BG-DEX-09) übermittelt wird.
Context (rule/@context)
/ubl:Invoice/cac:PrepaidPayment[$isExtension]
Test expression (assert/@test)
cbc:ID[boolean(normalize-space(xs:string(.)))]