NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Discount Item → Update record

AI-generated

Summary

Patch an existing Discount Item record in NetSuite, modifying any supplied fields.

Inputs

  • id (required) — Internal NetSuite identifier of the Discount Item to update.
  • isDebugMode — When true, the output will include full request and response headers and body for inspection.
  • additionalFields — Collection of fields to update on the Discount Item. Any subset of the item attributes—such as account, applyBeforeTax, description, rate, etc.—can be provided here.
  • customFields — Collection of custom fields to set on the item, each defined by field name and its corresponding value.

Output shape

a JSON object representing the updated Discount Item record returned by NetSuite

If debug mode is enabled, the output contains two additional objects: ‘request’ and ‘response’ with HTTP details.

Examples

Example 1: Update the description of a Discount Item

id=456 with additionalFields.description='Spring promotion price discount'.

Example 2: Change rate and apply before tax for a Discount Item

id=789, additionalFields.rate=15 (percent), additionalFields.isPreTax=true.

Example 3: Enable debug mode while updating custom field in a Discount Item

id=321, isDebugMode=true, customFields=[{fieldName:'myCustomField',value:'enabled'}]

Discussion