Freight

Building requests for the Freight API

Before you can start using the API, you will need to obtain the authentication token.

The following headers will be required, where the word token must be replaced by the token obtained in the authentication process:

--header 'Content-Type: application/json' \
--header 'Authorization: Bearer token'

In body all the parameters for calculating the minimum freight for the route will be sent.

The Freight API can be used in 3 different ways:

Independent endpoint

Recommended for users who use third-party routing services.

Trip API + Freight API

The Freight API can be used in conjunction with the Trip API, both synchronously and asynchronously. The information needed to calculate the freight will be added in the request to the Trip API

Toll for Maps API + Freight API

Recommended for users who use Google’s Directions API. The Freight API can be used integrated with the Toll for Maps API, so the freight calculation will be returned with the toll calculation.