> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Resource: Discount Rules # Type: Discount Rule Object # Link: https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/extensions/discounts/discount-rules/discount-rule-object.md ## Description: Manage Discount Rules. ## Schema: ```json Type: Discount Rule Object | type: DiscountRule Description: Manage Discount Rules. - name: id | type: string | description: Discount rule ID. - name: value | type: string | description: - name: revision | type: string | description: Revision number, which increments by 1 each time the discount rule is updated. To prevent conflicting changes, the current `revision` must be passed when updating the discount rule. - name: value | type: string | description: - name: createdDate | type: string | description: Date and time the discount rule was created. - name: seconds | type: string | description: - name: nanos | type: number | description: - name: updatedDate | type: string | description: Date and time the discount rule was last updated. - name: active | type: boolean | description: Whether the discount rule is active. Default: `true` - name: value | type: boolean | description: - name: name | type: string | description: Discount rule name. - name: trigger | type: DiscountTrigger | description: Discount rule trigger. A set of conditions that must be met for the `discounts` to be applied. Not passing a trigger will cause the discount to always apply. - name: triggerType | type: string | description: Trigger type. enum: AND, SUBTOTAL_RANGE, ITEM_QUANTITY_RANGE, CUSTOM, OR, CUSTOMER_ELIGIBILITY - name: activeTimeInfo | type: ActiveTimeInfo | description: Time frame in which the discount rule is active. - name: start | type: string | description: Date and time the discount rule is active **from**, in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. - name: end | type: string | description: Date and time the discount rule is active **till**, in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. - name: discounts | type: Discounts | description: List of discounts that are applied when one or more triggers are met. > **Notes:** > > + Currently, only 1 discount can be defined per discount rule. > + A discount rule can be applied on multiple items per cart. > + A discount rule can only be applied once per item. - name: values | type: Array | description: Discounts. - name: targetType | type: string | description: Discount target. + `SPECIFIC_ITEMS`: Discount applies to a specific set of items. - name: specificItemsInfo | type: SpecificItemsInfo | description: Data related to `SPECIFIC_ITEMS` target type. - name: discountType | type: string | description: Discount type. - name: status | type: string | description: Discount rule status. Default: `UNDEFINED` enum: LIVE, EXPIRED, PENDING - name: usageCount | type: number | description: Number of times the discount rule was used. - name: tags | type: Tags | description: Tags for this discount rule. - name: privateTags | type: TagList | description: Tags that require an additional permission in order to access them, normally not given to site members or visitors. - name: tagIds | type: Array | description: List of tag IDs. - name: publicTags | type: TagList | description: Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. ```