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

Solved
Shopify Partner
7 0 0

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 🤞

0 Likes
Highlighted

Success.

Shopify Staff
Shopify Staff
666 88 93

Hey @LiveChatInc,

 

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.

1 Like
Highlighted
Shopify Partner
7 0 0

Thanks for replying @scottydont! 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?

0 Likes
Highlighted

Success.

Shopify Staff
Shopify Staff
666 88 93

Hey @LiveChatInc 

 

is there any case when those two would not be equal?

I just ran a quick test. I don't believe so.

1 Like
Highlighted
Shopify Partner
7 0 0

Thanks a lot!

0 Likes