How to get all the orders with fulfillment status as shipped using REST API in python?

Highlighted
Tourist
7 0 3

I am trying to get all the orders on my store which have the fulfillment status as shipped.

 

When I use the following in the web browser url, I am able to get the desired results:

https://<store_name>.myshopify.com/admin/api/2020-01/orders/search.json?query=fulfillment_status:shipped

However, when I try to use the following piece of python (Python 3.8.2) code, the json returned is empty. What am I missing?

>>> payload = {'fulfillment_status':'shipped', 'limit':100}
>>> response = requests.get( "https://%s.myshopify.com/admin/api/2020-01/orders.json" % (SHOP_NAME), auth=(API_KEY,PASSWORD), params=payload)
>>> response<Response [200]>
>>> response.json()
{'orders': []} 

 

0 Likes
Highlighted
Hello browntaped,
Refer below link this will help you:
https://community.shopify.com/c/Shopify-APIs-SDKs/How-can-I-get-all-orders-by-admin-orders-json-filt...
Want to modify or incorporate custom changes on store, Hire us
If helpful then please Like and Accept Solution .
Email: pallavi@oscprofessionals.com
Skype : oscprofessionals-87
Whats app
Free Website Review and advice for sale from Shopify Conversion Experts | Shopify Private App | Custom Theme Development | Custom Modifications In To Shopify Theme | Shopify SEO ; Digital Marketing & amp | Site Speed Optimization | Performance Site Audit
0 Likes