There is no tax code field in the swagger definiti...
# ask-stanley-ai
j
There is no tax code field in the swagger definition for vendor bills in our netsuite instance but when I try to create a vendor bill using the rest API I get this error
Copy code
{
      detail: 'Error while accessing a resource. Please enter value(s) for: Tax Code.',
      'o:errorPath': 'item.items[0]',
      'o:errorCode': 'USER_ERROR'
    }
c
AI generated answer (using internal Slack threads):
Based on the conversations, it appears that the REST API does not support legacy tax features. This is why you're encountering an error when trying to set the tax code on a vendor bill record. The tax code field is not available in the REST API for vendor bills. As per the NetSuite documentation, to work with taxation through REST web services, you must have the SuiteTax feature enabled. If SuiteTax is not an option for you, you might need to consider a workaround. One suggested workaround is to create the vendor bill record via REST API without tax details, then use a custom restlet to add the tax details. However, this approach might not be ideal as it could be considered a fragile workaround. Another suggestion is to use SOAP instead of REST API, as SOAP supports vendor bills. If you're not comfortable with SOAP, you could continue to use a restlet and speak JSON. Please note that these are workarounds and might not be the best solution for your situation. It's recommended to consider the implications and potential issues before implementing them. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.883239865
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.872741699
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.856872618
Please provide your feedback on this answer.