Stock Transfer API / Webhook
for an integration with our logistics partner, we would like to create an order in their system, when a stock transfer has been created in Lightspeed Retail from our warehouse to one of our physical stores.
Is there a webhook available when a stock transfer is in TO SEND status that we could use to call our code to transform that stock transfer into an order at our logistics partner ?
The flow I have in mind :
- Webhook is called when stock transfer changes status - If Available ?
- Webhook code calls the API for the details of that specific stock transfer & its items (Inventory Transfer - https://developers.lightspeedhq.com/retail/endpoints/Inventory-Transfer/ & Inventory Transfer TransferItems - https://developers.lightspeedhq.com/retail/endpoints/Inventory-Transfer-TransferItems/)
- Webhook code transforms the transfer items into an order for our logistics provider with address of the receiving shop as the delivery address
- After processing we would receive the sent quantities from our Logistics provider and save them as ReceivedQuantities in Lightspeed to complete the transfer.
All store/warehouse locations are in Lightspeed retail.