Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
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" } ]}