Customer GET API - Updated On filter returning all Customers

AnandShukla
Visitor
1 0 0

Hello, 


We are trying to Query customers updated on 01-12-2021 using the below URL.

https://XXXXX.myshopify.com:443/admin/api/2021-07/customers.xml?limit=250&fields=id,email,updated-at...


The total count of customers updated on 01-12-2021 is 389.

The URL is responding with first 250 customers. We are trying to get the rest of the customers using the Next URL from the last response.


https://XXXXX.myshopify.com/admin/api/2021-07/customers/count.xml?limit=250&fields=id%2Cemail%2Cupda...


However, the count of customers returned on second page is 128778. It keeps on looping further import, and almost tries to import all customers. This is not expected behaviour.


Looks like Shopify does not provide support for APIs and we are directed here. Appreciate any help from the community in getting this resolved. Also welcome any inputs in better managing pagination for large no of customers.

Thanks,
Anand Shukla
anand.shukla@cihconsulting.co.uk

Replies 0 (0)