Skip to Content
StoreOSv0.27.1
Storefront GraphQL APIReferenceObjects

PreviewDiscountsResponse

typePreviewDiscountsResponse

Fields

  1. fields
subtotal*Float!
deliveryCharge*Float!
applications*
lineAllocations*
productDiscount*Float!
orderDiscount*Float!
shippingDiscount*Float!
discountTotal*Float!
totalAfterDiscount*Float!

subtotal + deliveryCharge - discountTotal (before tax).

hints*
code?String

Normalised code when the entered code was applied.

codeError?String

Why the entered code was not applied.

Usages

Returned by
QUERYpreviewDiscounts
SDL
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}