Shopify REST API:已付款+履行和完全退款的订单无法通过过滤器检索(但可以通过ID)

发布于 2025-02-05 14:48:13 字数 714 浏览 4 评论 0原文

该要求是定期使用REST API从Shopify下载所有新履行或退款的订单。已尝试使用参数进行修改的日期和状态。这是终点,

/admin/api/ {{api_version} }/orders.json

但是,以下任何一个状态中的订单似乎总是从结果中排除:

  • 付款状态=付费& ExhiLlentStatus =履行的
  • 付款状态=

在Shopify Admin UI中退款,这些似乎在订单列表中亮了。

我认为这些订单也没有被存档,因为即使是最近(今天的)订单也被排除在外,而且可以使用此端点通过订单ID检索它们:

/admin/api/{{api_version}}/orders/orders/{ }}

UI中如何出现无法访问的订单:

The requirement is to periodically download all newly fulfilled or refunded orders from Shopify using the REST API. This has been attempted using parameters for modified date and status. This is the endpoint, and documentation is here.

/admin/api/{{api_version}}/orders.json

However, orders which are in either of the following states seem to always be excluded from the results:

  • Payment Status=Paid & FulfillmentStatus=Fulfilled
  • Payment Status=Refunded

In the Shopify admin UI, these appear greyed out in the order list.

I don't think these orders have become archived because even very recent (today's) orders are excluded, and also they can be retrieved by order ID using this endpoint:

/admin/api/{{api_version}}/orders/{{order_id}}.json

Is there any way to incrementally query for orders in these states, i.e. without knowing the IDs?

How the inaccessible orders appear in the UI:
enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

傾城如夢未必闌珊 2025-02-12 14:48:13

这是答案:以上两个州的订单具有“封闭”的总体状态(而不是“开放”或“取消”)。封闭的订单似乎在UI中亮了。

通过列表端点查询订单时,您可以指定一个状态参数,但是如果您不shopify应用“打开”的默认值,则排除了封闭订单。指定状态=“封闭”以仅访问封闭订单,或者状态=“任何”以访问所有状态。

This is the answer: orders in the above 2 states have an overall status of "closed" (as opposed to "open" or "cancelled"). Closed orders appear greyed out in the UI.

When querying for orders via the List endpoint, you can specify a status parameter, but if you do not Shopify applies a default of "open", so closed orders are excluded. Specify status="closed" to access closed orders only, or status="any" to access all statuses.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文