I am building a checkout UI extension in which I want to grab customer tags and based on customer tags, I want to proceed further with the logic.
Currently, there is no provision to grab the customer tags directly, based on this forum, I am storing the cart ID in the backend
But whenever I try to query the Cart and grab tags from the buyer identity (based on this article), I always get that the scope is required
but I have already updated my .toml file with the required scope and deployed it
This is my GraphQL query
query(`query getCartTags($cartId: ID!) {
cart(id:$cartId) {
buyerIdentity {
customer {
tags
id
}
}
}
}`, { variables: { cartId: `gid://shopify/Cart/${cartId}` } })
I already tried every method in the book, i.e
- Try uninstalling and installing again
- Try deploying the application
- Try clean the dev server and running the extension again locally
- added
unauthenticated_read_customer_tagsscope too


