Important notice about limitations in order.count method.
We want to let you know about an important update regarding the order.count API method.
Shopify has transitioned from the REST API to the GraphQL API, and the REST API is now considered
legacy. In the GraphQL API, a limitation has been introduced for queries that return the total number
of orders. Specifically, if a query with filters is supposed to return more than 10,000
orders, the response will still be capped at 10,000.
To work around this limitation and provide an accurate count, we make an additional request to the
REST API. However, the REST API does not support the following filters:
- financial_status_ids
- delivery_method
- tags
- customer_id
- customer_email
Because of this, when using any of these filters, the 10,000 order limit will apply.
Notice: This workaround is based on the legacy API, which can be removed by Shopify at any time. So if you're using order.count method, please don’t rely on it for anything critical.
We recommend adjusting your integrations to avoid depending on it long-term. Additionally, since this is a deprecated API, you may receive notifications from Shopify about using a deprecated method.