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
