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.
NetSuite has launched SuiteSuccess Wholesale Distribution Edition, in Japan. Please join us the webinar on February 12 that introduces NetSuite solution with demos and case studies for Wholesale Industry.
Register Now
Creating Sales Order via Integration REST Web Services
Hi Everyone!
Hope you're all well?
I am having difficulty creating Sales Order via REST Web Services.
I encounter the error
"title":"Bad Request","status":400,"o:errorDetails":[{"detail":"Invalid content in the request body.","o:errorCode":"INVALID_CONTENT"}]}
and have tried to reduce the fields to absolute minimum, also to include all the fields I when running a CSV Upload of Sales Orders to create.
My payload looks like this, is there anything clearly missing?
const soData = {
entity: { id: 2160 }, // Customer internal ID
subsidiary: { id: 2 },
location: { id: 2 },
class: { id: 2 },
externalId: "898989",
currency: { id: 2 },
custbody_ob_funding_source: {id : 2 },
custbody_ob_socontents: {id: 12 },