Solved

Update/Set Publications/Sales Channels on product create

LePong
Excursionist
25 1 19

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!

Accepted Solution (1)

LePong
Excursionist
25 1 19

This is an accepted solution.

I figured it out.

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

View solution in original post

Replies 4 (4)

LePong
Excursionist
25 1 19

This is an accepted solution.

I figured it out.

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

yesyo
Shopify Partner
5 0 1

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.

Wakil_eFoli
Shopify Partner
34 1 3

But how do I give my App storefront api access ?

Wakil_eFoli
Shopify Partner
34 1 3

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