NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Promotion Code → Insert or update record

AI-generated

Summary

Insert or update a Promotion Code record in NetSuite using the provided external identifier and specified fields, optionally returning detailed request and response information if debug mode is enabled.

Inputs

  • id (required) — External identifier of the Promotion Code record to insert or update.
  • additionalFields — Optional collection of fields to set on the Promotion Code. Includes discount details, applicability, dates, description, and other attributes.
  • customFields — List of custom fields to include in the Promotion Code record, each with name, type, and value.
  • isDebugMode — Boolean flag to enable full request and response debug information in the output.
  • authMethod — Authentication method to use, either OAuth1 or OAuth2.
  • Prefer — Server behavior preference; use 'respond-async' to execute request asynchronously.
  • X-NetSuite-Idempotency-Key — Unique idempotency key for asynchronous requests to ensure single execution.
  • X-NetSuite-PropertyNameValidation — Strictness level for validating property names in the request.
  • X-NetSuite-PropertyValueValidation — Strictness level for validating property values in the request.

Output shape

a single object representing the inserted or updated Promotion Code record, optionally augmented with debug information if debug mode is enabled.

The output may include detailed request and response data when 'Debug Mode' is true. This operation uses the HTTP PUT method on /promotionCode/{id}. Errors or validations are subject to the NetSuite API behavior and may be reflected in the node output.

Links

Discussion