ListOrdersForCustomerAsync - ListFilter<Customer> parameter
See original GitHub issueHi,
v5.03 I’m trying to get all orders from a customer and I get 0 records, looking at the code, shouldn’t this function receive aListFilter<Order>
instead of a ListFilter<Customer>
?
public virtual async Task<IEnumerable<Order>> ListOrdersForCustomerAsync(long customerId, ListFilter<Customer> filter = null)
{
var req = PrepareRequest($"customers/{customerId}/orders.json");
if (filter != null)
{
req.QueryParams.AddRange(filter.ToQueryParameters());
}
var response = await ExecuteRequestAsync<List<Order>>(req, HttpMethod.Get, rootElement: "orders");
return response.Result;
}
Thank you
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Published in 5.0.4, you should now be able to use a
CustomerOrderListFilter
to set the status. Note that this class does not have aFields
orLimit
property because Shopify’s docs don’t indicate that the endpoint supports any of them.Great, thank you