NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Coupon Code → Update record

AI-generated

Summary

Update a NetSuite coupon code record via a PATCH REST call.

Inputs

  • id (required) — Internal NetSuite identifier of the coupon code to update.
  • isDebugMode — If true, returns full request and response payloads in the output.
  • additionalFields — Fields to update on the coupon code. Include any of the standard fields (code, dateSent, externalId, internalId, promotion, recipient, refName, replace, replaceSelectedFields, used, useCount) and NetSuite‑specific headers (Prefer, X‑NetSuite‑Idempotency‑Key, X‑NetSuite‑PropertyNameValidation, X‑NetSuite‑PropertyValueValidation).

Output shape

a single item containing the updated coupon record (JSON)

When debug mode is enabled, each item contains a debug property with request and response details. The node does not handle pagination; it returns the API response as a single item.

Examples

Example 1: Change the coupon code to 'SUMMER25'

Set id to the internal record ID, set additionalFields.code to 'SUMMER25'.

Example 2: Mark a coupon as used by a specific recipient

Set id, set additionalFields.used to true, and provide a recipient sub‑collection with internal or external ID.

Example 3: Include a custom field when updating

Add a customFields entry with the custom field name and its value, e.g., fieldName: 'myField', fieldType: 'string', value: 'example'.

Discussion