NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Sales Order → Insert or update record

AI-generated

Summary

Update or insert a Sales Order record in NetSuite by providing the record's external ID and relevant fields to modify or add.

Inputs

  • isDebugMode — Whether to include full request and response info in the output.
  • id (required) — External identifier of the Sales Order to insert or update.
  • additionalFields — Optional fields to set on the Sales Order, such as billing/shipping addresses, dates, totals, items, statuses, and other detailed properties.
  • customFields — List of custom fields with their names, types, and values to apply to the Sales Order.

Output shape

a single record containing the response from NetSuite after inserting or updating the Sales Order.

If Debug Mode is enabled, the output includes full request and response data. The operation requires a valid external ID for the Sales Order and supports various complex nested fields as additional input.

Examples

Example 1: Update existing Sales Order

Set 'id' to the Sales Order's external ID, provide fields such as billingAddress, items, and memo to update, optionally enable Debug Mode to get detailed request/response information.

Discussion