Orders API Issue

Highlighted
Tourist
16 0 2

Hi Team,

I am a developer, I have an issue with Orders API, 

When I tried to get an order using the order number, I didn't get the feed

https://StoreName.myshopify.com/admin/api/2020-01/orders.json?name=221421&status=any

https://StoreName.myshopify.com/admin/api/2020-01/orders.json?fulfillment_status=unshipped

Order Status is Notfulfilled, Not a canceled order. If I tried with some other order number it works.

But I can't get this particular order in API

Shopify Order Id: 2907580334244

If I tried with Shopify Order Id I can able to get

https://StoreName.myshopify.com/admin/api/2020-01/orders/2907580334244.json

 
 

Shower.png

Can anyone please told why it not came,

Thanks,

0 Likes
Highlighted
Shopify Partner
648 46 130

Please review the API documentation regarding the various status options, for fulfillment and financial status --> https://shopify.dev/docs/admin-api/rest/reference/orders/order. As for an API request that queries by name, while I haven't done this in my practical usage of order lookups, I'm wondering if the leading # sign in the name might affect how the search is working...

0 Likes
Highlighted
Tourist
16 0 2

Hi @Greg_Kujawa 

But that order does not return if I did the search like below

https://storename.myshopify.com/admin/api/2020-01/orders.json?fulfillment_status=unshipped&financial...

Order fulfillment_status is Unshipped & financial_status is Paid.

shower1.PNG

 

But it not return that order

Thanks,

0 Likes
Highlighted
Shopify Partner
648 46 130

But if I look at the API docs, here is what I see in terms of fulfillment status values.

fulfillment_status	
"fulfillment_status": "partial"
The order's status in terms of fulfilled line items. Valid values:

fulfilled: Every line item in the order has been fulfilled.
null: None of the line items in the order have been fulfilled.
partial: At least one line item in the order has been fulfilled.
restocked: Every line item in the order has been restocked and the order canceled.

 

So I would therefore assume that fulfillment_status=null might be the query parameter to use, right?

 

0 Likes
Highlighted
Tourist
16 0 2

Hi @Greg_Kujawa 

As per document, following are fulfilment status

https://shopify.dev/docs/admin-api/rest/reference/orders/order#index-2020-10

1.PNG

 

In order to reduce API traffic we use unshipped as fulfilment status, which means Fulfilment status of null.

But that particular order fulfilment status is null, but it not return in API call.

Thanks,

 

 

 

0 Likes