ShopifySharp
ShopifySharp copied to clipboard
GetCustomerOrders Returns No Orders
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.