Menu
site_checkout
Fetch a checkout by its ID — addresses, shipping consignments and options, coupons, taxes, fees and totals.
Use it in a workflow
- Add a step and choose the BigCommerce Storefront connector.
- Pick the site_checkout action (under Checkout).
- 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.
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.
{
"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}}.
Need more? See the BigCommerce Storefront guide for connection setup and behaviour shared by every action.
Was this page helpful?