get orders by api with 2 parameters, at least one is not respected

Topic summary

A user is experiencing issues with the Shopify Orders API when using two parameters together: status=any and since_id=1002. Despite setting since_id=1002, order 1001 still appears in the results, suggesting the since_id parameter is not being respected.

Response provided:

  • The issue stems from confusing order ID with order number
  • The since_id parameter requires the internal order ID (a long numeric value like 6562343719626), not the order number (1002)
  • Using the correct order ID in the parameter should resolve the filtering issue

Example format: https://******.myshopify.com/admin/2023-10/orders.json?since_id=6562343719626

The discussion appears resolved with clarification about the correct parameter value to use.

Summarized with AI on November 7. AI used: claude-sonnet-4-5-20250929.

Translator

if i call api/2024-04/orders.json?status=any&since_id=1002 appears order 1001. Someone with same issue?

Hi,

its actually id not order number.

please take the id for the order 1002 and use id in parameters.

then 1001 will not come.

EXAMPLE:

https://******.myshopify.com/admin/api/2023-10/orders.json?since_id=6269173432656