Hi Everyone. I am getting `Error while accessing a...
# integrations
z
Hi Everyone. I am getting
Error while accessing a resource. Please enter value(s) for: Tax Schedule.
whenever I am trying to create a NonInventorySaleItem via REST API. Did anyone face that issue? Thank you
j
Pretty sure you need to indicate for any item type if it is taxable or not. In the UI it is on the item record under accounting subtab
z
That is clear to me, but how do I reference it in the API
GET is not returning it
and I am not able to identify it's place in the POST request
j
Am I correct in assuming you are creating a new non-inventory item?
z
yes, that's correct
Copy code
{
  "displayName": "TESTTAMAS",
  "itemId": "TESTTAMAS",
  "taxSchedule": {
    "id": 1
  }
}
Copy code
POST:{{REST_SERVICES}}/record/v1/nonInventorySaleItem
Copy code
{
  "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 Schedule.",
      "o:errorCode": "USER_ERROR"
    }
  ]
}
j
Yeah I don't really know... have you tried Non-Taxable instead of "id" :1 I cannot seem to find internal id for these tax schedules & it is not a boolean https://system.netsuite.com/help/helpcenter/en_US/srbrowser/Browser2021_2/script/record/noninventoryitem.html
z
Yes I did, still the same error message