NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Sales Order → Insert or update record

AI-generated

Summary

Insert or update a Sales Order record in NetSuite by specifying its external identifier along with various optional fields including addresses, items, billing info, and custom fields.

Inputs

  • id (required) — External identifier of the Sales Order to insert or update.
  • isDebugMode — Enable to include full request and response details in the output.
  • authMethod — Choose the authentication method, OAuth1 or OAuth2.
  • additionalFields — Optional detailed data for Sales Order such as billing and shipping addresses, items, discounts, dates, and other Sales Order properties.
  • customFields — Custom fields with names, types, and values to include on the Sales Order.

Output shape

The updated or inserted Sales Order record as returned by the NetSuite API, optionally including full request and response info if debug mode is enabled.

The operation requires the 'id' field to identify the external Sales Order record. Optional fields allow detailed Sales Order data customization. If 'isDebugMode' is enabled, the output will contain debug information. The operation uses a PUT method to upsert the Sales Order. Errors and validation depend on NetSuite API behavior.

Examples

Example 1: Insert or update a Sales Order with external ID 'SO12345' and basic billing info

Set 'id' to 'SO12345', provide any additional fields for billing address or items if needed, and leave debug mode off.

Example 2: Update an existing Sales Order and get debug info

Provide the external ID of the Sales Order, fill desired fields to update, and set 'isDebugMode' to true to receive detailed request and response logs.

Links

Discussion