Setup Uber Direct

This guide details the steps to integrate Uber Direct with your Twirll account, enabling you to streamline your delivery process and leverage Uber Direct’s extensive network.

Prerequisites

Get the Access Token from Twirll for Uber Direct Get Access Token for third party services

Obtain Uber Direct API Credentials

Log in to your Uber Direct Portal. Navigate to the Developer section for API credentials. Copy the customer id client id client secret
Uber_Direct_Portal

Setup the webhook on Uber Direct

On Uber Direct Portal setup the webhook so that Delivery Status gets updated in twirll system
https://secureapi.twirll.com/staging/uber_direct/handle_shipment_status_update.json/?access_token={{Access_token}}

Note: Replace {{Access_token}} with access token which you get in the prerequiste step. eg URL: https://secureapi.twirll.com/staging/uber_direct/handle_shipment_status_update.json/?access_token=08xxxxxxxxxxxxxxxxxxxxxxxxxa
Uber_Direct_Portal_WEBHOOK

Store Uber Direct Credentails in Twirll

1. Login to Twirll Portal Go to
Business Portal >> Admin >> Thidparty Integration Keys
Add New Integration

2. Paste the Customer Id, Client Id and Client Secret in the portal and then save it
Save New Integration

Add Location settings for Uber Direct

1. Go to
Business Portal >> Admin >> Manage Location >> Select the location >> Advanced Settings
Go to advanced settings
2. Go to Set Thirdparty Config and set json settings as shown in the screenshot

    {
        "sales_channel_name": "Thirdparty",
        "thirdparty_integrations": {
          "uber_direct": {
            "default": true,
            "dispatch_manager": [
                {
                    "name": "Shaun ",
                    "phone_no": "9999999",
                    "active": true
                }
            ],
            "auto_create_shipment_request": {
              "enable": false,
              "delay_in_mins": 15
            },
            "auto_complete_order_on_delivery": true,
            "sales_channel_constraint": {
              "enable": true,
              "sales_channels_id": [
                1,
                3
              ],
              "sales_channels": [
                {
                  "id": 1,
                  "order_origin_type": "Online Portal",
                  "selected": true
                },
                {
                  "id": 3,
                  "order_origin_type": "POS",
                  "selected": true
                }
              ]
            }
          }
        }
      }

Save ThirdParty Settings

Check the setup

1. After successful configuration go to urban direct integration in location settings
Go to Uber Direct Settings
2. Validate Settings by running get_access_token
Validate Uber Direct Settings

Was this article helpful to you? Yes No