Storefront GraphQL APIReferenceObjects
PreviewDiscountsResponse
type
PreviewDiscountsResponseFields
- fields
subtotal*Float!deliveryCharge*Float!applications*lineAllocations*productDiscount*Float!orderDiscount*Float!shippingDiscount*Float!discountTotal*Float!totalAfterDiscount*Float!subtotal + deliveryCharge - discountTotal (before tax).
hints*code?StringNormalised code when the entered code was applied.
codeError?StringWhy the entered code was not applied.
Usages
- Returned by
- QUERY
previewDiscounts
type PreviewDiscountsResponse { subtotal: Float! deliveryCharge: Float! applications: [AppliedDiscountResponse!]! lineAllocations: [LineDiscountAllocationResponse!]! productDiscount: Float! orderDiscount: Float! shippingDiscount: Float! discountTotal: Float! totalAfterDiscount: Float! hints: [DiscountHintResponse!]! code: String codeError: String}