Allowed payment code

Error FX-SCH-A-000609 Factur-X

Value of 'ram:TypeCode' is not allowed.

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

The non-empty value of ram:TypeCode is not included in the code list applicable to this payment type.

What the rule means

ram:TypeCode identifies the payment type. A code that is not allowed cannot be recognized as a valid value from this code list.

Please use an allowed code for the payment type

The value of ram:TypeCode is not allowed in the applicable code list. You can correct it using that code list.

What to do
  1. Find ram:TypeCode in ram:SpecifiedTradeSettlementPaymentMeans.
  2. Check the value against the code list applicable to this rule and use a code included in that list.
  3. Generate the invoice again and validate it.
Technical details

The test permits an empty resolved code value; otherwise, the value of ram:TypeCode must occur in code list 25.

Where the rule applies

The rule applies to ram:TypeCode within ram:SpecifiedTradeSettlementPaymentMeans in the payment details.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ ram:SpecifiedTradeSettlementPaymentMeans/ram:TypeCode
Test expression (assert/@test)
string-length($codeValue25)=0 or document('FACTUR-X_EN16931_codedb.xml')/codedb/cl[@id=25]/enumeration[@value=$codeValue25]