NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Opportunity → Insert record

AI-generated

Summary

Insert a new Opportunity record into NetSuite using the SuiteTalk REST API with optional additional fields and custom fields.

Inputs

  • Debug Mode — Whether to include full request and response info in the output.
  • Additional Fields — Optional fields for the Opportunity record such as billing/shipping addresses, items, status, entity, currency, dates, and other details.
  • Custom Fields — A list of user-defined custom fields for the Opportunity record, including field names, types, and corresponding values.

Output shape

a single record containing the created Opportunity's data with all fields returned by the NetSuite REST API, optionally including full HTTP request and response details if debug mode is enabled.

The operation sends a POST request to the /opportunity endpoint of the NetSuite REST API to create the record. Optional headers like idempotency key and validation strictness can be set via additional fields. If 'respond-async' preference is set, the request executes asynchronously.

Examples

Example 1: Create an Opportunity with title, probability, expected close date, and custom Boolean field.

Set 'Title', 'Probability (%)', 'Expected Close Date' in Additional Fields, add a Boolean custom field with desired value, leave debug mode off.

Discussion