Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Order not coming in api #1049

Open
Joyjk opened this issue Apr 2, 2024 · 2 comments
Open

Order not coming in api #1049

Joyjk opened this issue Apr 2, 2024 · 2 comments
Labels

Comments

@Joyjk
Copy link

Joyjk commented Apr 2, 2024

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

@nozzlegear nozzlegear added the bug label Apr 4, 2024
@nozzlegear
Copy link
Owner

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

@clement911
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants