Querying App ID and Fulfillment Status using Rest API

ozzyonfire
Shopify Partner
23 1 10

It doesn't seem like we can use the attribution_app_id and fulfillment_status on the admin/order.json endpoint, even though it's in the documentation

https://{shop-name}.myshopify.com/admin/api/2021-07/orders.json?status=any&fulfillment_status=shipped&attribution_app_id={appId}

The above request will yield no results. It turns out, you can change the "fulfillment_status" filter to partial, shipped, unshipped, or unfulfilled and still get 0 results - but changing it to "any" seems to work.

Oddly enough, I can run the same query in my browser (from the admin backend) and the query works! I will get a JSON response will all the orders I need. 

https://{shop-name}.myshopify.com/admin/orders.json?status=any&fulfillment_status=shipped&attrbution_app_id={app-id}

I've tried the API call using a couple different API versions, but they all behave the same. Am I missing something? 

 

Replies 4 (4)
niallmccune
New Member
2 0 1

Did you get this resolved? 

I'm seeing exactly the same issue

ozzyonfire
Shopify Partner
23 1 10

Unresolved. I had to iterate over all the orders and filter them out on my side by App ID. Not ideal....

niallmccune
New Member
2 0 1

No worries, thanks for the reply. I'm having to do the same. 

Any Shopify devs have any ideas? 

safvan
Tourist
4 0 1

I have tried and got the correct response. I have filtered using app id and got the expected result

var orders = await service.ListAsync(new OrderListFilter
{
Limit = 20,

AttributionAppId = "appid"

});

 

But my concern is how can I get the app id from the code itself, is there any admin API ?? or something like that