Shopify REST API:已付款+履行和完全退款的订单无法通过过滤器检索(但可以通过ID)
该要求是定期使用REST API从Shopify下载所有新履行或退款的订单。已尝试使用参数进行修改的日期和状态。这是终点,。
/admin/api/ {{api_version} }/orders.json
但是,以下任何一个状态中的订单似乎总是从结果中排除:
- 付款状态=付费& ExhiLlentStatus =履行的
- 付款状态=
在Shopify Admin UI中退款,这些似乎在订单列表中亮了。
我认为这些订单也没有被存档,因为即使是最近(今天的)订单也被排除在外,而且可以使用此端点通过订单ID检索它们:
/admin/api/{{api_version}}/orders/orders/{ }}
。
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是答案:以上两个州的订单具有“封闭”的总体状态(而不是“开放”或“取消”)。封闭的订单似乎在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.