netsuitenetsuite-rest-api

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


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

Method: PUT

Payload:

{
  "email": "ab.test+sb@xyz.com",
  "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.


Solution

  • 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.