App reviews, troubleshooting, and recommendations
I successfully created a cart per customer but somehow I can't seem to get the cart details using the cart query?
What am I missing? How to check the payment details of the cart?
Here's the query:
query { cart( id: "CART_ID_HERE" ) { id createdAt updatedAt lines(first: 10) { edges { node { id quantity merchandise { ... on ProductVariant { id } } attributes { key value } } } } attributes { key value } cost { totalAmount { amount currencyCode } subtotalAmount { amount currencyCode } totalTaxAmount { amount currencyCode } totalDutyAmount { amount currencyCode } } buyerIdentity { email phone customer { id } countryCode deliveryAddressPreferences { ... on MailingAddress { address1 address2 city provinceCode countryCodeV2 zip } } } } }
Result:
{ "data": { "cart": null } }
Also,
query checkoutURL { cart(id: "CART_ID_HERE") { checkoutUrl } }
I can't seem to get the checkout url too.
{ "data": { "cart": null } }
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025