FROM CACHE - en_header

Access denied for checkoutCreate field. Required access: `unauthenticated_write_checkouts` access sc

burps
Shopify Partner
1 0 0

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
Screenshot 2022-10-07 at 12.56.29.png

Reply 1 (1)
victorpotasso
New Member
2 0 1