ROVA DEVELOPER DOCS

Getting Started

ROVA platform enables you to create powerful on demand logistic solutions for a variety of scenarios, including integrating your service into ROVA's logistic backend, custom on demand delivery experience, grow your delivery fleets and more. Get familar with ROVA's developer product below.

Sample apps can be found under https://github.com/RovaHQ/sample-apps

Authentication

ROVA’s API is hosted under https://api.rovahq.com. Majority of requests to ROVA API requires authentication. Let’s start with navigating to the settings page to retrieve your OAuth 2.0 Key pair.

In settings page, you will find production and test keys of Account ID and Auth Token. They are respectively your client_id and client_secret.

To learn more about supported OAuth 2.0 protocals, see Authentication API Reference

Create a Route

This will let the ROVA platform know you want to get something delivered, the example below will provide a quick walk through for that. To create a route, making a HTTP POST request to https://api.rovahq.com/v3/entity/route with the following payload.

A credit card will be required to make any delivery request. For alternative billing solutions, please contact support@rovahq.com

          
              # payload.txt
              {
                "route": {
                  "deliveryCategory": "BOXES",
                  "vehicleType": "CAR",
                  "pickUpProofOfDelivery": "NONE",
                  "dropOffProofOfDelivery": "NONE",
                  "referenceId": "my test route",
                  "localPickUpDateTime": "2020-06-01T09:15:00",
                  "routeExceptionInformation": {
                    "type": "DISCARD",
                  },
                  "legs": [
                    {
                      "type": "PICK_UP",
                      "addresses": [
                        {
                          "address":"1161 Mission",
                          "company":"John Company",
                          "city":"San Francisco",
                          "instructions":"Call John Doe when arrive",
                          "locality":"CA",
                          "name":"Jone Doe",
                          "phone":"2221118888",
                          "postalCode":"94103"
                        }
                      ]
                    },
                    {
                      "type": "DROP_OFF",
                      "addresses": [
                        {
                          "address":"1111 Kearny Street",
                          "address2":"9",
                          "city":"San Francisco",
                          "company":"Uncle Sam company",
                          "instructions":"Call Uncle Sam when arrive",
                          "locality":"CA",
                          "name":"Uncle Sam",
                          "phone":"6667778888",
                          "postalCode":"94133"
                        }
                      ]
                    }
                  ]
                },
                "billing": {
                  "tips": 15
                }
              }
          
        
          
            # sample curl command:
            curl 'https://api.rovahq.com/v3/entity/route' \
            -X POST \
            -H 'Content-Type: application/json' \
            -H "Authorization: Bearer $YOUR_BEARER" \
            --data-binary @payload.txt
          
        

To learn more of the create order properties, see Submit a route API Reference

Cancel Route

To cancel a request, make a request to this endpoint PUT https://api.rovahq.com/v3/entity/route/{route_id}/status . See example below

          
            # payload.txt
            {
              "deliveryStatus": "cancelled"
            }
          
        
          
            # sample curl command:
            curl 'https://api.rovahq.com/v3/entity/route/{route_id}/status' \
            -X PUT \
            -H 'Content-Type: application/json' \
            -H "Authorization: Bearer $YOUR_BEARER" \
            --data-binary @payload.txt
          
        

To learn more of the cancel order properties, see Modify Route Status API Reference

Testing with ROVA Platform

Testing is an important aspect of development. To test any API calls, please use the test client_id and client_secret. No billing setup is required for testing.

Questions

Have a question?

Please do not hesitate to reach out to api-support@rovahq.com.