Skip to content
@lenarge

Lenarge

Innovative Logistics Company

Lenarge Public API

Welcome to Lenarge API! This is the README file for our homepage, which provides information on how to use our API Public endpoints.

Production URL

https://api.lenarge.com.br

Staging URL

https://api.dev.lenarge.com.br

Authentication

Our API uses the Header Authorization model with the Bearer API_KEY authentication method. To authenticate your requests, you must include your API key in the Authorization header of your HTTP request. The header should be in the following format:

Authorization: Bearer YOUR_API_KEY

SHIPPER Endpoints

The Shipper endpoints provide access to features related to the shipping operations. The following endpoint is available for use with our API:

GET /shipper/operations/:OPERATION_FRIENDLY_ID/vehicle_tracking

This endpoint allows you to track the location and status of vehicles that are involved in a specific shipping operation. The OPERATION_FRIENDLY_ID parameter is a string that represents the operation in question, which is sent to the client via email along with the API key.

Example Response:

interface VehicleTrackingResponse {
  vehicleTrackingItems: Array<{
    truck: {
      licensePlate: string;
      brandName: string;
      modelName: string;
      modelYear: string;
      manYear: string;
    };
    trailers: {
      licensePlate: string;
      brandName: string;
      modelType: string;
      modelYear: string;
      manYear: string;
    }[];
    city: string;
    // GeoJSON Point: https://www.rfc-editor.org/rfc/rfc7946#appendix-A.1
    location: {
      coordinates: [number, number]; // longitude, latitude
      type: "Point";
    };
    engineOn: boolean;
  }>;
}

Example:

{
    "vehicleTrackingItems": [
        {
            "truck": {
                "licensePlate": "RJO5B70",
                "brandName": "VOLVO",
                "modelName": "FH 500 6X2T",
                "modelYear": "2022",
                "manYear": "2021"
            },
            "trailers": [
                {
                    "licensePlate": "PWB7717",
                    "brandName": "ROSSETTI",
                    "modelType": "CARRETA BASCULANTE VANDERLEIA",
                    "modelYear": "2015",
                    "manYear": "2015"
                }
            ],
            "city": "Nova Lima/MG",
            "location": {
                "coordinates": [
                    -43.9553303,
                    -20.1583173
                ],
                "type": "Point"
            },
            "engineOn": false
        }
    ]
}

The response includes an array of vehicleTrackingItems, which contain information about the tracked vehicle(s). Each vehicleTrackingItem includes details about the truck and trailer(s), as well as the current location of the vehicle and whether the engine is on.

GET /shipper/operations/:OPERATION_FRIENDLY_ID/license_plates/:LICENSE_PLATE/driver_metadata/

This endpoint allows you to get the driver metadata that are involved in a specific vehicle(by license plate) of a shipping operation. The OPERATION_FRIENDLY_ID parameter is a string that represents the operation in question, which is sent to the client via email along with the API key, same as below.

Example Response:

interface DriverMetadataResponse {
  driverTerniumInformation: {
    cnh: string;
    cnhExpirationDate: string;
    cnhCategory: string;
    cpf: string;
    name: string;
  };
}

Example:

{
    "driverTerniumInformation": {
          "cnh": "99999999",
          "cnhExpirationDate": "2031-09-20T00:00:00.000Z",
          "cnhCategory": "AE",
          "cpf": "116.999.999-02",
          "name": "FILIPE FRANCISCO SILVA"
    }
}

The response includes an array of vehicleTrackingItems, which contain information about the tracked vehicle(s). Each vehicleTrackingItem includes details about the truck and trailer(s), as well as the current location of the vehicle and whether the engine is on.

Conclusion

We hope this information is helpful for using our API. If you have any questions or concerns, please contact us in english or portuguese at suporte.ti@lenarge.com.br.

Popular repositories Loading

  1. lenarge_mrs lenarge_mrs Public

    Ruby

  2. hours-synthesizer-lenarge hours-synthesizer-lenarge Public

    JavaScript

  3. create-react-app create-react-app Public

    Forked from facebook/create-react-app

    Set up a modern web app by running one command.

    JavaScript

  4. balena-dash balena-dash Public

    Forked from balena-labs-projects/balena-dash

    Build a Raspberry Pi based desktop dashboard for stats, photos, videos and more!

    Shell

  5. react-virtualized-auto-sizer react-virtualized-auto-sizer Public

    Forked from bvaughn/react-virtualized-auto-sizer

    Standalone version of the AutoSizer component from react-virtualized

    JavaScript

  6. .github .github Public

Repositories

Showing 6 of 6 repositories

Top languages

Loading…

Most used topics

Loading…