Discussions
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. Join us
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 },