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

# Create a proof of address check-in.

Create a proof of address check-in. A proof of address check-in requires a document (or photos) clearly proving residence. Photos need to be uploaded to the Ownli cloud via the Photo upload api.

# 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/users/checkin/proof-of-address": {
      "post": {
        "tags": [
          "Check-in"
        ],
        "summary": "Create a proof of address check-in.",
        "description": "Create a proof of address check-in. A proof of address check-in requires a document (or photos) clearly proving residence. Photos need to be uploaded to the Ownli cloud via the Photo upload api.",
        "operationId": "createProofOfAddressCheckin",
        "parameters": [
          {
            "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"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProofOfAddressCheckInCreateDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The created proof of address check-in object.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConditionCheckInDto"
                }
              }
            }
          },
          "401": {
            "description": "Authorization error e.g. due to an invalid or missing API keys."
          },
          "403": {
            "description": "The caller does not have access to the vehicle or the vehicle is in a deactivated state. \nPossible error codes\n 1. **ERROR_NO_PERMISSIONS_TO_RESOURCE** \n2. **ERROR_VEHICLE_IS_NOT_ACTIVE_ON_POLICY**",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseDto"
                }
              }
            }
          },
          "404": {
            "description": "User not found. \nPossible error codes\n 1. **ERROR_USER_NOT_FOUND**",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseDto"
                }
              }
            }
          },
          "500": {
            "description": "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."
      },
      "ConditionCheckInDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Id of the checkin"
          },
          "license": {
            "type": "string",
            "description": "License plate number"
          },
          "userNote": {
            "type": "string",
            "description": "User generated note. For communication between the user to the admin"
          },
          "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"
            ]
          },
          "updated": {
            "type": "string",
            "description": "Last updated on"
          },
          "photos": {
            "type": "array",
            "description": "The photos of the vehicle taken from different angles",
            "items": {
              "$ref": "#/components/schemas/ConditionCheckInPhotoDto"
            }
          },
          "fraud": {
            "type": "boolean"
          }
        },
        "description": "A condition check-in"
      },
      "ConditionCheckInPhotoDto": {
        "type": "object",
        "properties": {
          "photoUrl": {
            "type": "string",
            "description": "URL of the photo"
          },
          "type": {
            "type": "string",
            "description": "Type of the photo. A value from one of the condition checkin photo types.",
            "enum": [
              "Back",
              "Front",
              "DriverSide",
              "DriverSideFront",
              "DriverSideBack",
              "PassengerSide",
              "PassengerSideFront",
              "PassengerSideBack"
            ]
          },
          "latitude": {
            "type": "number",
            "description": "Latitude at which photo was taken",
            "format": "double"
          },
          "longitude": {
            "type": "number",
            "description": "Longitude at which photo was taken",
            "format": "double"
          },
          "markedInvalidByReview": {
            "type": "boolean",
            "description": "Indicates that the photo has been marked invalid on review."
          },
          "damageDetected": {
            "type": "boolean",
            "description": "Indicates that the review has detected damage to the vehicle."
          }
        },
        "description": "A condition check-in photo"
      },
      "ProofOfAddressAddressCreateDto": {
        "type": "object",
        "properties": {
          "addressLine1": {
            "type": "string",
            "description": "Street Address"
          },
          "city": {
            "type": "string",
            "description": "City"
          },
          "state": {
            "type": "string",
            "description": "2 Letter State Code (eg. AL, CA, CO etc."
          },
          "country": {
            "type": "string",
            "description": "2 Letter Country Code. Must be US."
          },
          "zip": {
            "type": "string",
            "description": "Zipcode"
          },
          "latitude": {
            "type": "number",
            "description": "Latitude of the address.",
            "format": "double"
          },
          "longitude": {
            "type": "number",
            "description": "Longitude of the address.",
            "format": "double"
          }
        },
        "description": "Address"
      },
      "ProofOfAddressCheckInCreateDto": {
        "required": [
          "documentType",
          "latitude",
          "longitude",
          "userId"
        ],
        "type": "object",
        "properties": {
          "userId": {
            "type": "string",
            "description": "Id of the user."
          },
          "documentType": {
            "type": "string",
            "description": "Document type for attached document.",
            "enum": [
              "UtilityBill",
              "Paycheck",
              "FinancialStatement",
              "SaleDeed",
              "LeaseAgreement",
              "Invalid",
              "UtilityBill",
              "Paycheck",
              "FinancialStatement",
              "SaleDeed",
              "LeaseAgreement"
            ]
          },
          "latitude": {
            "type": "number",
            "description": "Latitude of the check-in.",
            "format": "double"
          },
          "longitude": {
            "type": "number",
            "description": "Longitude of the check-in.",
            "format": "double"
          },
          "addressType": {
            "type": "string",
            "description": "Type of home.",
            "enum": [
              "StandaloneHome",
              "Apartment",
              "Condominium",
              "Duplex",
              "Other",
              "Invalid",
              "StandaloneHome",
              "Apartment",
              "Condominium",
              "Duplex",
              "Other"
            ]
          },
          "address": {
            "$ref": "#/components/schemas/ProofOfAddressAddressCreateDto"
          },
          "photos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProofOfAddressCheckinCreatePhotoDto"
            }
          },
          "documents": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProofOfAddressCheckinCreateDocumentDto"
            }
          }
        }
      },
      "ProofOfAddressCheckinCreateDocumentDto": {
        "required": [
          "type",
          "url"
        ],
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "Url of the document. The document needs to be uploaded via the Photo Upload API."
          },
          "type": {
            "type": "string",
            "description": "File type of the document.",
            "enum": [
              "DOCUMENT",
              "GALLERY",
              "CAMERA",
              "INVALID",
              "DOCUMENT",
              "GALLERY",
              "CAMERA"
            ]
          },
          "ordinal": {
            "type": "integer",
            "description": "Ordinal",
            "format": "int32"
          }
        },
        "description": "Payload for photo."
      },
      "ProofOfAddressCheckinCreatePhotoDto": {
        "required": [
          "type",
          "url"
        ],
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "Url of the photo. The photo needs to be uploaded via the Photo Upload API."
          },
          "type": {
            "type": "string",
            "description": "Type of the photo. A value from one of the photo types.",
            "enum": [
              "FrontView",
              "AlternateView",
              "Invalid",
              "FrontView",
              "AlternateView"
            ]
          }
        },
        "description": "Payload for 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
    }
  }
}
```