NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Subscription Term → Insert or update record

AI-generated

Summary

Insert or update a Subscription Term record in NetSuite by specifying its external identifier and optionally setting various properties, including custom fields, to define or modify the subscription term details.

Inputs

  • id (required) — External identifier of the Subscription Term record to insert or update.
  • isDebugMode — Option to include detailed request and response information in the output for debugging.
  • authMethod — Authentication method to use for the API request, either OAuth1 or OAuth2.
  • additionalFields — Optional fields to set on the Subscription Term, such as duration, name, inactive status, subscription term type and unit, and other NetSuite header or request options.
  • customFields — Custom fields with specific names, types, and values to include or update on the Subscription Term record.

Output shape

a single record representing the inserted or updated Subscription Term, including any server response data

If Debug Mode is enabled, the output will include full HTTP request and response details. The update/insert is performed via a PUT request to /subscriptionTerm/{id}. Custom fields must match the NetSuite schema and are flattened before submission.

Examples

Example 1: Insert a new Subscription Term with external id 'subTerm123' and a duration of 12 months

Set 'Id' to 'subTerm123', provide 'Duration' as 12, 'Subscription Term Unit' to 'MONTHS', and optionally set other fields or custom fields.

Links

Discussion