Shopify python api can't get "fulfillable_quantity" for achived orders

Tiber
Tourist
12 3 0

Hi,

 I have orders where the total quantity was changed manually after an order is placed. I am trying to get the "fulfillable_quantity" for order items through the python api. It works for all orders except for order that have been archived. I am able to get all other information except for this field.

order= shopify.Order.find(2030989934634)

order.line_items[0].quantity

order.line_items[0].fulfillable_quantity # returns 0 even though in order on website shows the changed quantity 

 

0 Likes
Kevin_A
Shopify Staff
Shopify Staff
220 28 41

Hey @Tiber 

I just tested using our REST and GraphQL APIs using a simple client and was able to see fulfillable quantity with both regardless of the orders archival status. This makes me think this might be something specific with the Shopify Python API. If you are still having issues with this, I would suggest you open an issue on that repo. 

Kevin_A | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

0 Likes