Onfleet

With our Onfleet integration, you can add delivery to your store on Dispense.

Get Onfleet Credentials

  1. Login into the Onfleet dashboard: https://onfleet.com/dashboard
  2. Go to Settings (gear icon in upper right)
  3. Click on the API & Webhooks tab
  4. Click the + button and give your API key a name like 'Dispense'
  5. Copy the API Key & Webhook Secret and to paste into Dispense.

     

Document image

   Step 3

Document image

Steps 4 and 5

Enable the integration in Dispense

  1. Navigate to Store > Integrations
  2. Click on Onfleet
  3. Enable the integration toggle and input the API key value
  4. Click Save

Setting up Webhooks in Onfleet

Dispense will need to be notified by Onfleet as tasks are picked up by drivers, completed, failed, etc.

  1. Open Onfleet
  2. Go to settings (gear icon in upper right)
  3. Click on the API & Webhooks tab

  4. Click the + button to add a webhook

  5. Name the webhook after the task (e.g. Dispense - Task Completed)
  6. For the dropdown "Add a webhook triggered when:" and select Task Completed.

  7. In the field "Push updates to" you'll need to enter the URL that Dispense provides you in your Onfleet integration settings 'Webhook URL'.

  8. Repeat steps these steps until you've completed these 4 webhooks:

    • Task Completed
    • Task Failed
    • Task Started
    • Task Updated

Onfleet Teams

Once you are integrated with Onfleet, you will then need to assign your store to a Team. We will pull available teams from your Onfleet account and they will appear in the dropdown 'Team' in Dispense.

You must select your team whether or not you have a single location or an onfleet enterprise account.

Enable Delivery & Settings

To further configure your delivery settings see Delivery Settings