Hi all, we have been facing a recurring issue when...
# integrations
b
Hi all, we have been facing a recurring issue when creating vendor bills via REST API, where the error displays: "Error while accessing a resource. Please enter value(s) for: Tax Code." The only resource I could find online was that users will need to enable SuiteTax before being able to assign line-level tax codes via REST API. However, this will incur additional costs. Does this hold true to the general community here, and if so, are there any workarounds that you guys have tried?
e
In our forms Tax Code is not mandatory for Web Service context, we don't have SuiteTax enabled.
We use a customization to add the Tax Code after the web service creates the transaction
f
Maybe try the SOAP API and disable all server side processing. You're records will go in much faster as well. Another thing you could try is writing a restlet instead of using the standard REST api.
👀 1
e
@Fred Pope Interested in this option of "disable all server side processing" when using SOAP API... How you do it?
b
our team currently don't have the experience in writing a restlet yet, but will try out by switching to SOAP API for now. Thanks guys!
a
But there is REST API ready to use, so restlet does not make a lot of sense anymore... Ans SOAP, it's so old compared to REST
Sounds difficult to book a bill without a tax code, in which nexus is the transaction happening?
f
@Edgar Valdes there is a flag that you can set in the SOAP header :
Copy code
<soapenv:Envelope xmlns:soapenv="<http://schemas.xmlsoap.org/soap/envelope/>">
  <soapenv:Header>
    <ns1:disableServerSideProcessing xmlns:ns1="urn:messages_2017_4.platform.webservices.netsuite.com">true</ns1:disableServerSideProcessing>
  </soapenv:Header>
  <soapenv:Body>
    <YOUR_SOAP_REQUEST_HERE>
  </soapenv:Body>
</soapenv:Envelope>
e
Neat! Thank you @Fred Pope
✅ 1