Which API can be used to get all order details based on the latest updated datetime of the individual orders? This way, the result set will fetch only unique orders based on the latest updated datetime only, which is our requirement.
Lets say, I created an Order on June 20, 2020 at 14:30:00 UTC.
I first updated it on June 25, 2020 at 15:40:00 UTC.
Again I updated this order by creating a fulfillment on June 27, 2020 at
16:00:00 UTC.
Now, when Iâll retrieve orders setting updated_at_min = June 15, 2020
00:00:00 UTC, in batches of 5 orders per call, how many times the above
order will appear in my result set?
In my case, Iâve total 494 orders in my account, first order creation date
being October 07, 2019 12:04:00 UTC.
When I execute the API call ( /admin/api/2019-10/orders.json?limit=5&updated_at_min=2019-07-19T00:04:46Z&status=any&order=updated_at%20asc)
inside a for-each loop, I get the total count of orders as 767. How come
this be possible when in total I have only 494 orders only?
Let me know if we can schedule a meeting to check this out together.
Any idea how we can do this through Graph API? Iâm really struggling to achieve a similar result using updated_at.
Thanks!
Dan
{ orders (first: 1, query: âupdated_at_min=â2021-10-21T23:39:20Zââ) {
edges {
node {
id
lineItems(first: 1){
edges {
node {
id
name
title
variant {
id
title
}
product {
id
title
}
vendor
sku
I havenât used GraphQL so I wouldnât be helpful here.
If youâre not getting an error like 400 bad request and just getting an empty result set. Remember that without explicit approval from Shopify you will only be searching through orders that have been placed in the last 60 days.