NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Coupon Code → Insert or update record

AI-generated

Summary

Updates a NetSuite Coupon Code record by its external identifier.

Inputs

  • id (required) — External identifier of the coupon code to update.
  • isDebugMode — Whether to include full request and response info in the output.
  • authMethod — Authentication method, either OAuth1 or OAuth2.
  • additionalFields — Collection of fields to update the coupon code. Sub-options include: code (coupon code text entered on a sales transaction), dateSent (date sent to recipient), used (boolean indicating if the coupon has been used), Prefer (set to 'respond-async' for asynchronous execution), replace (comma-delimited sublist names to replace all lines), replaceSelectedFields (if true, deleted fields must be included in the 'replace' query parameter), X-NetSuite-Idempotency-Key (UUID RFC 4122 for request uniqueness), X-NetSuite-PropertyNameValidation/PropertyValueValidation (strictness levels: Error/Warn/Ignore), promotion and recipient (collections with internal/external identifiers), and refName (reference name).
  • customFields — Fixed collection of custom fields to associate with the record, each with a field name, type, and value.

Output shape

The updated Coupon Code record as returned by the NetSuite API.

Full request and response metadata is included when isDebugMode is true.

Links

Discussion