Is there a way to query for Customer Tags in Checkout Extensions?

Hi all!

I’ve been having trouble trying to figure out a way to get access to the customer tags in a checkout extension. It seems like I can not use the store front API because that requires an access token. Any other suggestions would be greatly appreciated

have you tried using the example from this page? The token should be prefetched s you should be fine

Hey Darian, welcome to the forums! I have not been on much lately as I have been busy with other tasks but I am back wanting to help again!

You could potentially apply them as a cart attribute before checkout and then if necessary remove them with something like Shopify Flow after an order is placed.

Has anyone any updates about this?

Been hoping for this feature for a long time and today another merchant requested a feature that required this.

The Storefront API requires a customerAccessToken not accessible from a checkout extension. It’s readable within some functions but no way to read it within a checkout extension without making a network call to a custom server that then makes another request to the GraphQL admin API, but that introduces another external dependency that has to be able to serve Shopify Plus levels of traffic.

It would be great to be able to fetch the customer (and their tags/metafields) from a checkout extension, either from the Storefront API or the checkout extension API.

Querying for customer tags isn’t currently allowed in checkout extensions, but we’re tracking this as a feature request

This would be very useful for us. I was surprised to not see it in useCustomer(). We query the customer’s tag to decide whether or not to show specific delivery options.