How to format a REST request to retrieve orders created after a specific date

Please provide an example of formatting a request to retrieve orders of any status created after a specific date.

Thanks for your help.

Hi @t3chlady ,
This is Theodore from PageFly - Shopify Page Builder App.

Here’s an example of formatting a request to retrieve orders of any status created after a specific date using Shopify’s Admin API:

Method: GET

URL: /admin/api/2024-04/orders.json?status=any&created_at_min=2023-11-21T00:00:00-07:00

Parameters:

  • status=any - This retrieves orders regardless of their current status (open, closed, cancelled, etc.)
  • created_at_min=2023-11-21T00:00:00-07:00 - This specifies the date and time after which you want to retrieve orders.
    • Replace 2023-11-21T00:00:00-07:00 with your desired date and time in YYYY-MM-DDTHH:MM:SSZ format.
    • Make sure to include the time zone offset (e.g., -07:00 for PST).

Best regards,
Theodore | PageFly

Thanks so much. I truly appreciate your reply. I was not able to find a reference to “created_at_min” in the documentation.

I forgot to ask. Is there a “created_at_max” option?