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!
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 },