ShopifySharp icon indicating copy to clipboard operation
ShopifySharp copied to clipboard

Order not coming in api

Open Joyjk opened this issue 1 year ago • 2 comments

in shopifysharp order data not coming

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; var orderService = new ShopifySharp.OrderService(URL, password); var orderList = await orderService.ListAsync(new ShopifySharp.Filters.OrderListFilter() { Ids = new List() { OrderId } });

i want to pick one order using Orderid but not pick a specific order Please give me a solution where i can get any order using order id Thank you

Joyjk avatar Apr 02 '24 08:04 Joyjk

Hey @Joyjk, which version of ShopifySharp are you using here?

nozzlegear avatar Apr 04 '24 21:04 nozzlegear

You should use Get instead of List if you are fetching a single order. From memory if you use List, you need to use Status = 'any' to retrieve archived orders.

clement911 avatar Apr 04 '24 22:04 clement911