Re: write_publications and read_publications access

write_publications and read_publications access

Josh_Davis1
Shopify Partner
17 0 17

Is there any way to create an app, either (private or public) with read_publications and/or write_publications access? Does one need special approval for this access? There seems to be no visible option for these permissions when creating a private app and the usual OAUTH procedure yields an error:

 

Oauth error missing_shopify_permission: write_publications, read_publications

 

I'd like to automate publishing products to Facebook and my the Storefront API, but so far I've got nothing.

 

Replies 10 (10)

KishlorN
Shopify Partner
8 0 7

any update ?

Requesting these scopes still ends up with the same error:

Oauth error missing_shopify_permission: write_publications, read_publications

 

 

olivert
Explorer
51 12 19

Hi mate

These scopes are currently unavailable.

You can try and request them from shopify support

Similar thread below:

 https://community.shopify.com/c/Shopify-APIs-SDKs/write-publications-and-read-publications-access/td...

 

juan3211
Shopify Partner
126 0 40

Any update of this bug after one year, shopify?

juan3211
Shopify Partner
126 0 40

still waiting....

 

We only need to read products that a sales channel has published. I even dont need to publish them

It is incredible that Shopify doesnt let us at least READ what products are in each channel. 

it is incredible!!!!

SimonWatt
Shopify Partner
1 0 1

Another vote for this. Considering that managing the channels a product is published to is an integral part of using the admin dashboard it is insane it can't be done via the admin API... especially when the functionality exists, it's just turned off for public apps.

 

Please Shopify allow read_publications and write_publications access for public apps! An app I was going to develop is almost unusable without this functionality.

guest4
Shopify Partner
101 7 24

Up until recently, this was an access scope that was limited to Shopify Plus. At some point over the past few months, it became generally available. This change may have coincided with the release of the Catalogs API, which seems to make use of this functionality. I was not able to easily find any other mention of it.

 

Read more:

juan3211
Shopify Partner
126 0 40

Hi, are you sure that this is related to "I'd like to automate publishing products to Facebook" ?

 

In my case I want only to KNOW which products are published in each sales channel, and I can not see how this new API could help me.

 

Are you sure?

guest4
Shopify Partner
101 7 24

This can be done with GraphQL:

{
  publication(id: "gid://shopify/Publication/123456") {
    products(first: 10) {
      edges {
        node {
          id
          handle
        }
      }
    }
  }
}

 

To get the publications with GraphQL:

{
  publications(first: 10) {
    edges {
      node {
        id
        name
      }
    }
  }
}

Note: The name field in the above query is deprecated.

 

To check if a collection is published on a specific publication:

{
  collectionByHandle(handle: "acme-widgets") {
    id
    handle
    publishedOnPublication(publicationId: "gid://shopify/Publication/12345")
  }
}

 

guest4
Shopify Partner
101 7 24

GraphQL Mutation

mutation publishablePublish($id: ID!, $input: [PublicationInput!]!) {
  publishablePublish(id: $id, input: $input) {
    userErrors {
      field
      message
    }
  }
}

 

GraphQL Variables

{
  "id": "gid://shopify/Product/123456",
  "input": [
    {
      "publicationId": "gid://shopify/Publication/123456"
    }
  ]
}

 

Additional reading:

 

juan3211
Shopify Partner
126 0 40

Sorry, now yes!, thanks a lot, we can, at least, read this information, great.