# Digital check-in from the reservation's own link

`POST /public/lodging/link/check-in` · Rivier · bookings

Digital check-in from the reservation's own link: who is coming, when they arrive, that they read the house rules. It is kept for the desk; no identity document is asked for.

- Scope: bookings:read
- Graphql: Mutation.checkInAhead
- Sdk: bookings.publicStay.checkIn
- Cli: bookings public stay check in
- Events: bookings.reservation.precheckin
- Publishable: yes

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "token": {
      "type": "string",
      "minLength": 10,
      "maxLength": 600
    },
    "arrivalTime": {
      "type": "string",
      "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
    },
    "guests": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "nationality": {
            "type": "string",
            "pattern": "^[A-Za-z]{2}$"
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false
      },
      "minItems": 1,
      "maxItems": 30
    },
    "phone": {
      "type": "string",
      "pattern": "^\\+?[0-9 ()-]{6,20}$"
    },
    "vehiclePlate": {
      "type": "string",
      "maxLength": 20
    },
    "notes": {
      "type": "string",
      "maxLength": 1000,
      "default": ""
    },
    "acceptedHouseRules": {
      "type": "boolean",
      "const": true
    }
  },
  "required": [
    "token",
    "guests",
    "acceptedHouseRules"
  ],
  "additionalProperties": false
}
```

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/public/lodging/link/check-in' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "token": "string",
  "guests": [
    {
      "name": "string"
    }
  ],
  "acceptedHouseRules": true
}'
```
