At the moment the inventory shipment webhooks don’t contain a link to the inventory transfer they are apart of and there isn’t a way to traverse the relationship meaning more data has to be stored and queried than necessary.
A transfer id would make it much easier to work with here.
Hey again @JordanFinners - I’ll flag this internally for you alongside your other thread there. Can’t guarantee anything, but I do think it does make sense to include more info. For the Inventory Transfer info you were looking to pull, would just tying it to an ID be what you’d be looking for? For example, so you can run a poll on the ID and grab more transfer info?
Hey Alan,
Yes basically to include the inventory transfer id into the webhook payload as it would save extra lookups (which isn’t currently possible to lookup the transfer from the shipment anyway because of the other issue)
For example inventory_shipments/mark_in_transit: Sample Payload
Hey @JordanFinners - thanks for confirming that, and for the example payload, super helpful.
I’ve logged this alongside the other thread as well. Including the inventory_transfer_id in the shipment webhook payloads makes a lot of sense, especially since there’s no way to look it up from the shipment side right now anyway. Both of these together would make the whole inventory transfer workflow a lot more workable.
Same as the other thread, can’t guarantee anything on timelines but your feedback has been passed along on our end here. Let me know if I can help out further as always!