---
agentTools:
  projectIndex: https://ownli.readme.io/llms.txt
---

# Retrieve a mileage check-in.

Retrieve a mileage check-in for a vehicle.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "OpenAPI definition",
    "version": "v0"
  },
  "servers": [
    {
      "url": "https://api.sandbox.ownli.app",
      "description": "Generated server url"
    }
  ],
  "paths": {
    "/api/vehicles/checkin/mileage/{id}": {
      "get": {
        "tags": [
          "Check-in"
        ],
        "summary": "Retrieve a mileage check-in.",
        "description": "Retrieve a mileage check-in for a vehicle.",
        "operationId": "fetchMileageCheckin",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the checkin",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "partnerId",
            "in": "header",
            "description": "Partner Id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "clientId",
            "in": "header",
            "description": "Client Id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "clientSecret",
            "in": "header",
            "description": "Client Secret",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The mileage check-in object requested.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MileageCheckInDto"
                }
              }
            }
          },
          "401": {
            "description": "Authorization error e.g. due to an invalid or missing API keys."
          },
          "403": {
            "description": "Forbidden. \nPossible error codes\n 1. **ERROR_NO_PERMISSIONS_TO_RESOURCE**",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseDto"
                }
              }
            }
          },
          "404": {
            "description": "Check-in not found or Vehicle not found or owning User not found. \nPossible error codes\n 1. **ERROR_USER_NOT_FOUND** \n2. **ERROR_VEHICLE_NOT_FOUND** \n3. **ERROR_MILEAGE_CHECKIN_NOT_FOUND**",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseDto"
                }
              }
            }
          },
          "500": {
            "description": "Internal error. \nPossible error codes\n 1. **INTERNAL_SERVER_ERROR**",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseDto"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ErrorResponseDto": {
        "type": "object",
        "properties": {
          "error_code": {
            "type": "string",
            "description": "Error code"
          },
          "error_message": {
            "type": "string",
            "description": "A verbose error message"
          }
        },
        "description": "Error response."
      },
      "MileageCheckInDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Id of the checkin"
          },
          "license": {
            "type": "string",
            "description": "License plate number"
          },
          "adminNote": {
            "type": "string",
            "description": "Admin generated note. Usually used for on-hold or declined check-ins"
          },
          "checkedInAt": {
            "type": "string",
            "description": "Check-in date"
          },
          "checkInStatus": {
            "type": "string",
            "description": "Status of the check-in",
            "enum": [
              "Confirmed",
              "Declined",
              "OnHold",
              "Pending"
            ]
          },
          "mileage": {
            "type": "integer",
            "description": "Mileage at time of check-in",
            "format": "int32"
          },
          "nextCheckInDate": {
            "type": "string",
            "description": "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."
          },
          "updated": {
            "type": "string",
            "description": "Last updated on"
          },
          "licensePhotos": {
            "type": "array",
            "description": "The photo of the license plate",
            "items": {
              "$ref": "#/components/schemas/MileageCheckInPhotoDto"
            }
          },
          "odometerPhotos": {
            "type": "array",
            "description": "The photo of the odometer",
            "items": {
              "$ref": "#/components/schemas/MileageCheckInPhotoDto"
            }
          },
          "fraud": {
            "type": "boolean"
          }
        },
        "description": "A mileage check-in"
      },
      "MileageCheckInPhotoDto": {
        "type": "object",
        "properties": {
          "photoUrl": {
            "type": "string",
            "description": "URL of the photo"
          },
          "latitude": {
            "type": "number",
            "description": "Latitude at which photo was taken",
            "format": "double"
          },
          "longitude": {
            "type": "number",
            "description": "Longitude at which photo was taken",
            "format": "double"
          }
        },
        "description": "A mileage check-in photo"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 105,
      "1": 149,
      "2": 36,
      "3": 236,
      "4": 14,
      "5": 67,
      "6": 148,
      "7": 138,
      "8": 212,
      "9": 48,
      "10": 246,
      "11": 30
    }
  }
}
```