Przejdź do głównej zawartości

DiscountInfo

Details of a discount that the buyer entered and that is currently valid for the cart.

type DiscountInfo {
code: String!
discountAmount: Money
title: String!
type: DiscountApplicationType!
value: Float!
}

Fields

DiscountInfo.code ● String! non-null scalar

The discount code as entered.

DiscountInfo.discountAmount ● Money object

Calculated savings the discount produces against the current cart. Null when the savings cannot be computed without a cart context.

DiscountInfo.title ● String! non-null scalar

Merchant-facing title of the discount (e.g. "Summer sale 10%").

DiscountInfo.type ● DiscountApplicationType! non-null enum

Category of the discount: PERCENTAGE, FIXED_AMOUNT, FREE_SHIPPING or BUY_X_GET_Y. Drives how value is interpreted.

DiscountInfo.value ● Float! non-null scalar

Discount value — percent points for PERCENTAGE, amount (in major currency units) for FIXED_AMOUNT. Ignored for FREE_SHIPPING / BUY_X_GET_Y.

Member Of

DiscountValidationResult object