---
title: "Update Pricing — Documentation"
canonical: "https://repull.dev/docs/update-pricing"
description: "Push nightly rates, set minimum stays, and block or unblock dates for a property on every connected channel in one call. Body and examples."
updated: "2026-11-30T00:48:58.694Z"
commit: "18314c12fefb59a7545ef7607c0893919de20aa9"
---

# Update Pricing

Push nightly rates, set minimum stays, and block or unblock dates for any property across all connected platforms.

## When to use this endpoint

- Push seasonal pricing or weekend rate adjustments
- Set different minimum night requirements by date
- Block dates for maintenance, renovation, or owner use
- Sync dynamic pricing from a revenue management tool

> **Note: The default for calendar values**
>
> Nightly price, open/closed, minimum/maximum nights and closed to arrival/departure belong here: one write updates the Repull calendar and pushes it to the connected channels Repull can write a calendar to — Airbnb, Booking.com and Vrbo (with full access). Reach for a channel-specific endpoint only for settings that exist on a single channel (see [Channel-specific settings](https://repull.dev/docs/update-pricing.md#channel-specific)).

> **Warning: Changes are pushed to every connected channel**
>
> This call writes your calendar and pushes it to each writable connected channel in the same step, so the change reaches Airbnb, Booking.com and Vrbo. A write that only updated our copy would leave the channel calendars stale and eventually double-book a guest. Check the `synced` block in the response — a channel that rejected the push is reported there rather than swallowed.

> **Note: Listings a PMS manages**
>
> On a listing managed in a connected PMS, open/closed nights, the nightly price and the minimum stay are written to the PMS too — when the connection's write policy allows it. For Guesty and Hostaway the calendar switches start off, because the PMS is the source of its own calendar: turn them on with `PATCH /v1/connect/{provider}/write-policy`. See [PMS write policy](https://repull.dev/docs/connect/write-policy.md#calendar).

## Update availability and pricing

`PUT /v1/availability/{propertyId}`

The property id goes in the path. The body carries **one** settings object and the list of dates to apply it to — not a per-date array. To set different values on different dates, send one call per group of dates that share the same settings.

**cURL**

```bash
curl -X PUT "https://api.repull.dev/v1/availability/123" \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "dates": ["2026-06-01", "2026-06-02"],
    "available": false,
    "price": 320
  }'
```

**Node.js**

```typescript
// The @repull/sdk client has no calendar-write method, so call the endpoint directly.
const res = await fetch('https://api.repull.dev/v1/availability/123', {
  method: 'PUT',
  headers: {
    Authorization: `Bearer ${process.env.REPULL_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ dates: ['2026-06-01', '2026-06-02'], available: false, price: 320 }),
})
const result = await res.json()
if (!res.ok) throw new Error(`${result.error.code}: ${result.error.message}`)
if (result.synced.failed > 0) console.warn(result.warning)
```

**Python**

```python
import datetime
from repull.api.availability import update_availability
from repull.models import AvailabilityWriteRequest

result = update_availability.sync_detailed(
    property_id=123,
    client=client,
    body=AvailabilityWriteRequest(
        dates=[datetime.date(2026, 6, 1), datetime.date(2026, 6, 2)],
        available=False,
        price=320.0,
    ),
)
```

**Go**

```go
// needs "time" and openapi_types "github.com/oapi-codegen/runtime/types"
d1, _ := time.Parse("2006-01-02", "2026-06-01")
d2, _ := time.Parse("2006-01-02", "2026-06-02")
available, price := false, float32(320)

resp, err := client.UpdateAvailabilityWithResponse(ctx, 123, repull.AvailabilityWriteRequest{
	Dates:     []openapi_types.Date{{Time: d1}, {Time: d2}},
	Available: &available,
	Price:     &price,
})
```

**Ruby**

```ruby
api = Repull::AvailabilityApi.new(client)
result = api.update_availability(123, Repull::AvailabilityWriteRequest.new(
  dates: [Date.new(2026, 6, 1), Date.new(2026, 6, 2)],
  available: false,
  price: 320.0
))
```

**PHP**

```php
$api = new Repull\Api\AvailabilityApi($http, $config);
$result = $api->updateAvailability(123, new Repull\Model\AvailabilityWriteRequest([
    'dates' => ['2026-06-01', '2026-06-02'],
    'available' => false,
    'price' => 320.0,
]));
```

**C#**

```csharp
var result = await client.V1.Availability[123].PutAsync(
    new AvailabilityWriteRequest
    {
        Dates = new List<Date> { new(2026, 6, 1), new(2026, 6, 2) },
        Available = false,
        Price = 320,
    });
```

## Body parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `dates` | `string[]` | Yes | ISO YYYY-MM-DD dates to apply the settings to. Capped at 731 — Airbnb refuses calendar writes spanning more. |
| `available` | `boolean` | No | Block or unblock the dates. |
| `price` | `number` | No | Nightly base price, in the property currency. |
| `minNights` | `integer` | No | Minimum-stay requirement for a stay starting on these dates. |
| `maxNights` | `integer` | No | Maximum-stay limit for a stay starting on these dates. Sent to Airbnb and Booking.com. Vrbo has no per-night maximum stay, so it is not sent there. |
| `closedToArrival` | `boolean` | No | true: no check-in on these dates. false: check-in allowed again. Sent to Airbnb, Booking.com and Vrbo. Leave it out to keep the current value. |
| `closedToDeparture` | `boolean` | No | true: no check-out on these dates. false: check-out allowed again. Sent to Airbnb, Booking.com and Vrbo. Leave it out to keep the current value. |

The settings apply to every date in `dates`. To give nights different values — closed to arrival on Saturdays only, for example — send one request per group of nights. A write that leaves `closedToArrival` or `closedToDeparture` out never changes them, so a price update does not reopen a night you closed to arrival.

```
curl -X PUT "https://api.repull.dev/v1/availability/123" \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "dates": ["2026-07-04", "2026-07-11"],
    "closedToArrival": true,
    "maxNights": 14
  }'
```

> **Warning: At least one setting is required**
>
> A body carrying only `dates` is rejected with `422 invalid_params`. Every setting is individually optional, so an empty object would otherwise return `200` and change nothing — a typo would look like a success.

## Response format

Returns what was written and how the push to each connected channel went.

```
{
  "listingIds": ["123"],
  "dates": 2,
  "synced": {
    "attempted": 2,
    "succeeded": 2,
    "failed": 0,
    "authErrors": 0,
    "channels": [
      { "listingId": "123", "channel": "airbnb", "channelListingId": "53912345", "status": "accepted", "error": null, "authError": false },
      { "listingId": "123", "channel": "booking", "channelListingId": "9876501", "status": "accepted", "error": null, "authError": false },
      { "listingId": "123", "channel": "vrbo", "channelListingId": "4471234", "status": "queued", "error": null, "authError": false }
    ]
  }
}
```

### Response fields

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `listingIds` | `string[]` | No | The listings whose calendars were written. |
| `dates` | `integer` | No | How many dates were written. |
| `synced` | `object` | No | Per-channel push outcome: attempted, succeeded, failed, and authErrors — channels whose token has expired, which need reconnecting rather than retrying. |
| `synced.channels` | `object[]` | No | One entry per listing per connected channel, so you can see which channel took the write and which refused it. status is accepted (the channel took it in this request), queued (Vrbo: sent within minutes and read back; GET /v1/listings/{id}/calendar-sync shows the outcome) or failed (see error). authError is true when that channel needs reconnecting rather than retrying. |
| `warning` | `string` | No | Present only when one or more channel pushes failed. |

## Common examples

### Set a weekend rate

```
curl -X PUT "https://api.repull.dev/v1/availability/123" \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "dates": ["2026-07-11", "2026-07-12"],
    "available": true,
    "price": 325
  }'
```

### Block dates for maintenance

```
curl -X PUT "https://api.repull.dev/v1/availability/123" \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "dates": ["2026-08-01", "2026-08-02", "2026-08-03"],
    "available": false
  }'
```

### Unblock dates and set a rate

```
curl -X PUT "https://api.repull.dev/v1/availability/123" \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "dates": ["2026-08-01", "2026-08-02", "2026-08-03"],
    "available": true,
    "price": 200,
    "minNights": 2
  }'
```

### Different prices on different dates

One settings object per call, so group the dates by the values they share:

```
# Peak nights at 350, the shoulder night at 250
curl -X PUT "https://api.repull.dev/v1/availability/123" \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"dates": ["2026-07-04", "2026-07-05"], "available": true, "price": 350, "minNights": 3}'

curl -X PUT "https://api.repull.dev/v1/availability/123" \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"dates": ["2026-07-07"], "available": true, "price": 250, "minNights": 2}'
```

## The same change across many properties

`PATCH /v1/availability/batch`

Applies one settings object across up to 500 properties. Ownership is checked before anything is written, so a batch containing a property from another workspace is refused as a whole and names the offending ids rather than being partially applied. Per-property _different_ values are still separate calls.

```
curl -X PATCH "https://api.repull.dev/v1/availability/batch" \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "propertyIds": [123, 124],
    "dates": ["2026-06-01", "2026-06-02"],
    "price": 299
  }'
```

- Every property in `propertyIds` must belong to this workspace. Any that do not are named in `404 not_found` and nothing is written.
- If any property is inactive, `403 listing_inactive` names every inactive one and nothing is written.

## Errors

- `422 invalid_params` — a malformed body: missing or non-ISO `dates`, more than 731 dates, a negative `price`, a non-integer `minNights`/`maxNights`, a `closedToArrival`/`closedToDeparture` that is not `true` or `false`, or no setting at all. `field` names the problem.
- `403 listing_inactive` — the property is inactive. Activate it, then retry. See [listing\_inactive](https://repull.dev/docs/errors/listing_inactive.md).
- A channel that rejects the push does not fail the call: the calendar is still written, `synced.failed` counts the rejection and `warning` is set. `synced.authErrors` counts channels whose connection needs reconnecting rather than retrying.

## Channel-specific settings

These endpoints write to one channel only. Use them for settings the calendar write above does not carry:

- **Airbnb** — pricing model, standard settings, length-of-stay records, rate plans, fees, currency, pricing rules, closed-to-arrival/departure, why a date is blocked, and listing-level availability rules. See [Update Airbnb Pricing](https://repull.dev/docs/channels/airbnb/pricing.md) and [Push Availability to Airbnb](https://repull.dev/docs/channels/airbnb/availability.md).
- **Booking.com** — rates and restrictions per room and rate plan, through `PUT /v1/channels/booking/availability` and `PUT /v1/channels/booking/listings/{id}/pricing`. Reach for these when you need the occupancy a rate is priced at, Booking.com's own restriction set, or a read-back confirming the price is live. See [Update Booking.com Pricing](https://repull.dev/docs/channels/booking/pricing.md) and [Push Availability to Booking.com](https://repull.dev/docs/channels/booking/availability.md).

## API Reference

See the complete [Availability API Reference](https://repull.dev/docs/api/availability.md) for all endpoints including get, batch update, and calendar sync.
