NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Discount Item → Update record

AI-generated

Summary

Partially update a NetSuite Discount Item record.

Inputs

  • id (required) — Internal identifier of the Discount Item to update.
  • authMethod — Authentication method (OAuth1 or OAuth2, default: OAuth1).
  • isDebugMode — Include full request and response info in the output.
  • rate — Discount or markup rate (percentage with % sign or positive dollar amount).
  • isPreTax — Apply before taxes; relevant for sales tax countries like the US.
  • nonPosting — Do not post to general ledger; discount amount posts to specified account.
  • externalId — External identifier for the Discount Item.
  • itemId — Item name/number (up to 250 characters).
  • itemType — Type of item (e.g., Discount, Service, Group, Inventory, etc.).
  • class — Item class.
  • department — Department associated with the item.
  • location — Location associated with the item.
  • parent — Parent of the item.
  • subsidiary — Subsidiary associated with the item.
  • customForm — Custom form for the item.
  • createdDate — Creation date of the Discount Item.
  • lastModifiedDate — Last modified date of the Discount Item.
  • description — Description of the item.
  • displayName — Optional display name/code (up to 250 characters).
  • isInactive — Mark the item as inactive.
  • includeChildren — Share the item with all sub-subsidiaries associated with selected subsidiaries.
  • replace — Sublist names to replace on the record, comma-delimited.
  • replaceSelectedFields — If true, all fields to be deleted must be included in the 'replace' query parameter.
  • X-NetSuite-Idempotency-Key — Unique idempotency key for asynchronous requests (RFC 4122 UUID format).
  • X-NetSuite-PropertyNameValidation — Strictness of property name validation (Error, Warning, Ignore).
  • X-NetSuite-PropertyValueValidation — Strictness of property value validation (Error, Warning, Ignore).

Output shape

Updated Discount Item record as returned by the NetSuite API, or an error response.

The operation uses HTTP PATCH to /discountItem/{id}. The {id} parameter is required and must be the internal identifier. Optional fields sent in the request body partially update the record. Use 'replace' and 'replaceSelectedFields' to manage sublist replacements and field deletions.

Links

Discussion