Publishing products through the API

gcandal
Tourist
4 0 0

Hi,

 

I'm trying to understand if this is feasible:

- "ProductCreatorApp" creates products through the Admin API

- "CoolApp" uses the Storefront API to work with those products (using https://github.com/Shopify/js-buy-sdk/ , but I guess that's not relevant)

- The shop is not a Shopify Plus store

 

Right now I believe it's not possible, because:

  • Products created through the Admin API are only available by default in the web and POS channels
  • Publishing to another channel requires a Shopify Plus store and the "write_publications" and "product_listings" access scopes

 

What are the alternatives? What I can think of:

  • "CoolApp" must somehow receive the ID of the newly published product and use the "publishablePublishToCurrentChannel" GraphQL mutation
  • "CoolApp" must somehow receive the ID of the newly published product and use the "ProductListing" REST API
  • Use Shopify Plus

 

Right now, the only thing I can do is using the shop's admin panel to:

  1. Go to admin/products
  2. Go to a product
  3. Click Sales channels and apps
  4. Enable "CoolApp"

 

Is there anything I'm missing?

Thanks in advance.

0 Likes