@tomasw
I did all the steps but still why Quantity shipped showing 0 here as show in the screenshot. because of this, I am not able to figure our using API LineItem quantity_shipped is showing returning 0.
Hi @khungersumit
The quantity_shipped refers to the quantity shipped using the ShipHero App, as for the shipments made outside of ShipHero (Stores, Public API) they won’t affect this field.
For this purpose (shipping outside of ShipHero App) you will need to see the quantity_pending_fulfillment, quantity, and the shipments made if necessary.
Thanks!
Tom
I am facing some weird scenario PARTIAL_UPDATE CASE
1). I had an order with 2 lineitems (each item is of Quantity 2)
2). I created shipment of 1st line item with 2 quantity. (shipment_create mutation)
3). I removed the inventory (inventory_remove mutation)
4). Since I did a partial update of this order, so I used order_update_line_items for the above line item which I fulfilled in 1-3 steps.
Now when I checked the Order at dasbhoard it shows like following as shown in screenshot for that shipped line item and in API it is showing line this
“node”: {
“id”: “TGluZUl0ZW06NDI3Nzc2NTQ0”,
“sku”: “100-2”,
“product”: {
“id”: “UHJvZHVjdEluZm86Mjc1MDI3MTAw”,
“sku”: “100-2”,
“dimensions”: {
“weight”: “0.0051 lb”
}
},
“quantity”: 2,
“price”: “100.00”,
“product_name”: “AirPods”,
“fulfillment_status”: “fulfilled”,
“quantity_pending_fulfillment”: 2,
“quantity_shipped”: 0
}
Problem: Nowhere if you check the above API response it is still showing quantity_pending_fulfillment:2, what is the reason of this.
I was expecting it to be 0 since I have fulfilled both Quantity of this line item??
Hi @khungersumit!
That is correct, if you want to partially fulfill the order (only one line item) you will also need to update the quantity_pending_fulfillment when sending the order_update_line_items
Let me know if that doesn’t help.
Thanks again!
Tom
What my requirement is I just only want to know how many items have been shipped using the data which I get from Order Line items
will it be the correct way If if do like the following
I believe so @khungersumit
And also check the status in case it has been canceled instead.
You could also do the calculation of shipped quantities based on the shipments, but the approach mentioned above would be faster