Skip to content

previewCheckout

previewCheckout(input: CheckoutInput!): CheckoutPreview!

Price a basket without minting anything. Takes the same items checkout does, so what a buyer previews and what they are charged cannot disagree — hand taxCalculationId back to checkout to be charged the figure shown.

Named apart from the legacy checkoutPreview only while both exist; that one goes when its callers move over.

Arguments

Returns

CheckoutPreview!

See CheckoutPreview for the full shape.

Try it

Authentication
Example
Query
query PreviewCheckout($input: CheckoutInput!) {
  previewCheckout(input: $input) {
    __typename
  }
}
Variables
{}
POST https://go.sessions.website/api/graphql