Freight

Example 1 – Simple freight calculation

In this example, we will calculate the minimum freight for a route of 481 km (one way) that will be carried out by a truck with 4 double axles, the cargo of which is solid bulk and the type of operation contracted was “Operation road haulage” (Table A).

In addition to the freight, the carrier wants to include a 5% ICMS surcharge and $200.00 flat-rate tax on the calculated value.

Endpoint used: https://api.maplink.global/freight/v1/calculations (Method: POST)

The full request can be found below:

{
    "operationType": [
        "A"
    ],
    "goodsType": [
        "GRANEL_SOLIDO"
    ],
    "axis": [
        4
    ],
    "roundTrip": false,
    "backEmpty": false,
    "distance": 481,
    "otherCosts": [
        {
            "name": "ICMS",
            "type": "PERCENT",
            "value": 5
        },
        {
            "name": "Taxa Fixa",
            "type": "FIXED",
            "value": 200
        }
    ],
    "date": "2021-12-02"
 }

The full response can be found below:

{
    "source": "RESOLUÇÃO Nº 496, DE 19 DE OUTUBRO DE 2021",
    "results": {
        "A": {
            "4": {
                "GRANEL_SOLIDO": {
                    "value": 1956.60,
                    "otherCosts": {
                        "ICMS": 97.83,
                        "Taxa Fixa": 200
                    }
                }
            }
        }
    },
    "minimumFreight": 1956.60,
    "minimumFreightWithCosts": 2254.43
}