POS sale discounts
A discount applied to a line of a point-of-sale sale.
Fields
The API name is what the API and MCP use.
| Name | API name | Type | Required | Description |
|---|---|---|---|---|
| ID | id | Record ID | Yes | Stable key of this discount. |
| Label | label | Text | Text the cashier sees on the ticket. | |
| Sale | storepossaleId | Reference | Yes | Set when the discount is created and does not change. |
| Sequence | sequence | Whole Number | Yes | Order in which the discount applies on the line. |
| POS sale line | storepossaleitemId | Reference | Yes | Line this amount applies to. |
| Discount | salesdiscountId | Reference | Empty: manual discount. | |
| Type | kind | Constant | Yes | Whether the discount is a percent or a fixed amount. |
| Percent | percent | Percent | Fraction of the line amount. 0.1 is 10%. | |
| Amount | amount | Currency | Discount amount in the sale currency. | |
| Amount applied | amountApplied | Currency | Yes | Amount taken off the line, never above the line amount. |
| Created by | createdBy | User | ||
| Created at | createdAt | Date and Time | Yes | |
| Updated by | updatedBy | User | ||
| Updated at | updatedAt | Date and Time | Yes | |
| Blocked by | blockedBy | User | ||
| Blocked at | blockedAt | Date and Time | ||
| Archived by | archivedBy | User | ||
| Archived at | archivedAt | Date and Time |
Relations
Owned records (solid line) are deleted with their owner. Grouped records (dashed line) can exist alone.
| Field | Points to | Kind |
|---|---|---|
Sale storepossaleId | POS sales | owned by |
POS sale line storepossaleitemId | POS sale line items | reference |
Discount salesdiscountId | Sales discounts | reference |