v1
latestOpenAPI 3.0.12026-07-26222700728.0 KBMileage
Save mileage
Save new (or update existing) mileage records
post/v6/mileage
Request body
Example request
{
"data": [
{
"id": "mlg_12345",
"date": "2024-03-15",
"status": "ACTIVE",
"mileageStatus": "BUSINESS",
"description": "Drive to client meeting",
"notes": "Client was not available",
"customerId": "cus_4852707",
"distance": {
"type": "MILE",
"value": "12.5"
},
"start": {
"lat": "38.8977",
"lng": "-77.0365",
"locationId": "loc_28868401"
},
"end": {
"lat": "38.8977",
"lng": "-77.0365",
"locationId": "loc_28868401"
},
"duration": 3600000,
"deduction": {
"amount": 6775
},
"carId": "car_28868401",
"customData": {
"internal_key": "some_internal_key",
"some_other_field": 23434
}
}
]
}Response
Success