Discussing APIs and development related to customers, discounts, and order management.
Hi, is it possible to update Customer tags, metafield ?
via Storefront API, Customer API or with some any other news
Solved! Go to the solution
This is an accepted solution.
My mistake, thanks for the clarification! That's not available using Storefront API or the new Customer API. If you're building on Hydrogen, one work around would be to hit the Admin API under the hood.
Scott | Developer Advocate @ Shopify
but this is admin API.
i was asking whether it is by these 2:
via Storefront API, Customer API (new updates, if i missed something).
I am using react hydrogen storefront.
This is an accepted solution.
My mistake, thanks for the clarification! That's not available using Storefront API or the new Customer API. If you're building on Hydrogen, one work around would be to hit the Admin API under the hood.
Scott | Developer Advocate @ Shopify
How would u hit the Admin API under the hood
The process might look like passing a (verified) customer ID to a route which calls the Admin API to update customer tags. Be sure to keep this on the server side (in a loader or action).
Scott | Developer Advocate @ Shopify