Number of OptionalField elements in LineItem cannot exceed 10

Error Description

Too many Optional Fields (opt) have been added to the CalcTaxes request.

Example

{
  "err": [
      {
        "code": -2000,
        "msg": "Number of OptionalField elements in LineItem cannot exceed 10."
      }
  ]
}

How to Resolve

The CalcTaxes request can have up to 10 Optional Fields (opt). The Optional Fields (opt) can be used in both the Invoice and the Line Item.

Ensure that only 10 Optional Fields (opt) key value pairs are being used across the Invoice and the Line Items. The same Optional Field key can be used in multiple Line Items.

For more information, see Optional Fields.