List all mileage check-ins.
GET/api/checkins/mileage
Retrieve the list of mileage check-ins of all users owned by a partner.
Request
Query Parameters
Default value: 0
Page number
Default value: 10
Number of items per page
Possible values: [dateCheckedIn
, dateUpdated
]
Default value: dateCheckedIn
Sort by field
Possible values: [asc
, desc
]
Default value: desc
Sort by order
Possible values: [license
, vin
, state
, userFirstName
, userLastName
, userEmail
, userPhone
]
Search by field
Search by value
Possible values: [Pending
, Confirmed
, Declined
, OnHold
, All
]
Filter mileage check-ins by status
Filter mileage check-ins by vehicle id
Filter mileage check-ins whose check-in date is greater or than equal to the date passed in. (The date should be in the ISO8601 UTC format YYY-MM-DDThh:mm:ss.SSSZ)
Filter mileage check-ins whose check-in date is less or than equal to the date passed in. (The date should be in the ISO8601 UTC format YYY-MM-DDThh:mm:ss.SSSZ)
Filter mileage check-ins whose update date is greater or than equal to the date passed in. (The date should be in the ISO8601 UTC format YYY-MM-DDThh:mm:ss.SSSZ)
Filter mileage check-ins whose update date is less or than equal to the date passed in. (The date should be in the ISO8601 UTC format YYY-MM-DDThh:mm:ss.SSSZ)
Header Parameters
Partner Id
Client Id
Client Secret
Responses
- 200
- 401
- 500
List of Mileage checkin objects matching given query.
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
Array [
]
]
Total number of mileage check-ins
Current page number
Current page size
Number of mileage check-ins on current page
checkins
object[]
List of mileage check-ins
Id of the checkin
License plate number
Admin generated note. Usually used for on-hold or declined check-ins
Check-in date
Possible values: [Confirmed
, Declined
, OnHold
, Pending
]
Status of the check-in
Mileage at time of check-in
A indicative time for the next check-in. If the check-ins are allowed at a specific cadence this value will carry the next recommended check-in date. When more complex rules are allowed this field should not be used.
Last updated on
licensePhotos
object[]
The photo of the license plate
URL of the photo
Latitude at which photo was taken
Longitude at which photo was taken
odometerPhotos
object[]
The photo of the odometer
URL of the photo
Latitude at which photo was taken
Longitude at which photo was taken
vehicle
object
Check-in vehicle
Id of the vehicle
License plate number
Photo of Vehicle
Make of the vehicle
Model of the vehicle
VIN of the vehicle.
2 Letter State Code (eg. AL, CA, CO etc.)
owner
object
Check-in owner
Id of the user
User's first name
User's last name
{
"totalItems": 0,
"currentPage": 0,
"totalPages": 0,
"itemsOnPage": 0,
"checkins": [
{
"id": "string",
"license": "string",
"adminNote": "string",
"checkedInAt": "string",
"checkInStatus": "Confirmed",
"mileage": 0,
"nextCheckInDate": "string",
"updated": "string",
"licensePhotos": [
{
"photoUrl": "string",
"latitude": 0,
"longitude": 0
}
],
"odometerPhotos": [
{
"photoUrl": "string",
"latitude": 0,
"longitude": 0
}
],
"vehicle": {
"id": "string",
"license": "string",
"photoUrl": "string",
"make": "string",
"model": "string",
"vin": "string",
"state": "string"
},
"owner": {
"id": "string",
"firstName": "string",
"lastName": "string"
}
}
]
}
Authorization error e.g. due to an invalid or missing API keys.
Internal error. Possible error codes
-
INTERNAL_SERVER_ERROR
- application/json
- Schema
- Example (from schema)
Schema
Error code
A verbose error message
{
"error_code": "string",
"error_message": "string"
}