I have created shipments of a few orders and their line items.
I tried to fetch the shipped line item “picks_per_day” using date timestamps, but it is always returning empty record,
As you can see in the attached screenshot.
Ok Instead of doing all these. (This seems to be complex for me and not good way)
Here is what I am looking for.
I Just need to check which line items have been shipped (how many Quantities) , so that I can update it at my end. I will be running an Azure function here and it will fetch all the updated orders and their line items, Then I need to decide which items are shipped or not.
what could be better option here ?
I also checked there is a field “quantity_shipped” Can I use this one, right now this is giving 0 because shipped some orders using API not through APP?
Hi @khungersumit!
In that case, you can use the following fields:
quantity
quantity_pending_fulfilment
And with that fields get the quantity that is pending to fulfill, and assume that the rest have been fulfilled outside of ShipHero or Manually fulfilled
I’m trying to get picks_per_day but getting an empty record as well. Also same result with packs_per_day. I ran the account query to get the warehouse_id.
Here is my “request_id”: “64c51317d98259b7cc47e002”.
I’m not in a place where I can test it, but I think your issue may be the dates. If you want a full day of picks, you may need them to be 1 day apart, because I think the “date_from” is “greater than or equal” but the “date_to” is just “less than”. You could either make “date_to” the 28th, or you could add times to the dates and make them “2023-07-27 00:00:00” and “2023-07-27 24:00:00”, respectively.