NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Subscription → Insert or update record

AI-generated

Summary

Insert or update a Subscription record in NetSuite by specifying its external identifier and various subscription fields, including optional custom fields and sublist replacements.

Inputs

  • id (required) — External identifier for the Subscription record to insert or update.
  • authMethod — Authentication method to use for the request; options are OAuth1 or OAuth2.
  • additionalFields — Optional collection of Subscription fields such as billing account, customer, subscription plan, start/end dates, status, and renewal settings.
  • customFields — Optional list of custom fields to set on the Subscription record, supporting multiple custom field types.
  • replace — Comma-delimited names of sublists to fully replace on the Subscription record during update.
  • replaceSelectedFields — Boolean flag indicating that all fields to delete must be included in the 'replace' parameter.
  • Prefer — Request server behavior, e.g., 'respond-async' for asynchronous execution.
  • X-NetSuite-Idempotency-Key — Unique idempotency key to ensure a request is executed only once in asynchronous mode.
  • X-NetSuite-PropertyNameValidation — Sets strictness of property name validation (Error, Warning, Ignore).
  • X-NetSuite-PropertyValueValidation — Sets strictness of property value validation (Error, Warning, Ignore).

Output shape

The updated or inserted Subscription record data as returned by NetSuite, including all standard and custom fields and sublists.

The operation requires specifying the Subscription external ID and optionally accepts many Subscription fields organized under 'additionalFields'. Use 'replace' parameter to replace sublist lines fully. Debug mode can be enabled to include full request and response info in output. Supports both OAuth1 and OAuth2 authentication. Returns the Subscription record data response from NetSuite's REST API.

Links

Discussion