Avalara Developer Network Developer communications

DocumentCode is required in order to commit transactions

Error Description

The Document Code field (doc) is missing from your invoice (inv) when Commit (cmmt) is true.


  "err": [
      "code": -2000,
      "msg": "DocumentCode is required in order to commit transactions."

How to Resolve

When using the Commit functionality (cmmt set to true), add and populate Document Code (doc) on the invoice (inv) in your CalcTaxes request.

Otherwise, set Commit (cmmt) to false.

For more information, see Commit.