Update/Set Publications/Sales Channels on product create

Solved
LePong
Excursionist
25 1 10

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!

LePong
Excursionist
25 1 10

This is an accepted solution.

I figured it out.

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

yesyo
New Member
3 0 0

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.

0 Likes