API无法返回自动类型的商品系列的数据

Topic summary

用户遇到通过 REST API 端点 /admin/api/2025-04/custom_collections.json?ids= 获取商品系列数据时的问题:

问题描述:

  • 该接口只能返回手动类型的商品系列
  • 无法返回自动类型的商品系列数据

解决方案:

  • 需要使用 Shopify Admin GraphQL API 的 collections 查询
  • 添加过滤条件 collection_type:smart 来获取自动(智能)商品系列
  • REST API 的 custom_collections 端点仅用于手动系列,自动系列需要通过不同的 API 方法访问
Summarized with AI on October 24. AI used: claude-sonnet-4-5-20250929.

通过 /admin/api/2025-04/custom_collections.json?ids= 接口,获取对应collection数据的时候,无法返回商品系列类型为自动的,但可以正常返回手动的。请问应该如何解决?十分感谢

To get smart collections using the Shopify Admin GraphQL API, you should use the collections query with the filter collection_type:smart. This will return all automated (smart) collections in your store.