Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
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" } ]}