Headless commerce and custom storefronts with Shopify APIs and SDKs
Hi, I am trying to create a checkout for a buy now button, but when I call checkoutCreate i get access denied. Even tho my app has unauthenticated_write_checkouts scope.
Full Error
{ "data": { "checkoutCreate": null }, "errors": [ { "message": "Access denied for checkoutCreate field. Required access: `unauthenticated_write_checkouts` access scope.", "locations": [ { "line": 141, "column": 9 } ], "path": [ "checkoutCreate" ], "extensions": { "code": "ACCESS_DENIED", "documentation": "https://shopify.dev/api/usage/access-scopes", "requiredAccess": "`unauthenticated_write_checkouts` access scope." } } ] }
Query
mutation CheckoutCreate($variantId: ID!) { checkoutCreate( input: { lineItems: [{ variantId: $variantId, quantity: 1 }] } ) { checkout { id webUrl lineItems(first: 5) { edges { node { title quantity } } } } } }
I am running the GraphQL app.
Scopes screenshot
I'm having the same issue
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