NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Opportunity → Insert or update record

AI-generated

Summary

Insert a new Opportunity record or update an existing one in NetSuite by specifying the record ID and optionally providing detailed fields and custom fields for the Opportunity.

Inputs

  • id (required) — The unique identifier of the Opportunity record to insert or update.
  • authMethod — Authentication method to use: OAuth1 (default) or OAuth2.
  • additionalFields — Optional detailed fields to specify various Opportunity properties such as billing address, currency, status, items, dates, and other Opportunity-specific data.
  • customFields — Optional list of custom fields with their names, types, and values to include in the Opportunity record.
  • isDebugMode — When true, includes full HTTP request and response details in the output for debugging purposes.

Output shape

a single updated or created Opportunity record object as returned from NetSuite's REST API, including any standard and custom fields specified in the input.

The operation requires the Opportunity record ID as input to either update an existing record or insert a new one with that ID. Additional and custom fields are optional but allow detailed customization of the Opportunity. When Debug Mode is enabled, the response includes extended HTTP request/response information. The response format conforms to NetSuite's REST API schema for Opportunity records.

Examples

Example 1: Update an existing Opportunity record

Specify the 'id' of the Opportunity to update and provide the additionalFields with updated property values such as expectedCloseDate, probability, and status.

Example 2: Insert a new Opportunity record

Provide a new 'id' for the Opportunity (typically internal to NetSuite or externalId), supply required and optional fields in additionalFields and customFields to fully define the Opportunity, and execute to create it.

Links

Discussion