NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Discount Item → Insert or update record

AI-generated

Summary

Updates or inserts a NetSuite Discount Item record identified by its external ID via a PUT request.

Inputs

  • id (required) — External identifier of the Discount Item; used as the URL path parameter {id}.
  • isDebugMode — Whether to include full request and response info in the output. Default: false.
  • authMethod — Authentication method. Options: OAuth1 (default) or OAuth2.
  • isPreTax — Apply this markup or discount before taxes are calculated. Important: only relevant for countries levying sales tax (e.g., US); no effect in OneWorld VAT countries, but usable for Brazil, China, and India. Default: false.
  • class — Class identifier for the discount item. Accepts internal identifier or external identifier sub-object.
  • customForm — Custom form identifier. Select from available forms or enter internal identifier.
  • itemId — Item name/number (up to 250 characters). Appears on lists and transactions.
  • itemType — Item type collection. Options include Discount, Group, Service, ShipItem, TaxItem, InvtPart, Payment, Expense, NonInvtPart, TaxGroup, Kit, Markup, DwnLdItem, OthCharge, Assembly, SubscriPlan, and others.
  • nonPosting — If true, the discount does not post to a general ledger account; the item it is applied to posts the net amount. Cannot be selected for Purchase items. Default: false.
  • rate — Discount or markup rate. Percentage must be followed by %; dollar amount entered as a positive number. Default: null.
  • subsidiary — Subsidiary identifier. Accepts internal identifier or external identifier sub-object.
  • isInactive — When true, the item will no longer appear on lists unless Show All is checked. Default: false.
  • includeChildren — Share the item with all sub-subsidiaries associated with selected subsidiaries. All item options must be compatible across subsidiaries. Default: false.
  • description — Description for the item; appears in the Description column of sales forms.
  • displayName — Optional display name (up to 250 characters). Affects how the item prints on forms per printing mode.
  • externalId — External identifier for the item.
  • location — Location identifier. Accepts internal identifier or external identifier sub-object.
  • parent — Parent identifier. Accepts internal identifier or external identifier sub-object.
  • prefer — Server behavior hint. Use 'respond-async' to execute the request asynchronously. If executed asynchronously, 'Preference-applied: respond-async' is returned in the response. Default: empty (synchronous).
  • replace — Sublist names on this record to replace with lines specified in the request. Names are comma-delimited.
  • replaceSelectedFields — If true, all fields to be deleted in the update request must be included in the 'replace' query parameter. Default: false.
  • X-NetSuite-Idempotency-Key — User-defined unique idempotency key for asynchronous requests, ensuring the request executes only once. Use RFC 4122 UUID string format. Ignored for synchronous requests. Default: empty.
  • X-NetSuite-PropertyNameValidation — Strictness of property name validation. Options: Error, Warning, or Ignore. Default: empty (no strict validation).
  • X-NetSuite-PropertyValueValidation — Strictness of property value validation. Options: Error, Warning, or Ignore. Default: empty (no strict validation).
  • customFields — List of custom fields to associate with the Discount Item. Each entry includes field name (selectable via loadOptionsMethod), field type, and value appropriate to the type.

Output shape

NetSuite Discount Item record as returned by the API.

The response body contains the fully updated Discount Item record fields as stored in NetSuite. Exact shape depends on NetSuite's API response; no additional transformation is applied by the node beyond debug info if isDebugMode is enabled.

Links

Discussion