---
title: "Booking.com Restrictions API — min stay, CTA and CTD"
canonical: "https://repull.dev/docs/channels/booking/restrictions"
description: "Set minimum and maximum stay, closed to arrival and closed to departure on a Booking.com room and rate plan, alone or with a price."
updated: "2026-11-30T00:48:58.694Z"
commit: "18314c12fefb59a7545ef7607c0893919de20aa9"
---

New to the Booking.com API? [How Booking.com connectivity works, and what it lets you do](https://repull.dev/booking-com-api) · [How to get Booking.com API access in 2026](https://repull.dev/booking-com-api-access)

# Minimum Stay & Restrictions

Set a minimum stay, a maximum stay, and closed-to-arrival / closed-to-departure on a Booking.com room and rate plan — on their own, or in the same call as a price. The response tells you which of the two actually landed.

`PUT /v1/channels/booking/availability`

## What you can set

Every field is optional. Omit one and that restriction is left exactly as it is — nothing you leave out is touched.

`minStay`integer

Minimum nights for any stay covering these dates (stay-through). 1–91; 0 removes it.

`maxStay`integer

Maximum nights for any stay covering these dates (stay-through). 1–90; 0 removes it.

`minStayArrival`integer

Minimum nights for a stay that STARTS on these dates. 1–91; 0 removes it.

`maxStayArrival`integer

Maximum nights for a stay that starts on these dates. 1–90; 0 removes it.

`closedToArrival`boolean

true: guests may not check in on these dates. false clears it.

`closedToDeparture`boolean

true: guests may not check out on these dates. false clears it.

> **Warning: Booking.com keeps a maximum stay of up to 90 nights**
>
> A maximum stay (`maxStay`, `maxStayArrival`) can be 1–90 nights, a minimum stay (`minStay`, `minStayArrival`) 1–91. `0` removes the limit. Booking.com accepts a larger number and then stores something else — a maximum of `365` is stored as no maximum at all — so Repull refuses it with `422 restriction_out_of_range` naming the field, and nothing is sent.
>
> For “no maximum stay”, send `"maxStayArrival": 0`.

> **Warning: Three restrictions cannot be written through the API**
>
> `exactStayArrival`, `minAdvanceRes` and `maxAdvanceRes` return `422 restriction_not_supported` naming the field, and nothing is sent. Booking.com has no way to receive them; set them on the rate plan in the Booking.com Extranet.
>
> They are refused rather than dropped on purpose: a restriction that is accepted and then not sent is the one failure you cannot see in a response.

## Set a minimum stay

A restriction-only write needs no price. `roomId` and `rateId` come from `GET /v1/channels/booking/properties/{id}/rooms`. **Dates are inclusive at both ends** — `start` equal to `end` is exactly one night.

**cURL**

```bash
curl -X PUT "https://api.repull.dev/v1/channels/booking/availability" \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "availability",
    "property_id": "1234567",
    "updates": [{
      "roomId": "123456701",
      "rateId": "98765",
      "dateRange": { "start": "2026-07-01", "end": "2026-07-31" },
      "restrictions": { "minStay": 3, "closedToArrival": true }
    }]
  }'
```

**Node.js**

```typescript
const res = await fetch('https://api.repull.dev/v1/channels/booking/availability', {
  method: 'PUT',
  headers: {
    Authorization: `Bearer ${process.env.REPULL_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    type: 'availability',
    property_id: '1234567',
    updates: [{
      roomId: '123456701',
      rateId: '98765',
      dateRange: { start: '2026-07-01', end: '2026-07-31' },
      restrictions: { minStay: 3, closedToArrival: true },
    }],
  }),
})

const result = await res.json()
if (!res.ok) throw new Error(`${result.error.code}: ${result.error.message}`)
console.log(result.applied, result.fields) // "verified" ["minStay","closedToArrival"]
console.log(result.verification.rows)     // per night and restriction: expected vs what Booking.com holds
```

> **Note: A one-night minimum is no minimum**
>
> Booking.com stores `minStay: 1` as `0` and reports it back as `0`. Repull treats that as applied rather than as a mismatch, so setting a minimum of one night is not a permanent “did not land”.

## Set a price and a restriction together

Send both in one `type: "rates"`update. Booking.com receives them as two writes — a rate amount and a restriction notification — so the response reports each separately. A rate amount also needs an occupancy; omit it and Repull resolves it from Booking.com's own data and echoes the value back. See [Update Booking.com Pricing](https://repull.dev/docs/channels/booking/pricing.md).

**cURL**

```bash
curl -X PUT "https://api.repull.dev/v1/channels/booking/availability" \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "rates",
    "property_id": "1234567",
    "updates": [{
      "roomId": "123456701",
      "rateId": "98765",
      "dateRange": { "start": "2026-07-01", "end": "2026-07-07" },
      "price": 182,
      "currency": "EUR",
      "occupancy": 4,
      "restrictions": { "minStay": 4 }
    }]
  }'
```

**Node.js**

```typescript
const res = await fetch('https://api.repull.dev/v1/channels/booking/availability', {
  method: 'PUT',
  headers: {
    Authorization: `Bearer ${process.env.REPULL_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    type: 'rates',
    property_id: '1234567',
    updates: [{
      roomId: '123456701',
      rateId: '98765',
      dateRange: { start: '2026-07-01', end: '2026-07-07' },
      price: 182,
      currency: 'EUR',
      occupancy: 4,
      restrictions: { minStay: 4 },
    }],
  }),
})

const result = await res.json()
console.log(result.applied)              // "verified" | "partial" | "mismatch" | "rejected" | "unverified"
console.log(result.price.applied)        // the prices
console.log(result.restrictions.applied) // the restrictions
```

## Reading the result

Booking.com acknowledges a write without saying what happened to each night, so Repull reads the nights back off Booking.com afterwards — prices and restrictions in one read — and reports what is actually live. This applies to a restriction-only `type: "availability"` write as well as to a rate write, and to every night of the range, however long (a year is read back in a couple of seconds). Send `"verify": false` to skip the read; a restriction-only write then reports `acknowledged`.

To check the values yourself at any time, read `GET /v1/channels/booking/availability?property_id=…&room_id=…&start_date=…&number_of_days=…`. Each night reports `minStayThrough` / `maxStayThrough` (what `minStay` / `maxStay` write) and `minStayArrival` / `maxStayArrival`. `0` means no limit.

`verified`

Read back off Booking.com. Every night carries what was sent.

`mismatch`

Read back, and some nights do not. The verification rows name them.

`partial`

One half landed and the other did not. Read price.applied and restrictions.applied.

`rejected`

Booking.com refused everything that was sent. Nothing changed.

`unverified`

Booking.com acknowledged the request and no read-back ran. An unknown, not a success.

### What a partial result looks like

The price was written and verified; the minimum stay was refused. This is a **200** — a half that landed is never reported as a failure — and `restrictions.rejection.message`is Booking.com's own reason for the half that did not.

```json
{
  "propertyId": "1234567",
  "requested": 1,
  "applied": "partial",
  "occupancy": [
    { "index": 0, "roomId": "123456701", "rateId": "98765", "value": 4, "source": "request" }
  ],
  "price": {
    "requested": 1,
    "applied": "verified",
    "verification": {
      "ran": true,
      "matched": 7,
      "mismatched": 0,
      "rows": [
        { "date": "2026-07-01", "expectedPrice": 182, "bookingPrice": 182, "match": true }
      ]
    },
    "errors": []
  },
  "restrictions": {
    "requested": 1,
    "fields": ["minStay"],
    "dates": [
      { "index": 0, "roomId": "123456701", "rateId": "98765", "start": "2026-07-01", "end": "2026-07-07", "fields": ["minStay"] }
    ],
    "applied": "rejected",
    "verification": { "ran": false, "skippedReason": "not_requested", "matched": 0, "mismatched": 0, "unreported": 0, "rows": [] },
    "errors": [],
    "rejection": {
      "status": 400,
      "message": "Minimum stay is not supported for rate 98765 on room 123456701",
      "ruid": "UmFuZG9tSVYkc2RlIyh9YW1"
    }
  }
}
```

Act on it in that order: check `applied`, and when it is `partial` read each half. The half that landed needs nothing. The half that did not carries `rejection.message`— Booking.com's words, not a paraphrase — and `rejection.ruid`, their request id, which Booking.com connectivity support can look up.

```
const result = await res.json()

if (result.applied === 'partial') {
  // Do NOT re-send the half that already landed.
  if (result.price.applied !== 'verified') {
    console.warn('prices did not land:', result.price.rejection?.message)
  }
  if (result.restrictions.applied !== 'verified') {
    console.warn('restrictions did not land:', result.restrictions.rejection?.message)
    console.warn('affected nights:', result.restrictions.dates)
  }
}
```

> **Note: Skip the read-back when you do not need it**
>
> Send `verify: false` on a `rates` write to skip the read and save a call to Booking.com. `applied` is then `unverified` — which means unknown, not applied.

## Clearing a restriction

Send `false` to clear a closed-to-arrival or closed-to-departure flag, and `minStay: 1` (or `0`) to drop a minimum stay. Omitting the field does not clear it — it leaves whatever is already set.

```bash
curl -X PUT "https://api.repull.dev/v1/channels/booking/availability" \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "availability",
    "property_id": "1234567",
    "updates": [{
      "roomId": "123456701",
      "rateId": "98765",
      "dateRange": { "start": "2026-07-01", "end": "2026-07-31" },
      "restrictions": { "minStay": 1, "closedToArrival": false }
    }]
  }'
```

## When it fails

- [`422 restriction_not_supported`](https://repull.dev/docs/errors/restriction_not_supported.md) — the restriction cannot be written through the API. `field` names it; nothing was sent.
- [`422 booking_rejected`](https://repull.dev/docs/errors/booking_rejected.md) — Booking.com refused the whole write. `message` is their reason, `booking_ruid` their request id. Resending the same body is refused again.
- [`429 booking_rate_limited`](https://repull.dev/docs/errors/booking_rate_limited.md) — back off and put more dates into one request.
- [`502 booking_error`](https://repull.dev/docs/errors/booking_error.md) — Booking.com had an outage. The request is fine; retry with backoff.
- `404 not_found` — the property is not connected to your workspace, which is also the answer for an id that does not exist.

> **Note: A partial result is never an error status**
>
> If one half lands and the other is refused you get **200** with `applied: "partial"`. An error status means nothing was applied at all.

## Related

- [Update Booking.com Pricing](https://repull.dev/docs/channels/booking/pricing.md) — rates, occupancy, and the read-back.
- [Push Availability to Booking.com](https://repull.dev/docs/channels/booking/availability.md) — rooms to sell and stop-sell.
- [Manage Properties](https://repull.dev/docs/channels/booking/properties.md) — where `roomId` and `rateId` come from.
