Headless commerce and custom storefronts with Shopify APIs and SDKs
To continue receiving payouts, you need to secure your account by turning on two-step authentication. If two-step authentication is not turned on your payouts will be paused. Learn more
I'm trying to query the Checkout object of a customer and when checkout is completed, It would mean the order is placed and would display some UI accordingly. I've been using 2020-07 version of the Shopify Graphql app to query the details and was working fine at the beginning(probably around 07-2020) .But when I tried to run the same query again today from the Graphql app's playground, it's telling me that the Checkout is an unknown type. I switched to Storefront api but permission was denied. The query that I used is given below(I pass the checkout Id accordingly)
query($id: ID!){
node(id: $id) {
... on Checkout {
id
email
appliedGiftCards {
amountUsedV2 {
amount
currencyCode
}
balanceV2 {
amount
currencyCode
}
id
}
requiresShipping
completedAt
createdAt
currencyCode
lineItems(first: 10) {
edges {
node {
id
quantity
title
variant {
id
priceV2 {
amount
currencyCode
}
title
image {
altText
originalSrc
id
}
compareAtPriceV2 {
amount
currencyCode
}
weight
weightUnit
availableForSale
sku
requiresShipping
}
}
}
}
note
webUrl
updatedAt
totalTaxV2 {
amount
currencyCode
}
totalPriceV2 {
amount
currencyCode
}
taxesIncluded
taxExempt
subtotalPriceV2 {
amount
currencyCode
}
orderStatusUrl
order{
fulfillmentStatus
shippingAddress{
formatted
formattedArea
name
longitude
latitude
firstName
lastName
}
lineItems(first: 200) {
edges {
node {
title
quantity
variant {
image {
originalSrc
}
priceV2 {
amount
}
compareAtPriceV2 {
amount
}
}
}
}
}
financialStatus
phone
originalTotalPrice{
amount
}
currentTotalPrice{
amount
}
currentSubtotalPrice {
amount
}
subtotalPriceV2 {
amount
}
totalShippingPriceV2 {
amount
}
orderNumber
}
}
}
}
Learn these 5 things I had to learn the hard way with starting and running my own business
By Kitana Jan 27, 2023Would you love to unleash the unbridled power of the Google Shopping Channel into your sho...
By Gabe Jan 6, 2023How can you turn a hobby into a career? That’s what Emmanuel did while working as a wa...
By Skye Dec 30, 2022