NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Subscription → Update record

AI-generated

Summary

Update a Subscription record in NetSuite by specifying its internal ID and the fields to modify, optionally including custom fields and adjusting request headers for validation or idempotency.

Inputs

  • id (required) — The internal identifier of the Subscription record to update.
  • additionalFields — A collection of optional fields for the Subscription record to update, such as start date, end date, billing account, status, renewal options, and many others.
  • customFields — Custom fields to update on the Subscription, allowing various data types such as boolean, dateTime, multiSelect, number, select, and string.
  • replace — Comma-delimited names of sublists to replace, affecting lines in sublists during update.
  • replaceSelectedFields — Boolean flag indicating if all fields to delete should be included in the 'replace' parameter for update.
  • Prefer — Server behavior preference, e.g., 'respond-async' to execute request asynchronously.
  • X-NetSuite-Idempotency-Key — User-defined unique idempotency key for asynchronous requests to ensure single execution.
  • X-NetSuite-PropertyNameValidation — Strictness level for property name validation: Error, Warning, or Ignore.
  • X-NetSuite-PropertyValueValidation — Strictness level for property value validation: Error, Warning, or Ignore.

Output shape

a single record object representing the updated Subscription as returned by NetSuite's REST API, including request and response details if Debug Mode is enabled.

The output may include detailed HTTP request and response data if Debug Mode is enabled. Custom fields and additional fields are merged into the update payload. Optional headers can control validation and idempotency behavior. The operation requires OAuth1 or OAuth2 authentication and the Subscription internal ID.

Examples

Example 1: Update the status and name of a Subscription with internal ID 12345, enabling debug mode.

ID=12345; AdditionalFields: Status=ACTIVE; Name='Updated Subscription'; DebugMode=true; AuthMethod=OAuth2

Links

Discussion