Re: What is the difference between fulfillableQuantity and unfulfilledQuantity? (GraphQL, LineItem)

Solved

What is the difference between fulfillableQuantity and unfulfilledQuantity? (GraphQL, LineItem)

Daniel-LiveChat
Shopify Partner
11 0 5

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 🤞

Accepted Solutions (2)

SBD_
Shopify Staff
1831 273 418

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 

View solution in original post

SBD_
Shopify Staff
1831 273 418

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 

View solution in original post

Replies 4 (4)

SBD_
Shopify Staff
1831 273 418

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 

Daniel-LiveChat
Shopify Partner
11 0 5

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?

SBD_
Shopify Staff
1831 273 418

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 

Daniel-LiveChat
Shopify Partner
11 0 5

Thanks a lot!