Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
Wondering how the variant id of the form mentioned in the FAQ can be obtained via the Storefront API.https://help.shopify.com/en/manual/products/variants/find-variant-id
By the looks of it I am getting something of the form
1. Is there a way to translate between the 2.
2. Obtain the variant id as mentioned on the FAQ via the Storefront API(I am using the Buy IOS SDK).
Go to the solution
This is an accepted solution.
Base64 decode or encode.
Decoding Z2lkOi8vc2hvcGlmeS9Qcm9kdWN0VmFyaWFudC8zNzk4NTc2MjgzNjY2Mw== will give you gid://shopify/ProductVariant/37985762836663
View solution in original post