Acumatica API - Endpoint Default 23 200 001 icon

Acumatica API - Endpoint Default 23 200 001

Interact with Acumatica Endpoint Default/23.200.001

Actions478

Discount → Insert/Update

AI-generated

Summary

Upserts a Discount record in Acumatica with related collections and additional fields.

Inputs

  • Customer Price Classes — List of customer price classes to associate with the discount. Each entry requires a Price Class ID (string). Displayed as a multi‑item fixed collection when the Discount resource and upsert operation are selected.
  • Customers — List of customers to associate with the discount. Each entry requires a Customer ID (string) and optionally a Customer Name (string). Displayed as a multi‑item fixed collection.
  • Discount Breakpoints — List of discount breakpoints defining tiered pricing. Each entry supports numeric fields (Break Amount, Break Qty, Discount Amount, Discount Detail ID, Discount Percent, Free Item Qty, Last Break Amount, Last Break Qty, Last Discount Amount, Last Discount Percent, Last Free Item Qty, Pending Break Amount, Pending Break Qty, Pending Discount Amount, Pending Discount Percent, Pending Free Item Qty) and date‑time fields (Effective Date, Pending Date). Displayed as a multi‑item fixed collection.
  • Item Price Classes — List of item price classes to associate with the discount. Each entry requires a Price Class ID (string). Displayed as a multi‑item fixed collection.
  • Items — List of items to associate with the discount. Each entry requires a Description (string) and an Inventory ID (string). Displayed as a multi‑item fixed collection.
  • Warehouses — List of warehouses to associate with the discount. Each entry requires a Warehouse name (string). Displayed as a multi‑item fixed collection.
  • Additional Fields — Collection of miscellaneous discount fields. Includes booleans (Active, Promotional, Prorate Discount, Show Free Item), strings (Break By, Created Date Time, Description, Discount By, Discount Code, Effective Date, Expiration Date, Last Modified Date Time, Sequence), and date‑time fields (Created Date Time, Effective Date, Expiration Date, Last Modified Date Time). Displayed as a generic collection when the Discount resource and upsert operation are selected.

Output shape

object

Returns the raw Acumatica API response for the upserted Discount record, which contains the system‑generated fields (e.g., internal ID, timestamps) along with the values that were sent.

Examples

Example 1: Insert a new discount

Provide values for Discount Code, Description, Effective Date, and optionally fill any of the collections above. Leave the ID field blank (the node will not send an ID) so Acumatica creates a new record.

Example 2: Update an existing discount

Supply the Discount’s internal identifier (either via a separate ‘ID’ field not shown in the operation‑scoped UI or by mapping a previous node’s output) together with the fields to change. The node will send a PUT/PATCH request to update only the supplied non‑empty values after stripping defaults.

Links

Discussion