# Reserve a stay from a hold, a quote or the live price

`POST /lodging/reservations` · Rivier · bookings

Reserve a stay from a hold, a quote or the live price. Idempotent on the key; a dry run returns the reservation it would make.

- Scope: bookings:write
- Mcp: rivier_lodging_reserve
- Graphql: Mutation.createReservation
- Sdk: bookings.reservation.create
- Cli: bookings reservation create
- Events: bookings.reservation.created, bookings.reservation.confirmed

## Parameters

- `dryRun` (query), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "propertyId": {
      "type": "string",
      "format": "uuid"
    },
    "roomTypeId": {
      "type": "string",
      "format": "uuid"
    },
    "ratePlanId": {
      "type": "string",
      "format": "uuid"
    },
    "arrival": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "departure": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "adults": {
      "type": "integer",
      "minimum": 1,
      "maximum": 20,
      "default": 2
    },
    "children": {
      "type": "integer",
      "minimum": 0,
      "maximum": 20,
      "default": 0
    },
    "infants": {
      "type": "integer",
      "minimum": 0,
      "maximum": 10,
      "default": 0
    },
    "promoCode": {
      "type": "string",
      "maxLength": 24
    },
    "extras": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "extraId": {
            "type": "string",
            "format": "uuid"
          },
          "quantity": {
            "type": "integer",
            "minimum": 1,
            "maximum": 50,
            "default": 1
          }
        },
        "required": [
          "extraId"
        ],
        "additionalProperties": false
      },
      "maxItems": 20,
      "default": []
    },
    "quote": {
      "type": "string",
      "maxLength": 4000
    },
    "holdId": {
      "type": "string",
      "format": "uuid"
    },
    "contact": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "email": {
          "type": "string",
          "format": "email",
          "maxLength": 254
        },
        "phone": {
          "type": "string",
          "pattern": "^\\+?[0-9 ()-]{6,20}$"
        },
        "locale": {
          "type": "string",
          "maxLength": 20
        },
        "company": {
          "type": "string",
          "maxLength": 160
        },
        "vatId": {
          "type": "string",
          "maxLength": 40
        }
      },
      "required": [
        "name"
      ],
      "additionalProperties": false
    },
    "consent": {
      "type": "object",
      "properties": {
        "email": {
          "type": "boolean"
        },
        "sms": {
          "type": "boolean"
        },
        "whatsapp": {
          "type": "boolean"
        }
      },
      "additionalProperties": false,
      "default": {}
    },
    "specialRequests": {
      "type": "string",
      "maxLength": 2000,
      "default": ""
    },
    "channel": {
      "type": "string",
      "enum": [
        "owner",
        "widget",
        "api",
        "mcp",
        "phone",
        "chat",
        "import"
      ],
      "default": "api"
    },
    "source": {
      "type": "string",
      "maxLength": 40,
      "default": "direct"
    },
    "externalId": {
      "type": "string",
      "maxLength": 80
    },
    "idempotencyKey": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    }
  },
  "required": [
    "propertyId",
    "roomTypeId",
    "ratePlanId",
    "arrival",
    "departure",
    "contact",
    "idempotencyKey"
  ],
  "additionalProperties": false
}
```

## Responses

- `201`: 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/lodging/reservations' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "propertyId": "string",
  "roomTypeId": "string",
  "ratePlanId": "string",
  "arrival": "string",
  "departure": "string",
  "contact": {
    "name": "string"
  },
  "idempotencyKey": "string"
}'
```
