通过API在Shopify中创建未发布的产品

时间:2016-02-18 22:29:56

标签: shopify

在Shopify管理员中,每个产品都有一系列复选框,允许用户在Online storePoint of saleBuy buttonMobile app之间切换。

这是它的样子:

enter image description here

我正在通过API将产品推送到Shopify。

如何将产品推送到网上隐藏的Shopify API?

我潜水深,以下是每种配置的设置:

---

Online store ✓
Point of sale
Buy button
Mobile app

published_at: "2016-02-18T17:14:00-05:00",
published_scope: "web",

---

Online store ✓
Point of sale ✓
Buy button
Mobile app

published_at: "2016-02-18T17:14:00-05:00",
published_scope: "global",

---

Online store ✓
Point of sale ✓
Buy button ✓
Mobile app

published_at: "2016-02-18T17:14:00-05:00",
published_scope: "global",

---

Online store ✓
Point of sale ✓
Buy button ✓
Mobile app ✓

published_at: "2016-02-18T17:14:00-05:00",
published_scope: "global",

---

Online store ✓
Point of sale
Buy button ✓
Mobile app ✓

published_at: "2016-02-18T17:14:00-05:00",
published_scope: "web",

---

Online store 
Point of sale
Buy button ✓
Mobile app ✓

published_at: null,
published_scope: "web",

---

Online store 
Point of sale
Buy button
Mobile app

published_at: null,
published_scope: "web",

---

我对测试的一般观察如下。

  • 无法检测产品是否已为产品启用Buy buttonMobile app
  • 无法在API中切换这些字段。
  • published_scope属性有两个选项webglobal

1 个答案:

答案 0 :(得分:1)

隐藏所有频道的产品(webpoc)。

在产品申请中包含此内容。

    "published": false,
    "published_scope": "web",