Table of Contents

    List Vehicles

    Request URL

    GET https://triplogmileage.com/web/api/vehicles

    Query parameters

    • userEmail – Email address of a particular user to search for.
    • minLastUpdated – The date when the record was modified or created. Format ‘yyyy-mm-dd’. Inclusive.
    • maxLastUpdated – The date when the record was modified or created. Format ‘yyyy-mm-dd’. Inclusive.

    Note

    You need to provide at least one of the query parameters in the request.

    Example

    GET https://triplogmileage.com/web/api/vehicles?userEmail=driver@company.com

    Add Vehicle

    Request URL

    POST https://triplogmileage.com/web/api/vehicles

    Query parameters

    None

    JSON request data

    {
        "userId"     : Integer (required),
        "year"       : Integer (required),
        "make"       : String (required),
        "model"      : String (required),
        "truck"      : boolean (optional), enables state-by-state mileage tracking for IFTA
        "plate"      : String (optional),
        "state"      : String (optional), 
        "vin"        : String (optional), 
        "defaultActivity" : String (optional),
    }

    Update Vehicle

    Request URL

    PUT https://triplogmileage.com/web/api/vehicles/[vehicle_id]

    Query parameters

    None

    JSON request data

    Specify the fields you want to change. Leaving it out or setting to ‘null’ means no change to that field.

    {
        "year"         : Integer (optional),
        "make"         : String (optional),
        "model"        : String (optional),
        "truck"        : boolean (optional), enables state-by-state mileage tracking for IFTA
        "plate"        : String (optional),
        "state"        : String (optional), 
        "vin"          : String (optional), 
        "disabled"     : boolean (optional),
        "defaultActivity" : String (optional), 
    }