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

Create unpublished product in Shopify via API

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

这是它的样子:

我正在通过 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",

---

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

在所有渠道(webpoc)隐藏产品。

将其包含在产品请求中。

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