A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hello folks!
I'm currently exploring LineItem object and I found those two fields there: fulfillableQuantity and unfulfilledQuantity
Could someone explain the difference between those two fields? I tried many Orders, but I never was able to have different values for those two fields. I tried to make one of the unfulfilled items not available in stock to check if it changes anything, but no luck. If those two fields always return the same value, then why there are two of them? Is it some kind of backward compatibility?
thanks in advance 🤞
Solved! Go to the solution
This is an accepted solution.
Hey @Daniel-LiveChat,
fulfillableQuantity is the total number of units to fulfill, unfulfilledQuantity is the number of units not yet fulfilled.
If an order was placed for 10 of the same item, and one was fulfilled, unfulfilledQuantity would become 9.
Scott | Developer Advocate @ Shopify
This is an accepted solution.
Hey @Daniel-LiveChat
is there any case when those two would not be equal?
I just ran a quick test. I don't believe so.
Scott | Developer Advocate @ Shopify
This is an accepted solution.
Hey @Daniel-LiveChat,
fulfillableQuantity is the total number of units to fulfill, unfulfilledQuantity is the number of units not yet fulfilled.
If an order was placed for 10 of the same item, and one was fulfilled, unfulfilledQuantity would become 9.
Scott | Developer Advocate @ Shopify
Thanks for replying @SBD_! Follow-up question:
If an order was placed for 10 of the same item, and one was fulfilled, unfulfilledQuantity would become 9.
Would fulfillableQuantity become 9 as well in such a situation? If yes, then is there any case when those two would not be equal?
This is an accepted solution.
Hey @Daniel-LiveChat
is there any case when those two would not be equal?
I just ran a quick test. I don't believe so.
Scott | Developer Advocate @ Shopify
Thanks a lot!