为什么Shopify api不会从商店检索订单?

时间:2018-04-17 11:54:29

标签: c# asp.net shopify

我使用shopify API和ShopifSharp c#library(https://github.com/nozzlegear/ShopifySharp)。我手动创建订单并将其状态“履行”。现在我只想给这个命令,但我得到Count =。 我的代码很简单:

var service = new OrderService(product.ShopifyShopName, shopifyAccessToken);
 IEnumerable<Order> orders = await service.ListAsync(); // count = 0       
 var paidOrders = orders.Where(x => x.FulfillmentStatus.Equals("fulfilled"));

它在状态为“未实现”时检索订单,但为什么?我使用开发商店来实现这个目标

1 个答案:

答案 0 :(得分:0)

您好默认shopify 检索订单列表(默认为OPEN订单,对所有订单使用status = any)

了解更多信息,请点击此处 https://help.shopify.com/api/reference/order#index

感谢希望它会有所帮助。