Menu
checkout_updateCheckoutCustomerMessage
Updates a checkout customer message.
Use it in a workflow
- Add a step and choose the BigCommerce Storefront connector.
- Pick the checkout_updateCheckoutCustomerMessage action (under Update).
- Fill in the fields below, then reference the result from later steps as
{{checkoutUpdatecheckoutcustomermessage.response.data}}.
Query
This is the mutation the action sends by default. Edit it in the step's Query field to change which fields come back.
mutation CheckoutUpdateCheckoutCustomerMessage($input: UpdateCheckoutCustomerMessageInput!) {
checkout {
updateCheckoutCustomerMessage(input: $input) {
checkout {
id
entityId
currencyCode
displayCurrencyCode
billingAddress {
entityId
firstName
lastName
email
company
address1
address2
city
stateOrProvince
stateOrProvinceCode
countryCode
postalCode
phone
}
cart {
id
entityId
currencyCode
displayCurrencyCode
isTaxIncluded
locale
version
externalSource
source
companyId
}
shippingConsignments {
entityId
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
}
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
displayName
status
hasMaxLimitReached
}
giftCertificates {
entityId
code
}
promotions {
entityId
displayName
priority
}
fees {
id
feeType
name
displayName
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
isTaxIncluded
customerMessage
totalProductQuantity
backorderShippingExpectationMessage
permalink
poNumber
reference
}
}
}
}
}
Variables
Pass these as a JSON object in the step's Variables field.
{
"input": {
"checkoutEntityId": "string",
"data": {
"message": "string"
},
"version": 0
}
}
Response
Read the result with {{checkoutUpdatecheckoutcustomermessage.response.data.data.updateCheckoutCustomerMessage}}. If the API returns errors, the step fails and they are at {{checkoutUpdatecheckoutcustomermessage.response.data.errors}}.
Need more? See the BigCommerce Storefront guide for connection setup and behaviour shared by every action.
Was this page helpful?