Update/Set Publications/Sales Channels on product create

Hi!

So I’ve gotten the publication scope enabled for my app, but I can’t seem to figure out how to set the sales channels for a product.

I see in the documentation that I’m supposed to use the publishablePublish mutation, but nothing I do allows me to get past this error:

Error: GraphQL error: Your app doesn’t have a publication for this shop.

I have given read/write permissions to the app, in fact I’ve given the app ALL read/write possible just to make sure, and still no dice.

Any guidance would be greatly appreciated!

Thanks!

3 Likes

I figured it out.

The app needed storefront api access to set the product to Online Store.

3 Likes

Hi LePong,

I’m also experiencing this issue when building a custom app. Also I’m getting Oauth error missing_shopify_permission: read_publications when trying to install my app.

Would you mind letting me know how a custom app can get storefront api access?

Thanks.

1 Like

But how do I give my App storefront api access ?

@LePong Can you please tell me how can I give storefront api access to my app?