Avalara Developer Network Developer communications

DocumentCode is invalid

Error Description

The Document Code field (doc) is missing or invalid in the Commit request.

Example

{
  "err": [
    {
      "code": -2000,
      "msg": "DocumentCode is invalid."
    }
  ]
}

How to Resolve

  • Ensure that Document Code (doc) is included in the Commit request
  • Validate that the length of the Document Code (doc) is 150 characters or less

For more information, see Commit Request.