OrderPromotion
A promotion, coupon or manual discount applied to an order.
Fields
discounts
The discounts applied by this promotion.
entityId
The ID of the promotion rule. Null for manual discounts and legacy coupons.
displayName
The display name of the promotion. Null when not available.
priority
Order in which the promotion rule was applied. The lower the value, the higher the priority. Null when not available.
couponCode
The coupon code that applied this promotion. Null when not applied by a coupon.