Ron
09/17/2025, 4:22 PMCeligo AI
09/17/2025, 4:22 PMAI generated answer (using internal Slack threads):Based on the conversations, it seems like there are a few issues that users are facing when trying to create a Vendor Bill using the REST API in NetSuite. 1. The first issue is related to setting the department and class for the items in the Vendor Bill. The error message indicates that these fields are required. One user suggested making these fields not required on the form that the Vendor Bill is using, or setting the
ignoreMandatoryFields
flag to true when saving the Vendor Bill. However, the original poster mentioned that they were unable to set these fields via the payload. This issue was confirmed as a defect by NetSuite support.
2. The second issue is related to setting the tax code on the line item when the SuiteTax feature is not enabled. The REST API does not support legacy tax features, and the user was unable to set the tax code via the REST API. Some users suggested workarounds such as using a script to set the tax code before submitting, or using a custom field to send the desired tax code and copying it over with an After Submit. However, these were deemed as hacky and fragile workarounds, and it was suggested to use SOAP or a restlet instead.
3. The third issue is related to setting the transaction date (trandate
) for the Vendor Bill. The error message indicates that the date value is invalid and must be in the format DD/MM/YYYY. A user suggested using the N/format
module to convert the date to a date object.
Please note that these are based on the conversations and may not be the definitive solutions to the issues. Always refer to the official NetSuite documentation or consult with a NetSuite professional for accurate information.Celigo AI
09/17/2025, 4:22 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.874511719
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.856506467
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.854126
Celigo AI
09/17/2025, 4:22 PM