Hi! New to using ShipHero’s GraphQL implementation. I can send shipment data to an order using shipment_create, remove inventory quantities (without updating the line items in the order to shipped,) with inventory_remove, and update the line items to “fulfilled” via order_update_line_items.
I am missing something in that I can’t unallocate the items from the order and move them to shipped.
Can anyone help point me in the right direction to fix the order’s status completely? What am I missing with these mutations to set the line items as shipped as opposed to allocated?
Thanks for reaching out and Welcome to our Developer Community!
After using the inventory_remove mutation to correct the inventory quantity, you should be using the order_update_fulfillment_status mutation to set the order and its line items to the fulfilled status. When a line items status is set to fulfilled it shouldn’t be allocated.
If you haven’t already, I’d recommend checking out our article on the Order Flow via the Public API.
Please let me know if you have any questions or concerns.
Hi @tomasfd I was wondering if you could find anything else out about this one. My automation ran and I tried setting it to shipped with it, but didnt set a new order as shipped even if the item shows fulfilled.
Hey, maybe I’m still missing something. I need to update the individual line items on an order when we have multiple warehouses that may ship something. The documentation says to use: order_update_line_items When I use this mutation, it doesn’t move the items from allocated to fulfilled, only the item status to fulfilled.
It sounds like the one you mentioned is specifically for updating the entire order as fulfilled. how would I update the specific line items in a shipment to move from allocated to shipped?
Hey @Rayanp were you able to confirm if this is the expected behavior? It is problematic that it seems binary to update all items as fulfilled and update inventory and have these orders stuck at allocated.
Instead of using the order_update_line_items mutation to update the fulfillment status directly, could you try updating the quantity pending fulfillment to 0? I believe this will yield the expected results.
After some further testing and clarification on my end, we need to be able to set the items to shipped. Is there a part of the Schema I’m missing that does this specifically on the order_update_line_items input?
It looks like when I use this and set the quantity_pending_fulfillment to 0, it just unallocates the items. I need a way to set the items to actually shipped, as we use this for internal reports.
This image is from another order I tried on, the second item is the one I used the mutation on and it shows unallocated and not shipped. (but status is fulfilled.)
Thanks for getting back so quickly. I am still having trouble. I followed the steps as:
Update Line Items
Update Fulfillment Status
The test Item I’m using on our dev store shows 0 quantity shipped after running the mutations in the order that was suggested. Am I missing a piece of required input to do this somewhere? I can attach copies of the mutations without some of the identifying info if that would help.
The fulfillment status on the right shows: STATUS: FULFILLED
and the order history shows:
No problem. Will this be something that may be added in the future? I have to reconfigure automation on my end now to function properly to record items from shipped from the warehouse using the GraphQL calls now, it would definitely be appreciated to have this kind of feature parity with the API. @Rayanp