我想检查该产品是否在Shopify的在线商店中可用。在Shopify中添加产品时,我们在销售渠道中有一个选项->“在线商店”。我想检查我的产品是否在online sales
中可用。以及online sales
中可用的产品列表。
我已在下面查看了链接,以获得online store
表示销售渠道产品。但这不是行不通的。
https://shopify.dev/docs/admin-api/rest/reference/sales-channels/productlisting
https://help.shopify.com/en/manual/online-sales-channels#available-online-sales-channels
我还附上了以下参考图像。
答案 0 :(得分:0)
你不能那样做。您需要使用产品API并验证published_at
字段中是否有值。
更多详细信息-https://shopify.dev/docs/admin-api/rest/reference/products/product