Currently Im trying to integrate FulFillment Orders.
So, Im using this Object
And every time when i make a call i have same amount in totalQuantity field and remainingQuantity field.
I don't recieve any answer on my previos question and seems part of API, which associated with fulFullment service broken in few places
Can you please check it or fix?
From reading the documentation on those two fields:
remainingQuantity: The number of units remaining to be fulfilled
totalQuantity: The total number of units to be fulfilled
I would suggest that if you part-fulfil a line item the remainingQuantity is what is still left to be fulfilled.
Let's say Line 1 is 10 units - but you only have 2 units in stock - so you fulfill those 2 immediately.
That would leave:
Whereas if you had enough in stock and you fulfilled all 10 it would be:
If you haven't yet fulfilled ANY of the units then you'd get the response that you have:
That's just my reading of it though - someone in the Shopify team may be able to provide some more clarity.
Thanks for you answer, but unfortunately thats not work this way
Actually Im trying to send fulfill request for a few items and both numbers always return same amount.
For example line 1 is 10 units
Im trying to send fulfill request for two of them and as result
Will try to go throught next steps...
If you are still experiencing this and feel the API is returning unexpected data or exhibiting behavior, feel free to head to the Partner Dashboard> Support> Contact Partner Support, then select the option to Report an issue.
Please include detailed steps to replicate, examples of where you are getting errors as well as x-request-id headers, request body, and links to the documentation being used. There is no guarantee that all requests or bugs reported here are answered directly, however any additional information you can provide around this issue would be very helpful!
For future readers:
The remainingQuantity is how many unfulfilled units belong to the fulfillment order line item. The totalQuantity is the total quantity of the items for that fulfillment order line item.
Sound confusing? It is.
The reason that we distinguish between the two is because once a fulfillment order is created, a fulfillment service can create multiple fulfillments for it. Only once all of the fulfillment order line items on the fulfillment order have been fulfilled, will the fulfillment order be closed.
This could happen if a customer orders 3 items and the fulfillment service ships one today and the other 2 next week.
In this case, the remainingQuantity is the number of items remaining to be fulfilled. Basically it's a counter.
To test this yourself:
Notes: In step 3 you'll see a remainingQuantity of 2 and totalQuantity of 2. In step 5 you'll see a remainingQuantity of 1 and a totalQuantity of 2.
Do this: Use the remainingQuantity field to determine how many items still need to be fulfilled. Do not do this: Use the totalQuantity to determine how many items need to be fulfilled. You risk shipping more items than were ordered.