Customer's NS instance does not have SuiteTax installed (therefore using legacy tax). I'm attempted to create a vendorbill record using REST API, but I'm unable to set the tax code on the line item:
"expense": {
"items": [
{
"department": {
"id": "124"
},
"account": {
"id": "367"
},
"amount": 100.00,
"memo": "RS Test Invoice",
"taxCode": {
"id": "18"
}
}
]
}
But this results in 400 Bad Request: Error while accessing a resource. Please enter value(s) for: Tax Code.. Id is correct, it appears that I'm not able to set the tax code via REST API.
Would a valid workaround be to create the vendorbill record via REST API without tax details, then use a custom restlet to add the tax details? Would this work, and any advice on how to construct restlet (e.g. what methods to use)?