finaX Logo
API Reference
Getting Started

Validation Mode

Adapt validation mode for generating invoice XML.

From version 1.4.17 it will be possible to relax the validation rules for generating invoice XML. Certain invalidated rules will be tolerated by setting the validation_mode to lax.

The current example involves the packaging units (BT-130 and BT-150) of invoice lines. They should comply to the given enums, however it is currently tolerated if they don't. The invoice payload of /v1/xml/ubl and /v1/xml/cii now has a flag called validation_mode which can be set to strict or lax. Setting it to lax it allows to pass any string value to BT-130 and BT-150.

The default value of the validation mode is lax.
{
  ...
  "validation_mode": "strict",
  "invoice_line": [
    {
      "invoiced_quantity_unit_of_measure_code": "H87", // enum is mandatory
      ...
      "price_details": {
        ...
        "item_price_base_quantity_unit_of_measure_code": "H87",  // enum is mandatory
      },
      ...
    }
  ]
}

The individual tolerations might change in the future, based on the changes of the recommendations of KoSIT.