v1

latestOpenAPI 3.0.12026-07-26222700728.0 KB
Mileage Locations

Save locations

Save new (or update existing) favorite locations

post/v6/mileage/locations

Request body

Example request

{
  "data": [
    {
      "id": "loc_28868401",
      "name": "Home Office",
      "status": "ACTIVE",
      "lat": "38.8977",
      "lng": "-77.0365",
      "customData": {
        "internal_key": "some_internal_key",
        "some_other_field": 23434
      }
    }
  ]
}

Response

Success

result'SUCCESS' | 'FAILURE'

The result of the action performed.

Example response

{
  "data": [
    {
      "data": {
        "id": "loc_28868401",
        "name": "Home Office",
        "status": "ACTIVE",
        "lat": "38.8977",
        "lng": "-77.0365",
        "address": {
          "countryCode": "USA"
        },
        "customData": {
          "internal_key": "some_internal_key",
          "some_other_field": 23434
        }
      }
    }
  ]
}