Key in OptionalFields must be unique - duplicate key [1]

Error Description

All key fields (key) in Optional Field must contain unique values between 1 and 10. The key specified in the error message appears more than once on either the line item (itm) or the invoice (inv).

Note

The line item (itm) Optional Fields (opt) override duplicate keys (key) on the invoice (inv).

Example

{
  "err": [
      {
        "code": -2000,
        "msg": "Key in OptionalFields must be unique - duplicate key [1]."
      }
  ]
}

How to Resolve

Ensure that all key fields (key) in the Optional Fields (opt) are unique on the Invoice or the Line Items. The same Optional Field key can be used in multiple Line Items.

For more information, see Optional Fields.