NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Promotion Code → Insert or update record

AI-generated

Summary

Insert or update a Promotion Code record in NetSuite by specifying its external identifier and providing various optional fields to configure the promotion details.

Inputs

  • Id (required) — External identifier of the Promotion Code record to insert or update.
  • Additional Fields — Optional parameters to set various attributes of the promotion code such as discount details, applicability, dates, audience, items, codes, and other promotion settings.
  • Custom Fields — Allows setting multiple custom fields with their types and respective values on the Promotion Code record.
  • Debug Mode — Flag to include full request and response information in the node's output for debugging purposes.

Output shape

a single record representing the inserted or updated Promotion Code with possible debug information if enabled

The output includes the Promotion Code object updated or created. If Debug Mode is enabled, full request and response details are included. The operation performs an upsert based on the provided Id. Optional query parameters like 'replace', 'replaceSelectedFields', and idempotency keys can also be specified within Additional Fields to control update behavior and async handling.

Examples

Example 1: Upsert Promotion Code with basic id and code

Specify the Id for the Promotion Code and optionally the Coupon Code and Name fields in Additional Fields.

Discussion