当我通过published_at ( 产品更新API )使用以下JSON (id.json PUT)将该JSON设置为未来日期时。
{
"product": {
"id": 632910392,
"published": false,
"published_at": "2015-01-01T00:00:00+11:00"
}
}它返回200和下面的JSON
{
"product": {
"body_html": "something",
"created_at": "2014-01-07T14:49:00+11:00",
"handle": "test-product",
"id": 206281997,
"product_type": "MERCHANDISE",
"published_at": "2015-01-01T00:00:00+11:00",
"published_scope": "",
},
/* some other JavaScript properties*/
}Shopify接受了发布日期,但产品仍然是可见的。下面是产品可见性的屏幕截图

但是,如果我从请求JSON中删除了"published_at":"2015-01-01T00:00:00+11:00“,则产品更改为隐藏。
如何通过Shopify API设置发布日期?有可能是Shopify API的错误吗?
谢谢你的帮助。
发布于 2014-01-16 02:16:19
我已经通过使用私有API找到了一个解决方案。我测试过了。使用publish_on而不是published_at。请参阅Shopify论坛http://ecommerce.shopify.com/c/shopify-apis-and-technology/t/setting-product-published-date-via-shopify-api-doesn-t-work-properly-173469
https://stackoverflow.com/questions/21150720
复制相似问题