NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Discount Item → Insert or update record

AI-generated

Summary

Update or create a NetSuite Discount Item record via REST, optionally including custom fields and debug output.

Inputs

  • isDebugMode — Include full request and response details in the output
  • id (required) — External identifier of the Discount Item (used for updates, omitted when creating a new record)

Output shape

a single record returned from the NetSuite API, optionally wrapped with full request / response data when debug mode is enabled

When creating a new record, omit the Id field. The response body contains the created or updated record. If Debug Mode is true, the node emits additional fields named request and response that contain the raw HTTP request and response payloads.

Examples

Example 1: Update an existing discount item to apply it before tax

Set Id=123; Additional Fields→Apply Before Tax: true; Rate: 10; Description: "Seasonal discount"

Example 2: Create a new discount item with a rate and description

Additional Fields→Rate: 5; Description: "New Year promotion" (omit Id field)

Example 3: Add a custom field to a discount item

Custom Fields→CustomField: Labeled fieldName="custom_discount_code", fieldType="string", value="DISCOUNT2024"

Discussion