OrderDiscount
object type
One pre-tax discount — amount XOR percent per kind; the audit reason is required. Engine emissions carry their ref and an engine-stamped reason; they are absolute amount entries computed to replay verbatim in the pipeline.
Fields
| Field | Type | Notes |
|---|---|---|
kind | SaleDiscountKind SaleDiscountKind! | One of the values of [SaleDiscountKind](/types/SaleDiscountKind/). |
source | SaleDiscountSource SaleDiscountSource! | One of the values of [SaleDiscountSource](/types/SaleDiscountSource/). |
amountMinor | Int | The absolute reduction in minor units (present ⟺ kind amount). |
percentPpm | Int | The percentage in integer ppm (present ⟺ kind percent). |
reason | String String! | |
promotionId | ID | The emitting Promotion — present ⟺ source promo. |
couponId | ID | The carrying Coupon — present ⟺ source coupon (engine-stamped; never caller input). |
loyaltyMemberId | ID | The redeeming LoyaltyMember — present ⟺ source loyalty. |
employeeUserId | ID | The verified employee User — present ⟺ source employee. |