Skip to content
checkoutPreviewQuery
checkoutPreview(checkout: CheckoutPreviewInput!): CheckoutPreviewResult!

Read-only preview of what a customer would be charged at checkout for a product or activity, with optional discountCode and giftCardCode applied. Used by checkout UIs to show line totals as the customer types. Returns per-field errors (invalid code, conditions not met, expired, etc.) instead of throwing.

Arguments

Returns

CheckoutPreviewResult!

See CheckoutPreviewResult for the full shape.

Try it

Preview a checkout total
Returns the per-line totals a buyer would pay for a product or activity, with optional discount and gift-card codes applied. Read-only — returns per-field errors instead of throwing.
Query
query CheckoutPreview($checkout: CheckoutPreviewInput!) {
  checkoutPreview(checkout: $checkout) {
    __typename
  }
}
Variables
{}
POST https://go.sessions.website/api/graphql
checkoutPreview