OrderDiscount Object
Contains all details related to the applied discount to the order.
type OrderDiscount implements Node {
id: ID!
type: OrderDiscountType!
name: String
translatedName: String
valueType: DiscountValueTypeEnum!
value: PositiveDecimal!
reason: String
amount: Money! @deprecated(reason: "Use `total` instead.")
total: Money!
}
Interfaces
Fields
id
id · ID!
The ID of discount applied.
type
type · OrderDiscountType!
The type of applied discount: Sale, Voucher or Manual.
name
name · String
The name of applied discount.
translatedName
translatedName · String
Translated name of the applied discount.
valueType
valueType · DiscountValueTypeEnum!
Type of the discount: fixed or percent
value
value · PositiveDecimal!
Value of the discount. Can store fixed value or percent value
reason
reason · String
Explanation for the applied discount.
amount
amount · Money!
Returns amount of discount.
total
total · Money!
The amount of discount applied to the order.
Used by
Schema: Saleor 3.23.43. Download SDL.