I cannot seem to be able to create Item using the ...
# suitetalkapi
b
I cannot seem to be able to create Item using the new REST service. I am getting the following error
Copy code
{
  "type": "<https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1>",
  "title": "Error while accessing resource: Please enter value(s) for: Tax Code",
  "status": 400,
  "o:errorCode": "USER_ERROR"
}
even though I am trying to set the tax code I can see on the record.
Copy code
{
  "itemid": "SalesItem {{$timestamp}}",
  "subtype": "SALE",
  "incomeaccount": 54,
  "expenseaccount": 116,
  "salestaxcode": "6",
  "purchasetaxcode": 6
}
I wonder if it is because we have a UK instance which uses VAT?
j
I wonder what happens if you set
salestaxcode
to be an integer instead of a string
b
I had already tried that, I changed to string to see if it would make any difference. it didn't