Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Create VendorBill with expense line using Rest API
I am trying to create a VendorBill with expense line and getting INVALID_CONTENT error, which is not very helpful to resolve.
Below is the Request JSON body.
{ "customForm": {"id": "220"}, "entity": {"id": "2064"}, "tranId": "GYANREF1234", "subsidiary": {"id": "88"}, "memo": "Vendor Bill created via REST API", "tranDate": "2025-05-13T00:00:00Z", "account": "981", "postingperiod": "75", "dueDate": "2025-05-31T00:00:00Z", "department": {"id": "103"}, "class": {"id": "122"}, "approvalStatus": { "id": "1", "refName": "Pending Approval" }, "custbody_northspyreid": "GTest1", "expense": [ { "account": {"id": "915"}, "department": {"id": "103"}, "class": {"id": "122"}, "cseg_driftwood_proj": {"id": "653"}, "memo": "Line Description Test1", "amount": 3000.55 } ] }
Below is the Response JSON Body:
{ "type": "https://www.rfc-editor.org/rfc/rfc9110.html#section-15.5.1", "title": "Bad Request", "status": 400, "o:errorDetails": [ { "detail": "Invalid content in the request body.", "o:errorCode": "INVALID_CONTENT" } ]}