NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Promotion Code → Update record

AI-generated

Summary

Update an existing Promotion Code record in NetSuite by specifying its internal identifier and providing fields to modify.

Inputs

  • id (required) — Internal identifier of the Promotion Code record to update.
  • additionalFields — Optional fields to update on the Promotion Code, such as code pattern, discount, dates, applicability details, and custom fields.
  • customFields — List of custom fields with their names, types, and values to update on the Promotion Code.
  • isDebugMode — Whether to include full request and response details in the output for debugging.
  • authMethod — Authentication method to use, either OAuth1 or OAuth2.

Output shape

a single record representing the updated Promotion Code, including optionally detailed request and response info if Debug Mode is enabled.

The operation sends a PATCH request to update the specified Promotion Code by its internal id. If Debug Mode is enabled, the output will include full HTTP request and response information. Custom fields and additional standard fields can be updated as provided. The operation supports asynchronous behavior via the 'Prefer' header. Error information may be included in the output if the operation fails.

Examples

Example 1: Update Promotion Code discount rate and description

Set 'id' to the target Promotion Code internal ID, and specify 'discount.rate' and 'description' in Additional Fields.

Links

Discussion