NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Discount Item → Insert record

AI-generated

Summary

Inserts a new Discount Item record into NetSuite.

Inputs

  • itemId (required) — Item Name/Number. Up to 250 characters. Appears in lists on transactions.
  • itemType (required) — Item type collection. Must select Discount for discount items. Options include Discount, Group, Service, TaxItem, InvtPart, Payment, Expense, NonInvtPart, TaxGroup, Kit, Markup, and others.
  • isInactive — When true, the item will no longer appear on lists unless Show All is selected. Default false.
  • externalId — External identifier for the item.
  • displayName — Optional display name/Code. Up to 250 characters. Prints in Item column of sales forms when Basic printing is used.
  • description — Description for the item. Appears in the Description column of sales forms.
  • isPreTax — Apply before tax. Relevant for countries that levy sales tax (e.g., US). In OneWorld accounts, has no effect on VAT countries. Can be used for Brazil, China, and India. Default false.
  • class — Class identifier or external ID. Collection with id and externalId options.
  • subsidiary — Subsidiary identifier or external ID. Collection with id and externalId options.
  • location — Location identifier or external ID. Collection with id and externalId options.
  • parent — Parent identifier or external ID. Collection with id and externalId options.
  • nonPosting — When true, the discount does not post to a general ledger account. Requires an account selection for the discount amount. Cannot be selected when creating a Discount for Purchase item. Default false.
  • rate — Discount or markup rate. Can be a percentage (must follow with %) or a positive dollar amount. Default null.
  • authMethod — Authentication method. Options: OAuth1 (default) or OAuth2. noDataExpression: true.
  • isDebugMode — Whether to include full request and response info in the output. Default false.
  • X-NetSuite-Idempotency-Key — User-defined unique idempotency key for asynchronous requests. Ensures the request executes only once. Use UUID in RFC 4122 string format. Ignored for synchronous requests. Default empty string.
  • replace — Names of sublists on this record. All sublist lines will be replaced with lines specified in the request. Names delimited by comma. Default empty string.
  • Prefer — Server behavior requested by the client. Use 'respond-async' to execute the request asynchronously. If executed asynchronously, 'Preference-applied: respond-async' is returned in the response. Default empty string.
  • customFields — List of custom field name-value pairs. Fixed collection with multiple values supported. Each entry includes fieldName (options, loaded via loadCustomFields), fieldType (options: boolean, dateTime, multiSelect, number, select, string), and value (typed accordingly).

Output shape

NetSuite Discount Item record response body as returned by the REST API POST /discountItem endpoint. Includes internal ID and any returned fields.

Debug mode (isDebugMode) controls whether full request and response information appears in the n8n execution output.

Examples

Example 1: Create a basic discount item.

Set itemId to the desired name, itemType to Discount, leave other optional fields at defaults, and execute the node.

Links

Discussion