DiscountCodes
Manages discount codes tied to price rules, including creation, activation, and redemption information.
Columns
| Name | Type | ReadOnly | References | Description |
| Id [KEY] | Long | True |
A unique numeric identifier for the discount code record. | |
| PriceRuleId [KEY] | Long | False |
PriceRules.Id |
The unique identifier of the price rule that defines the discount's conditions and eligibility. |
| Code | String | False |
The case-insensitive discount code entered by customers at checkout to redeem a price rule. | |
| UsageCount | Int | True |
The total number of times this discount code has been successfully redeemed by customers. | |
| CreatedAt | Datetime | True |
The date and time when the discount code was created in the store. | |
| UpdatedAt | Datetime | True |
The date and time when the discount code was last updated or modified. |