Development discussions around Shopify APIs
I have created a private app which uses both the Admin API and the Storefront API. I am creating products within my shop using the Admin API, and then trying to retrieve those products for display/sales with the Storefront API. I am running into an issue where when I add a product using the Admin API with the settings 'published': true, 'published_scope': 'global' the product is not available from my Storefront API, I have to login to the Shopify Store and "Make Products Available" on my API's Storefront.
It seems like if you create a product with an app that has the Storefront API enabled and you set the published_scope to global it should be available for that Storefront API. But that doesn't seem to be the case.
Is there a setting I am missing in the Admin API to make this possible? OR is there a Webhook I can setup so that when a product is created I can send out a notification to my App and somehow add the correct Storefront availability?
I found the answer I just needed to do a second API call to enable this product listing within my app - https://help.shopify.com/en/api/reference/sales_channels/productlisting#create
User | RANK |
---|---|
10 | |
5 | |
3 | |
3 | |
3 |
Thank you to everyone who participated in our AMA with Klaviyo. It was great to see so man...
By Jacqui May 30, 2023Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...
By Ollie May 25, 2023Summary of EventsBeginning in January of 2023, some merchants reported seeing a large amo...
By Trevor May 15, 2023