ShopifySharp icon indicating copy to clipboard operation
ShopifySharp copied to clipboard

GetCustomerOrders Returns No Orders

Open shafaqat-ali-cms365 opened this issue 1 year ago • 6 comments

I am trying to get customer orders, here is my code

var filter = new CustomerSearchListFilter { //Searches for a customer from the United States with a name like 'Jane'. Query = $"email:{emailAddress}" }; var customer = (await customerService.SearchAsync(filter)).Items.FirstOrDefault(); if (customer != null) { var customerOrders =await customerService.ListOrdersForCustomerAsync(customer.Id.Value); }

but it is returning 0 orders.

shafaqat-ali-cms365 avatar Jul 15 '24 01:07 shafaqat-ali-cms365