Allowed payment code

Error FX-SCH-A-001008 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 value of ram:TypeCode is neither empty nor included in the code list defined for the payment code. The rule explicitly allows an empty value.

What the rule means

ram:TypeCode identifies the payment method used. An allowed value makes it possible to classify this payment information unambiguously.

Please use an allowed code for the payment method

The code for the payment method is not recognized as an allowed value. You can leave the value empty or use an allowed code.

What to do
  1. Find ram:TypeCode in the payment details at document level.
  2. Check the value and leave it empty or use an allowed code.
  3. Generate the invoice again and validate it.
Technical details

The test accepts ram:TypeCode when its value is empty or appears in the enumeration of code list ID 43 in FACTUR-X_EXTENDED_codedb.xml.

Where the rule applies

The rule applies to the payment type’s ram:TypeCode in the payment details at document level.

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