Sales discounts
A sales discount that applies by itself or when its code is entered.
Fields
The API name is what the API and MCP use.
| Name | API name | Type | Required | Description |
|---|---|---|---|---|
| ID | id | Record ID | Yes | Assigned when the rule is created. Quotes and orders that use the rule point at it. |
| Name | label | Text | Yes | Shown on the document when this rule applies. |
| Code | code | Text | Empty: applies by itself. With a code: applies when the code is entered. | |
| Valid from | dateFrom | Date | Yes | First day the discount is valid. |
| Valid to | dateTo | Date | Yes | Last day the discount is valid. |
| Catalog | catalog | Constant | Empty: applies to the whole quote. | |
| Product item | productitemId | Reference | Target when the catalog value is product items. Empty for every other catalog. | |
| Product | productId | Reference | Copied from the product item when an item is set. With no item, choose the product. Empty applies to all. | |
| Product family | productgroupId | Reference | Empty applies to all. | |
| Service item | serviceitemId | Reference | Target when the catalog value is service items. Empty for every other catalog. | |
| Service | serviceId | Reference | Copied from the service item when an item is set. With no item, choose the service. Empty applies to all. | |
| Service family | servicegroupId | Reference | Empty applies to all. | |
| Custom item | customitemId | Reference | Target when the catalog value is custom items. Empty for every other catalog. | |
| Custom item family | customitemgroupId | Reference | Empty applies to all. | |
| Material | materialId | Reference | Target when the catalog value is materials. Empty for every other catalog. | |
| Material family | materialgroupId | Reference | Empty applies to all. | |
| Customer | customerId | Reference | Empty applies to all. | |
| Customer group | customergroupId | Reference | Empty applies to all. | |
| Type | kind | Constant | Yes | Percent of the base, or a fixed amount. |
| Percent | percent | Percent | Fraction from 0 to 1. | |
| Currency | currency | Constant | Currency of the fixed amount. | |
| Amount | amount | Currency | Fixed amount in the currency. | |
| Tags | tagIds | Tags | Optional classifiers for lists and filters. | |
| Created by | createdBy | User | ||
| Created at | createdAt | Date and Time | Yes | |
| Updated by | updatedBy | User | ||
| Updated at | updatedAt | Date and Time | Yes | |
| Published by | publishedBy | User | ||
| Published at | publishedAt | Date and Time | ||
| Disabled by | disabledBy | User | ||
| Disabled at | disabledAt | Date and Time | ||
| Blocked by | blockedBy | User | ||
| Blocked at | blockedAt | Date and Time | ||
| Archived by | archivedBy | User | ||
| Archived at | archivedAt | Date and Time |
Relations
| Field | Points to | Kind |
|---|---|---|
Product productId | Products | reference |
Product family productgroupId | Product families | reference |
Service serviceId | Services | reference |
Service family servicegroupId | Service families | reference |
Custom item family customitemgroupId | Custom item families | reference |
Material family materialgroupId | Material families | reference |
Customer customerId | Customers | reference |
Customer group customergroupId | Customer groups | reference |
Tags tagIds | Tags | reference |
States
How a record moves from state to state. Archive and block can happen in any state.