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!
REST API: Updating existing Sales Order without generating new order lines
When updating an existing sales order, we are sending an object like this using a PATCH request to the URL for the order (like https://[ACCOUNT].suitetalk.api.netsuite.com/services/rest/record/v1/salesorder/15123, where the existing sales order internal ID is 15123)
{"total":654,"entity":{"id":"1542"},"salesRep":{"id":"1008"},"item":{"items":[{"rate":109,"amount":654,"quantity":6,"item":{"id":"387"}},{"rate":0,"amount":0,"quantity":1,"item":{"id":"506"}}]}}
But the result adds two NEW line items to the existing order.
What if we want to modify the quantities of the line items that are already there?