Hello,
So I fetched “X-Shopify-Storefront-Access-Token” from meta tag with the name “shopify-checkout-api-token” on my page, when I put this as my header and run:
{
shop{
name
}
}
I get the name of the shop, but when I try to create a checkout:
mutation checkoutCreate($input: CheckoutCreateInput!) {
checkoutCreate(input: $input) {
checkout {
id
}
checkoutUserErrors {
code
field
message
}
}
}
I get:
“message”: “CheckoutCreate access denied”
What am I doing wrong?