FROM CACHE - zh-cn_header
此社区已转向点对点支持。Shopify 支持团队将不再为此社区提供服务。我们建议您与其他商家和合作伙伴建立联系以获取帮助,并分享您的经验! 如发现有任何违反我们行为准则的行为或您希望删除的内容,欢迎继续举报。

产品系列的接口获取问题咨询

产品系列的接口获取问题咨询

luohe
Shopify Partner
9 0 0
哈喽; Shopify商家,会在后台设置产品系列,从接口里,获取「产品系列」的字段数据。 后台的产品系列,若后台设置了产品条件,则,数据接口不返回;若未设置产品条件,则接口正常同步。请问,需要添加什么参数,才能获取,已经设置了产品条件的产品系列的数据呢? English: dear all Shopify merchants will set product series in the background and obtain the field data of "product series" from the interface. For the product series in the background, if the product conditions are set in the background, the data interface will not return; If the product condition is not set, the interface is synchronized normally. What parameters need to be added to obtain the data of the product series for which the product conditions have been set? Looking forward to your reply, thank you very much!
4 条回复4

Simonsron
Shopify Partner
699 87 122

需要看看你的产品条件具体是什么

banned
longchuan
Shopify Partner
3 0 1

跟产品条件内容没关系,只要产品条件有填写内容都无法同步下来,我发个样例:

现在后台建立了7个产品系列:

longchuan_0-1678846041779.png

 

这是我们的同步请求:
http://10.30.10.224/2001/jstyikantest.myshopify.com/admin/api/2020-07/custom_collections.json?&since...

响应如下,只返回了第二个绿框的内容:
{"custom_collections":[{"id":207495266470,"handle":"frontpage","title":"主页","updated_at":"2022-12-20T08:38:21-05:00","body_html":null,"published_at":"2020-07-15T21:41:18-04:00","sort_order":"best-selling","template_suffix":null,"published_scope":"web","admin_graphql_api_id":"gid:\/\/shopify\/Collection\/207495266470"},{"id":208736354470,"handle":"first-manual-collection","title":"First Manual Collection","updated_at":"2022-12-20T07:47:38-05:00","body_html":"\u003cp\u003e5000 songs in your pocket\u003c\/p\u003e","published_at":"2020-07-22T04:49:46-04:00","sort_order":"best-selling","template_suffix":"","published_scope":"web","admin_graphql_api_id":"gid:\/\/shopify\/Collection\/208736354470","image":{"created_at":"2020-07-22T04:49:45-04:00","alt":null,"width":58,"height":58,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/0432\/3855\/5814\/collections\/crawlRecommend.png?v=1595407786"}},{"id":212946780326,"handle":"macbooks","title":"Macbooks","updated_at":"2022-12-20T07:47:38-05:00","body_html":null,"published_at":"2020-08-14T08:57:36-04:00","sort_order":"best-selling","template_suffix":null,"published_scope":"web","admin_graphql_api_id":"gid:\/\/shopify\/Collection\/212946780326"},{"id":212946845862,"handle":"macbooks-1","title":"Macbooks","updated_at":"2022-12-14T01:41:40-05:00","body_html":null,"published_at":"2020-08-14T08:57:45-04:00","sort_order":"best-selling","template_suffix":null,"published_scope":"web","admin_graphql_api_id":"gid:\/\/shopify\/Collection\/212946845862"},{"id":213942698150,"handle":"夏季新品系列","title":"夏季新品系列","updated_at":"2022-12-14T01:41:40-05:00","body_html":"","published_at":"2020-08-19T07:36:55-04:00","sort_order":"best-selling","template_suffix":"","published_scope":"web","admin_graphql_api_id":"gid:\/\/shopify\/Collection\/213942698150"},{"id":292691968166,"handle":"aaaaa","title":"AAAAA","updated_at":"2022-12-14T05:18:07-05:00","body_html":"11111","published_at":"2022-12-14T05:18:07-05:00","sort_order":"best-selling","template_suffix":"","published_scope":"web","admin_graphql_api_id":"gid:\/\/shopify\/Collection\/292691968166"}]}

 

luohe
Shopify Partner
9 0 0

跟产品条件内容没关系,只要产品条件有填写内容都无法同步下来,我发个样例:

现在后台建立了7个产品系列:

luohe_0-1678948779068.png

 

 

这是我们的同步请求:
http://10.30.10.224/2001/jstyikantest.myshopify.com/admin/api/2020-07/custom_collections.json?&since...

响应如下,只返回了第二个绿框的内容:
{"custom_collections":[{"id":207495266470,"handle":"frontpage","title":"主页","updated_at":"2022-12-20T08:38:21-05:00","body_html":null,"published_at":"2020-07-15T21:41:18-04:00","sort_order":"best-selling","template_suffix":null,"published_scope":"web","admin_graphql_api_id":"gid:\/\/shopify\/Collection\/207495266470"},{"id":208736354470,"handle":"first-manual-collection","title":"First Manual Collection","updated_at":"2022-12-20T07:47:38-05:00","body_html":"\u003cp\u003e5000 songs in your pocket\u003c\/p\u003e","published_at":"2020-07-22T04:49:46-04:00","sort_order":"best-selling","template_suffix":"","published_scope":"web","admin_graphql_api_id":"gid:\/\/shopify\/Collection\/208736354470","image":{"created_at":"2020-07-22T04:49:45-04:00","alt":null,"width":58,"height":58,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/0432\/3855\/5814\/collections\/crawlRecommend.png?v=1595407786"}},{"id":212946780326,"handle":"macbooks","title":"Macbooks","updated_at":"2022-12-20T07:47:38-05:00","body_html":null,"published_at":"2020-08-14T08:57:36-04:00","sort_order":"best-selling","template_suffix":null,"published_scope":"web","admin_graphql_api_id":"gid:\/\/shopify\/Collection\/212946780326"},{"id":212946845862,"handle":"macbooks-1","title":"Macbooks","updated_at":"2022-12-14T01:41:40-05:00","body_html":null,"published_at":"2020-08-14T08:57:45-04:00","sort_order":"best-selling","template_suffix":null,"published_scope":"web","admin_graphql_api_id":"gid:\/\/shopify\/Collection\/212946845862"},{"id":213942698150,"handle":"夏季新品系列","title":"夏季新品系列","updated_at":"2022-12-14T01:41:40-05:00","body_html":"","published_at":"2020-08-19T07:36:55-04:00","sort_order":"best-selling","template_suffix":"","published_scope":"web","admin_graphql_api_id":"gid:\/\/shopify\/Collection\/213942698150"},{"id":292691968166,"handle":"aaaaa","title":"AAAAA","updated_at":"2022-12-14T05:18:07-05:00","body_html":"11111","published_at":"2022-12-14T05:18:07-05:00","sort_order":"best-selling","template_suffix":"","published_scope":"web","admin_graphql_api_id":"gid:\/\/shopify\/Collection\/292691968166"}]}

 

luohe
Shopify Partner
9 0 0

平台那边的产品系列,不填条件的,都能正常返回,只有在产品条件字段里面设置了数据,接口就不返回了。很奇怪