Menu
abandonedCheckouts
Returns a list of abandoned checkouts. A checkout is considered abandoned when a customer adds contact information but doesn't complete their purchase.
Use it in a workflow
- Add a step and choose the Shopify connector.
- Pick the abandonedCheckouts action (under Abandoned).
- Fill in the fields below, then reference the result from later steps as
{{abandonedcheckouts.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 AbandonedCheckouts($first: Int, $after: String, $last: Int, $before: String, $reverse: Boolean, $sortKey: AbandonedCheckoutSortKeys, $query: String, $savedSearchId: ID) {
abandonedCheckouts(
first: $first
after: $after
last: $last
before: $before
reverse: $reverse
sortKey: $sortKey
query: $query
savedSearchId: $savedSearchId
) {
edges {
cursor
node {
abandonedCheckoutUrl
billingAddress
completedAt
createdAt
customAttributes
customer
defaultCursor
discountCodes
id
lineItemsQuantity
name
note
shippingAddress
subtotalPriceSet
taxLines
taxesIncluded
totalDiscountSet
totalDutiesSet
totalLineItemsPriceSet
totalPriceSet
totalTaxSet
updatedAt
}
}
nodes {
abandonedCheckoutUrl
billingAddress {
address1
address2
city
company
coordinatesValidated
country
countryCode
countryCodeV2
firstName
formattedArea
id
lastName
latitude
longitude
name
phone
province
provinceCode
timeZone
validationResultSummary
zip
}
completedAt
createdAt
customAttributes {
key
value
}
customer {
amountSpent
canDelete
companyContactProfiles
createdAt
dataSaleOptOut
defaultAddress
defaultEmailAddress
defaultPhoneNumber
displayName
email
emailMarketingConsent
firstName
hasTimelineComment
id
identityProviderSubjects
lastName
lastOrder
legacyResourceId
lifetimeDuration
locale
market
mergeable
multipassIdentifier
note
numberOfOrders
phone
productSubscriberStatus
smsMarketingConsent
state
statistics
tags
taxExempt
taxExemptions
taxSettings
unsubscribeUrl
updatedAt
validEmailAddress
verifiedEmail
}
defaultCursor
discountCodes
id
lineItemsQuantity
name
note
shippingAddress {
address1
address2
city
company
coordinatesValidated
country
countryCode
countryCodeV2
firstName
formattedArea
id
lastName
latitude
longitude
name
phone
province
provinceCode
timeZone
validationResultSummary
zip
}
subtotalPriceSet {
presentmentMoney
shopMoney
}
taxLines {
channelLiable
price
priceSet
rate
ratePercentage
source
title
}
taxesIncluded
totalDiscountSet {
presentmentMoney
shopMoney
}
totalDutiesSet {
presentmentMoney
shopMoney
}
totalLineItemsPriceSet {
presentmentMoney
shopMoney
}
totalPriceSet {
presentmentMoney
shopMoney
}
totalTaxSet {
presentmentMoney
shopMoney
}
updatedAt
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
}
}
Variables
Pass these as a JSON object in the step's Variables field.
{
"first": 0,
"after": "string",
"last": 0,
"before": "string",
"reverse": false,
"sortKey": "CHECKOUT_ID",
"query": "string",
"savedSearchId": "string"
}
Response
Read the result with {{abandonedcheckouts.response.data.data.abandonedCheckouts}}. If the API returns errors, the step fails and they are at {{abandonedcheckouts.response.data.errors}}.
Need more? See the Shopify guide for connection setup and behaviour shared by every action.
Was this page helpful?