Hello
I want to fetch customers with a “VIP” tag and created in the last 30 days. i have tried customer?search=query but have not found how to create a query.
$query = urlencode(‘query=customer_tag:prospect+updated_at:’.$days_ago);
$shopUrl.‘/admin/api/2023-01/customers/search.json?’.$query
I have tried the above URL but not giving relevant output.
Thank you
Hello,
Have you tried just ‘tag:VIP’ instead of ‘customer_tag:VIP’
I actually don’t know the difference between those 2
Sorry, i have use the Prospect tag in above query .
$query = urlencode(‘query=customer_tag:VIP+updated_at:’.$days_ago);
$shopUrl.‘/admin/api/2023-01/customers/search.json?’.$query
Yes I have tried with VIP tags but the issue is not with tags, I can able fetch customers based on tags but my updated_at field is not working.
It’s fetching all customers that have VIP tags.