With our Onfleet integration, you can add delivery to your store on Dispense.
To turn on the Onfleet integration click on the Store tab in the sidebar and go to Integrations:
You'll need to get your API Key from Onfleet. Login into the Onfleet dashboard:
and go to settings:
Click on the API & Webhooks tab:
Click the + button and give your api key a name like `Dispense`. Copy the api key value and paste it into Dispense.
Copy the Webhooks Secret value and paste that into Dispense as well.
Save the integration settings in Dispense. Your Onfleet account is now connected to Dispense.
Dispense will need to be notified by Onfleet as tasks are picked up by drivers, completed, failed etc..
You will need to setup the following webhooks in Onfleet:
Back in the Onfleet settings under API and Webhooks click the + button to add a webhook. Give the webhook the name:
Dispense - Task Completed
For the dropdown "Add a webhook triggered when:" and select Task Completed.
In the field "Push updates to" you'll need to enter the URL that Dispense provides you in your Onfleet integration settings.
Follow these directions for the remaining webhooks events listed above.
Now that the Onfleet integration is connected you can enable the delivery order type in Store > Settings > Orders:
Next you'll want to setup your delivery zones. Delivery zones allow you to specify where on a map you want to allow deliveries. To setup your delivery zones go to Store > Settings > Delivery:
Draw out the zones that you want to allow delivery to and hit Save.
Next you'll want to setup delivery windows which will allow customers to select from a list of times that you offer delivery. Go to Manage > Settings > Pickup/Delivery windows: