Auto Dispatch with inventory flow

In case you want to auto-dispatch tasks and have inventory as part of the process, this is how you would do it:

  • Add auto dispatching application to a company
  • Configure the application to use Inventory plug-in (driversWithInventory)
  • Add inventory to the system and save the IDs
  • Add quantity of each specific inventory ID that each specific driver has
  • When creating a task, include the inventory needed (see bellow)

📘

In order to add inventory to a task you should use the extras field:

{"inventory"=>[{"id"=>3, "amount"=>5}]}