NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Subscription Plan → Insert record

AI-generated

Summary

Insert a new Subscription Plan record into NetSuite via the REST API, optionally specifying various Subscription Plan fields, custom fields, and request headers.

Inputs

  • Subscription Plan Name (required) — Enter a name to identify the subscription plan (itemId).
  • Additional Fields — Provide optional fields such as Description, Class, Department, Subsidiary, Item Type, Default Renewal settings, Dates, and other Subscription Plan attributes to customize the inserted record.
  • Custom Fields — Set multiple custom fields with types including Boolean, DateTime, Multi Select, Number, Select, and String.
  • Authentication Method — Choose OAuth1 or OAuth2 for authentication; defaults to OAuth1.
  • Debug Mode — Enable to include full request and response details in the output for troubleshooting.
  • Prefer — Set server behavior preference; for example, use 'respond-async' to execute the request asynchronously.
  • X - Net Suite - Idempotency - Key — Provide a user-defined unique idempotency key for asynchronous requests to prevent duplicate execution.
  • X - Net Suite - Property Name Validation — Set strictness for property name validation with options: Error, Warning, Ignore.
  • X - Net Suite - Property Value Validation — Set strictness for property value validation with options: Error, Warning, Ignore.

Output shape

A single JSON object representing the created Subscription Plan record, including its system-assigned internal ID and any included details.

If Debug Mode is enabled, the output includes full HTTP request and response information. The operation supports asynchronous execution when the 'Prefer' header is set to 'respond-async'. Custom fields are flattened and included as part of the request body.

Examples

Example 1: Insert a new Subscription Plan with mandatory name and optional display name, advance renewal period, and a custom Boolean field enabled.

Set 'Subscription Plan Name' to 'Standard Plan', add 'Display Name' in Additional Fields as 'Standard Monthly Plan', specify 'Advance Renewal Period' as 15 with unit 'DAYS', set a custom field named 'IsFeatured' (Boolean) to true.

Links

Discussion