younifyd
Menu

site_checkout

Fetch a checkout by its ID — addresses, shipping consignments and options, coupons, taxes, fees and totals.

Use it in a workflow

  1. Add a step and choose the BigCommerce Storefront connector.
  2. Pick the site_checkout action (under Checkout).
  3. Fill in the fields below, then reference the result from later steps as {{siteCheckout.response.data}}.

Query

This is the query the action sends by default. Edit it in the step's Query field to change which fields come back.

graphql
query SiteCheckout($entityId: String) {
  site {
    checkout(entityId: $entityId) {
      id
      entityId
      currencyCode
      displayCurrencyCode
      billingAddress {
        entityId
        firstName
        lastName
        email
        company
        address1
        address2
        city
        stateOrProvince
        stateOrProvinceCode
        countryCode
        postalCode
        phone
        customFields {
          entityId
        }
      }
      cart {
        id
        entityId
        currencyCode
        displayCurrencyCode
        isTaxIncluded
        baseAmount {
          currencyCode
          value
          formatted
          formattedV2
        }
        baseAmountInDisplayCurrency {
          currencyCode
          value
          formatted
          formattedV2
        }
        discountedAmount {
          currencyCode
          value
          formatted
          formattedV2
        }
        discountedAmountInDisplayCurrency {
          currencyCode
          value
          formatted
          formattedV2
        }
        amount {
          currencyCode
          value
          formatted
          formattedV2
        }
        amountInDisplayCurrency {
          currencyCode
          value
          formatted
          formattedV2
        }
        discounts {
          entityId
          displayName
        }
        lineItems {
          totalQuantity
        }
        createdAt {
          utc
        }
        updatedAt {
          utc
        }
        locale
        version
        externalSource
        source
        companyId
      }
      shippingConsignments {
        entityId
        address {
          firstName
          lastName
          email
          company
          address1
          address2
          city
          stateOrProvince
          stateOrProvinceCode
          countryCode
          postalCode
          phone
        }
        availableShippingOptions {
          entityId
          description
          type
          imageUrl
          transitTime
          isRecommended
        }
        selectedShippingOption {
          entityId
          description
          type
          imageUrl
          transitTime
        }
        coupons {
          entityId
          promotionEntityId
          code
          couponType
          displayName
          status
          hasMaxLimitReached
        }
        shippingCost {
          currencyCode
          value
          formatted
          formattedV2
        }
        shippingCostInDisplayCurrency {
          currencyCode
          value
          formatted
          formattedV2
        }
        shippingCostBeforeDiscount {
          currencyCode
          value
          formatted
          formattedV2
        }
        shippingCostBeforeDiscountInDisplayCurrency {
          currencyCode
          value
          formatted
          formattedV2
        }
        comparisonShippingCost {
          currencyCode
          value
          formatted
          formattedV2
        }
        comparisonShippingCostInDisplayCurrency {
          currencyCode
          value
          formatted
          formattedV2
        }
        handlingCost {
          currencyCode
          value
          formatted
          formattedV2
        }
        handlingCostInDisplayCurrency {
          currencyCode
          value
          formatted
          formattedV2
        }
        lineItemIds
      }
      shippingCostTotal {
        currencyCode
        value
        formatted
        formattedV2
      }
      shippingCostTotalInDisplayCurrency {
        currencyCode
        value
        formatted
        formattedV2
      }
      shippingCostBeforeDiscount {
        currencyCode
        value
        formatted
        formattedV2
      }
      shippingCostBeforeDiscountInDisplayCurrency {
        currencyCode
        value
        formatted
        formattedV2
      }
      comparisonShippingCost {
        currencyCode
        value
        formatted
        formattedV2
      }
      comparisonShippingCostInDisplayCurrency {
        currencyCode
        value
        formatted
        formattedV2
      }
      giftWrappingCostTotal {
        currencyCode
        value
        formatted
        formattedV2
      }
      giftWrappingCostTotalInDisplayCurrency {
        currencyCode
        value
        formatted
        formattedV2
      }
      handlingCostTotal {
        currencyCode
        value
        formatted
        formattedV2
      }
      handlingCostTotalInDisplayCurrency {
        currencyCode
        value
        formatted
        formattedV2
      }
      taxTotal {
        currencyCode
        value
        formatted
        formattedV2
      }
      taxTotalInDisplayCurrency {
        currencyCode
        value
        formatted
        formattedV2
      }
      taxes {
        name
        amount {
          currencyCode
          value
          formatted
          formattedV2
        }
        amountInDisplayCurrency {
          currencyCode
          value
          formatted
          formattedV2
        }
      }
      subtotal {
        currencyCode
        value
        formatted
        formattedV2
      }
      subtotalInDisplayCurrency {
        currencyCode
        value
        formatted
        formattedV2
      }
      grandTotal {
        currencyCode
        value
        formatted
        formattedV2
      }
      grandTotalInDisplayCurrency {
        currencyCode
        value
        formatted
        formattedV2
      }
      createdAt {
        utc
      }
      updatedAt {
        utc
      }
      customerMessage
      outstandingBalance {
        currencyCode
        value
        formatted
        formattedV2
      }
      outstandingBalanceInDisplayCurrency {
        currencyCode
        value
        formatted
        formattedV2
      }
      coupons {
        entityId
        promotionEntityId
        code
        couponType
        discountedAmount {
          currencyCode
          value
          formatted
          formattedV2
        }
        discountedAmountInDisplayCurrency {
          currencyCode
          value
          formatted
          formattedV2
        }
        displayName
        status
        hasMaxLimitReached
      }
      giftCertificates {
        entityId
        code
        balance {
          currencyCode
          value
          formatted
          formattedV2
        }
        balanceInDisplayCurrency {
          currencyCode
          value
          formatted
          formattedV2
        }
        remaining {
          currencyCode
          value
          formatted
          formattedV2
        }
        remainingInDisplayCurrency {
          currencyCode
          value
          formatted
          formattedV2
        }
        used {
          currencyCode
          value
          formatted
          formattedV2
        }
        usedInDisplayCurrency {
          currencyCode
          value
          formatted
          formattedV2
        }
        purchaseDate {
          utc
        }
      }
      promotions {
        banners {
          entityId
          type
          locations
          text
        }
        entityId
        displayName
        priority
        discounts {
          type
          target
        }
      }
      fees {
        id
        feeType
        name
        displayName
        cost {
          currencyCode
          value
          formatted
          formattedV2
        }
        costInDisplayCurrency {
          currencyCode
          value
          formatted
          formattedV2
        }
        source
        taxClassId
      }
      version
      totalDiscount {
        currencyCode
        value
        formatted
        formattedV2
      }
      totalDiscountInDisplayCurrency {
        currencyCode
        value
        formatted
        formattedV2
      }
      displayDiscountTotal {
        currencyCode
        value
        formatted
        formattedV2
      }
      displayDiscountTotalInDisplayCurrency {
        currencyCode
        value
        formatted
        formattedV2
      }
      orderBasedAutoDiscountTotal {
        currencyCode
        value
        formatted
        formattedV2
      }
      orderBasedAutoDiscountTotalInDisplayCurrency {
        currencyCode
        value
        formatted
        formattedV2
      }
      manualDiscountTotal {
        currencyCode
        value
        formatted
        formattedV2
      }
      manualDiscountTotalInDisplayCurrency {
        currencyCode
        value
        formatted
        formattedV2
      }
      order {
        id
        entityId
        orderedAt {
          utc
        }
        updatedAt {
          utc
        }
        status {
          value
          label
        }
        billingAddress {
          firstName
          lastName
          company
          address1
          address2
          city
          stateOrProvince
          stateOrProvinceCode
          country
          countryCode
          postalCode
          phone
          email
        }
        isTaxIncluded
        consignments {
          __typename
        }
        subTotal {
          currencyCode
          value
          formatted
          formattedV2
        }
        discountedSubTotal {
          currencyCode
          value
          formatted
          formattedV2
        }
        discounts {
          __typename
        }
        wrappingCostTotal {
          currencyCode
          value
          formatted
          formattedV2
        }
        shippingCostTotal {
          currencyCode
          value
          formatted
          formattedV2
        }
        handlingCostTotal {
          currencyCode
          value
          formatted
          formattedV2
        }
        storeCreditTotal {
          currencyCode
          value
          formatted
          formattedV2
        }
        taxTotal {
          currencyCode
          value
          formatted
          formattedV2
        }
        taxes {
          name
        }
        totalIncTax {
          currencyCode
          value
          formatted
          formattedV2
        }
        totalIncTaxAfterGiftCertificatesAndStoreCredit {
          currencyCode
          value
          formatted
          formattedV2
        }
        customerMessage
        totalProductQuantity
        backorderShippingExpectationMessage
        comparisonShippingCost {
          currencyCode
          value
          formatted
          formattedV2
        }
        fees {
          entityId
          feeType
          displayName
          source
        }
        promotions {
          entityId
          displayName
          priority
          couponCode
        }
        permalink
        poNumber
        reference
        company {
          entityId
          name
        }
        history {
          id
          eventType
          statusLabel
          source
          createdAt
        }
        extraFields {
          name
          value
        }
        invoice {
          id
        }
        placedBy {
          entityId
          firstName
          lastName
          email
        }
      }
    }
  }
}

Variables

Pass these as a JSON object in the step's Variables field.

entityIdstring

Checkout ID.

json
{
  "entityId": "string"
}

Response

Read the result with {{siteCheckout.response.data.data.checkout}}. If the API returns errors, the step fails and they are at {{siteCheckout.response.data.errors}}.

idstring
entityIdstring
currencyCodestring
displayCurrencyCodestring
billingAddressobject
entityIdstring
firstNamestring
lastNamestring
emailstring
companystring
address1string
address2string
citystring
stateOrProvincestring
stateOrProvinceCodestring
countryCodestring
postalCodestring
phonestring
customFieldsarray<object>
cartobject
idstring
entityIdstring
currencyCodestring
displayCurrencyCodestring
isTaxIncludedboolean
baseAmountobject4 fields
baseAmountInDisplayCurrencyobject4 fields
discountedAmountobject4 fields
discountedAmountInDisplayCurrencyobject4 fields
amountobject4 fields
amountInDisplayCurrencyobject4 fields
discountsarray<object>
lineItemsobject5 fields
createdAtobject1 fields
updatedAtobject1 fields
localestring
versionnumber
externalSourcestring
sourcestring

One ofB2BB2B_INVOICEB2B_QUOTEBUY_NOW

companyIdnumber
shippingConsignmentsarray<object>
entityIdobject
addressobject
availableShippingOptionsobject
selectedShippingOptionobject
couponsobject
shippingCostobject
shippingCostInDisplayCurrencyobject
shippingCostBeforeDiscountobject
shippingCostBeforeDiscountInDisplayCurrencyobject
comparisonShippingCostobject
comparisonShippingCostInDisplayCurrencyobject
handlingCostobject
handlingCostInDisplayCurrencyobject
lineItemIdsobject
shippingCostTotalobject
currencyCodestring
valuestring
formattedstring
formattedV2string
shippingCostTotalInDisplayCurrencyobject
currencyCodestring
valuestring
formattedstring
formattedV2string
shippingCostBeforeDiscountobject
currencyCodestring
valuestring
formattedstring
formattedV2string
shippingCostBeforeDiscountInDisplayCurrencyobject
currencyCodestring
valuestring
formattedstring
formattedV2string
comparisonShippingCostobject
currencyCodestring
valuestring
formattedstring
formattedV2string
comparisonShippingCostInDisplayCurrencyobject
currencyCodestring
valuestring
formattedstring
formattedV2string
giftWrappingCostTotalobject
currencyCodestring
valuestring
formattedstring
formattedV2string
giftWrappingCostTotalInDisplayCurrencyobject
currencyCodestring
valuestring
formattedstring
formattedV2string
handlingCostTotalobject
currencyCodestring
valuestring
formattedstring
formattedV2string
handlingCostTotalInDisplayCurrencyobject
currencyCodestring
valuestring
formattedstring
formattedV2string
taxTotalobject
currencyCodestring
valuestring
formattedstring
formattedV2string
taxTotalInDisplayCurrencyobject
currencyCodestring
valuestring
formattedstring
formattedV2string
taxesarray<object>
nameobject
amountobject
amountInDisplayCurrencyobject
subtotalobject
currencyCodestring
valuestring
formattedstring
formattedV2string
subtotalInDisplayCurrencyobject
currencyCodestring
valuestring
formattedstring
formattedV2string
grandTotalobject
currencyCodestring
valuestring
formattedstring
formattedV2string
grandTotalInDisplayCurrencyobject
currencyCodestring
valuestring
formattedstring
formattedV2string
createdAtobject
utcstring
updatedAtobject
utcstring
customerMessagestring
outstandingBalanceobject
currencyCodestring
valuestring
formattedstring
formattedV2string
outstandingBalanceInDisplayCurrencyobject
currencyCodestring
valuestring
formattedstring
formattedV2string
couponsarray<object>
entityIdobject
promotionEntityIdobject
codeobject
couponTypeobject
discountedAmountobject
discountedAmountInDisplayCurrencyobject
displayNameobject
statusobject
hasMaxLimitReachedobject
giftCertificatesarray<object>
entityIdobject
codeobject
balanceobject
balanceInDisplayCurrencyobject
remainingobject
remainingInDisplayCurrencyobject
usedobject
usedInDisplayCurrencyobject
purchaseDateobject
promotionsarray<object>
bannersobject
entityIdobject
displayNameobject
priorityobject
discountsobject
feesarray<object>
idobject
feeTypeobject
nameobject
displayNameobject
costobject
costInDisplayCurrencyobject
sourceobject
taxClassIdobject
versionnumber
totalDiscountobject
currencyCodestring
valuestring
formattedstring
formattedV2string
totalDiscountInDisplayCurrencyobject
currencyCodestring
valuestring
formattedstring
formattedV2string
displayDiscountTotalobject
currencyCodestring
valuestring
formattedstring
formattedV2string
displayDiscountTotalInDisplayCurrencyobject
currencyCodestring
valuestring
formattedstring
formattedV2string
orderBasedAutoDiscountTotalobject
currencyCodestring
valuestring
formattedstring
formattedV2string
orderBasedAutoDiscountTotalInDisplayCurrencyobject
currencyCodestring
valuestring
formattedstring
formattedV2string

Need more? See the BigCommerce Storefront guide for connection setup and behaviour shared by every action.

site_checkout — BigCommerce Storefront — Documentation