Create a condition check-in.
POST/api/vehicles/checkin/condition
Create a condition check-in. A mileage check-in requires 8 photos of the vehicle from various sides. Photos need to be uploaded to the Ownli cloud via the Photo upload api.
Request
Header Parameters
Partner Id
Client Id
Client Secret
- application/json
Body
required
Array [
]
Vehicle Id of the vehicle.
License plate number of the vehicle.
2 Letter State Code (eg. AL, CA, CO etc.
photos
object[]
required
Url of the photo. The photo needs to be uploaded via the Photo Upload API.
Possible values: Value must match regular expression ^(Back|Front|DriverSide|DriverSideFront|DriverSideBack|PassengerSide|PassengerSideFront|PassengerSideBack)$
, [Back
, Front
, DriverSide
, DriverSideFront
, DriverSideBack
, PassengerSide
, PassengerSideFront
, PassengerSideBack
]
Type of the photo. A value from one of the condition checkin photo types.
Responses
- 200
- 401
- 403
- 404
- 500
The created condition check-in object.
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Id of the checkin
License plate number
User generated note. For communication between the user to the admin
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
Last updated on
photos
object[]
The photos of the vehicle taken from different angles
URL of the photo
Possible values: [Back
, Front
, DriverSide
, DriverSideFront
, DriverSideBack
, PassengerSide
, PassengerSideFront
, PassengerSideBack
]
Type of the photo. A value from one of the condition checkin photo types.
Latitude at which photo was taken
Longitude at which photo was taken
{
"id": "string",
"license": "string",
"userNote": "string",
"adminNote": "string",
"checkedInAt": "string",
"checkInStatus": "Confirmed",
"updated": "string",
"photos": [
{
"photoUrl": "string",
"type": "Back",
"latitude": 0,
"longitude": 0
}
]
}
Authorization error e.g. due to an invalid or missing API keys.
The caller does not have access to the vehicle or the vehicle is in a deactivated state. Possible error codes
-
ERROR_NO_PERMISSIONS_TO_RESOURCE
-
ERROR_VEHICLE_IS_NOT_ACTIVE_ON_POLICY
- application/json
- Schema
- Example (from schema)
Schema
Error code
A verbose error message
{
"error_code": "string",
"error_message": "string"
}
Vehicle not found or owning User not found. Possible error codes
-
ERROR_USER_NOT_FOUND
-
ERROR_VEHICLE_NOT_FOUND
- application/json
- Schema
- Example (from schema)
Schema
Error code
A verbose error message
{
"error_code": "string",
"error_message": "string"
}
Possible error codes:
-
ERROR_INVALID_PHOTO_TYPE
-
ERROR_DUPLICATE_PHOTO_TYPE
-
ERROR_PHOTO_TYPE_MISSING
-
ERROR_INVALID_STATE_CODE
-
ERROR_PHOTO_NOT_OWNED_BY_USER
-
ERROR_CHECKIN_IS_LOCKED
-
INTERNAL_SERVER_ERROR
- application/json
- Schema
- Example (from schema)
Schema
Error code
A verbose error message
{
"error_code": "string",
"error_message": "string"
}