“request_id”: “6036605dded34c72c0f5624c”
For Shipments, the most of them have same number for quantity and quantity_shipped in line_items. But few of them has different number.
Could you let me know what the difference is?
That would be because the quantity_shipped is accumulative, and the order was reshipped.
For example for that Query with “request_id”: “6036605dded34c72c0f5624c” I now get back:
It is a little confusing to me.
That means ShipHero shipped total 6 items which were shipped separately: first time shipped 2 items and second time shipped 4 items with the exact same tracking info such tracking number, line item id, order_id etc.
OR
it means that ShipHero shipped total 4 items with one time shipping. In this case, if quatitiy_shipped and quantity are different number, the correct number of actual quantity should be quatitiy_shipped - quantity. ( 6 - 2 = 4)
Something like this, but not exactly, each shipment has its shipment ID and separate label.
I believe that the field quantity_shipped might be causing you some confusion here.
So when you Query for the line_item inside of the shipments line_item:
shipment {data {line_item{line_item
You are “getting back” to the order level and not the shipment, so if you ask for Quantity Shipped it will display the Quantity Shipped at a Order lever and not for that specific Shipment.