Mandate reference MUST be provided for direct debit.
For a payment method indicated by ram:TypeCode value 49 or 59, the mandate reference ram:DirectDebitMandateID is missing from ram:SpecifiedTradePaymentTerms.
The mandate reference links the direct debit to its associated mandate.
The invoice contains a payment method with value 49 or 59, but no mandate reference. You can resolve this by adding the reference to the payment terms.
- Find the affected
ram:SpecifiedTradeSettlementPaymentMeanswithram:TypeCode49or59. - Add
ram:DirectDebitMandateIDtoram:SpecifiedTradePaymentTerms. - Generate the invoice again and validate it.
Technical details
Relative to the payment means element, the test checks whether ../ram:SpecifiedTradePaymentTerms/ram:DirectDebitMandateID is present in the enclosing settlement structure. It applies when the normalized ram:TypeCode is 49 or 59.
The rule applies to ram:SpecifiedTradeSettlementPaymentMeans when ram:TypeCode, after surrounding spaces are removed, is 49 or 59.
rule/@context)assert/@test)