CannotCreateNestedObjects

Summary

Cannot include new object(s) of different type within the request object.

Example

{
  "code": "CannotCreateNestedObjects",
  "target": "Unknown",
  "details": [
    {
      "code": "CannotCreateNestedObjects",
      "number": 2402,
      "message": "-0- may not be created.",
      "description": "Please create -0- using a separate API call.",
      "faultCode": "Client",
      "helpLink": "http://developer.avalara.com/avatax/errors/CannotCreateNestedObjects",
      "severity": "Error"
    }
  ]
}

Explanation

A request to create a new entity cannot have a new object of a different type within the request. For example: a request to create a new item cannot include parameters in it as well.

Refer to the message description to see which nested object cannot be included in the request.