Get customers first order date / Filter all orders by customer id

tobym
New Member
1 0 0

Hi,

I need to the get a customers first order date, I have checked all through the api and there does not seem to be an easy way to do this without iterating through every order.

In the customer object it does has

last_order_id
orders_count

but not first order id

I have also checked the filtering on the orders api and you cannot filter by a particular customer id?

https://docs.shopify.com/api/reference/order

Is there any other way to do this or am I missing something.

thanks

Toby

 

0 Likes
unlock
New Member
5 0 0

We need the First Order Date and the Last order date values too. Any insights?

0 Likes