Error while accessing a resource. Please enter value(s) for: Tax Item

507 Views Asked by At

API URL: https://<NETSUITE_ID>.suitetalk.api.netsuite.com/services/rest/record/v1/customer/eid:123

Method: PUT

Payload:

{
  "email": "[email protected]",
  "companyName": "Test EiO Trigger V2",
  "subsidiary": {
    "id": "29"
  },
  "taxItem": {
      "id": "808"
  }
}

I am getting the following response with error while trying to upsert a Customer record using the above NetSuite REST API :-

{
    "type": "https://www.rfc-editor.org/rfc/rfc9110.html#section-15.5.1",
    "title": "Bad Request",
    "status": 400,
    "o:errorDetails": [
        {
            "detail": "Error while accessing a resource. Please enter value(s) for: Tax Item.",
            "o:errorCode": "USER_ERROR"
        }
    ]
}

I have verified that the tax code internal id value exists. Not sure what's wrong here.

1

There are 1 best solutions below

1
On BEST ANSWER

Based on the following doc, REST Webservices is no longer supporting Legacy Tax features. https://suiteanswers.custhelp.com/app/answers/detail/a_id/99106/loc/en_us

Consider using Restlet instead of Rest API for this.