Jump to content

Accounting error. Parameters restricted for Accounting in the United States


 Share

Recommended Posts

  {
    '$severity': 'error',
    '$dataCode': 'InvalidRequest',
    '$message': 'The request contained parameters that are restricted for Accounting in United States [tax_analysis]',
    '$source': ''
  }

When trying to perform a PUT request to /sales_quotes/<ID>, I get the above response. I signed up in the United States, the Business Settings on the account list a U.S. State. Why am I getting a restriction error? How do I tell the API, I am in the United States?

If I remove the tax_analysis array from the body, it produces a 500 error.

 

Link to comment
Share on other sites

Hi James, thank you for your question.

tax_analysis values are system generated and should not be set in the request (POST or PUT). It looks as if the API reference documentation is incorrect and requires updating. What fields are you trying to add/edit on the sales_quote? I've included a basic PUT request which changes values on a single quote_line for a US business. 

 

{
"sales_quote":{
    "quote_lines": [
        {
            "id": "f923e6fec61c4a0dacc55df1ec973126",
            "product_id": null,
            "description": "This is the API modified item line description",
            "quantity": "11",
            "unit_price": "20.0",
            "net_amount": "220.0",
            "tax_rate_id": "cefe41f1c6c84dc5ae00cdd781f75577",
            "tax_amount": "17.05",
            "ledger_account_id": "e076a782867911eb9bde128cba86f39b"
        }
    ]
    }
}

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...