---
title: "Writing Through a PMS — Documentation"
canonical: "https://repull.dev/docs/pms-writes"
description: "How writes work when a review, booking request, listing, guest or conversation comes from a connected PMS such as Guesty or Hostaway: PMS first."
updated: "2026-11-30T00:48:58.694Z"
commit: "18314c12fefb59a7545ef7607c0893919de20aa9"
---

# Writing through a PMS

When a review, booking request, inquiry, listing, guest or conversation comes from a connected PMS (Guesty, Hostaway, …), the PMS owns it. Writes to it go to the PMS first, through the same endpoints you use for everything else — you do not call a different API. If the PMS's API cannot do something, the call is refused with [422 pms\_write\_unsupported](https://repull.dev/docs/errors/pms_write_unsupported.md) naming the PMS, and nothing is written anywhere. Repull never fakes a write the PMS did not make.

> **Note: Bookings are on their own page**
>
> Creating, changing, cancelling and quoting reservations in a PMS is covered in [Creating reservations](https://repull.dev/docs/reservations/create.md) and [PMS reservation support](https://repull.dev/docs/reservations/pms-support.md). This page is everything else.

## Know before you call: capabilities.pms

`GET /v1/connect/{provider}` and `GET /v1/listings/{id}` (for a listing a PMS manages) carry `capabilities.pms`. Every `false` flag is a call that would answer `pms_write_unsupported`. `connected: false` means the PMS is not connected — the flags are what it supports once it is, and on a listing every write answers `409 no_connection`.

**cURL**

```bash
curl https://api.repull.dev/v1/connect/hostaway \
  -H 'Authorization: Bearer sk_live_YOUR_KEY'
```

**Response (excerpt)**

```json
{
  "provider": "hostaway",
  "connected": true,
  "capabilities": {
    "reservations": { "create": true, "modify": true, "cancel": true, "quote": true, "customPrice": true, ... },
    "pms": {
      "provider": "hostaway",
      "connected": true,
      "reservations": { "respond": false, "preapprove": false },
      "reviews": { "read": true, "reply": false },
      "listings": {
        "title": true, "descriptions": true, "times": true, "capacity": true, "amenities": true,
        "houseRules": false, "address": true,
        "photosAdd": true, "photosDelete": true, "photosReorder": true, "photoCaptions": true
      },
      "guests": { "create": false, "update": false },
      "conversations": { "send": true, "attachments": false, "channelSelect": true },
      "calendar": { "write": true },
      "payments": { "read": false },
      "tasks": { "read": true, "write": true },
      "notes": { "reviews": "...", "listings": "...", "conversations": "..." }
    }
  }
}
```

- `reservations.respond` — accept and decline booking requests the PMS relays.
- `reservations.preapprove` — pre-approve inquiries the PMS relays.
- `reviews.read` / `reviews.reply` — its reviews appear in `GET /v1/reviews`; replies go through it.
- `listings.*` — the content sections `PUT /v1/listings/{id}/content` writes to the PMS.
- `guests.create` / `guests.update` — `POST /v1/guests` with `provider`, `PATCH /v1/guests/{id}`.
- `conversations.send` / `attachments` / `channelSelect` — sending, files, and choosing the channel.
- `calendar.write` — `PUT /v1/availability/{propertyId}` can reach the PMS (still subject to the [write policy](https://repull.dev/docs/connect/write-policy.md)).
- `notes` — the limits worth knowing, per family, in plain words.

## By PMS

The same flags for every connected PMS. Guesty and Hostaway have the full breakdown — what works, what is refused and why — on their pages: [Guesty](https://repull.dev/docs/pms/guesty.md#what-you-can-do), [Hostaway](https://repull.dev/docs/pms/hostaway.md#what-you-can-do).

| PMS | Review replies | Accept / decline | Pre-approve | Listing content | Guest profiles | Send messages | Choose channel | Attachments | Calendar writes |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| [Hostaway](https://repull.dev/docs/pms/hostaway.md) | – | – | – | ✓ | – | ✓ | ✓ | – | ✓ |
| [Guesty](https://repull.dev/docs/pms/guesty.md) | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | – | ✓ |
| [OwnerRez](https://repull.dev/docs/pms/ownerrez.md) | – | – | – | – | – | – | – | – | – |
| [Smoobu](https://repull.dev/docs/pms/smoobu.md) | – | – | – | – | – | ✓ | – | – | – |
| [Beds24](https://repull.dev/docs/pms/beds24.md) | – | – | – | – | – | ✓ | – | – | – |
| [iGMS](https://repull.dev/docs/pms/igms.md) | – | – | – | – | – | ✓ | – | – | – |
| [Hospitable](https://repull.dev/docs/pms/hospitable.md) | ✓ | – | – | – | – | ✓ | – | – | – |
| [Lodgify](https://repull.dev/docs/pms/lodgify.md) | – | – | – | – | – | – | – | – | – |
| [BookingSync](https://repull.dev/docs/pms/bookingsync.md) | – | – | – | – | – | ✓ | – | – | – |
| [Cloudbeds](https://repull.dev/docs/pms/cloudbeds.md) | – | – | – | – | – | – | – | – | ✓ |
| [Mews](https://repull.dev/docs/pms/mews.md) | – | – | – | – | – | – | – | – | ✓ |
| [Track](https://repull.dev/docs/pms/track.md) | – | – | – | – | – | ✓ | – | – | ✓ |
| [RentalReady](https://repull.dev/docs/pms/rentalready.md) | – | – | – | – | – | ✓ | – | – | ✓ |
| [CiiRUS](https://repull.dev/docs/pms/ciirus.md) | – | – | – | – | – | – | – | – | – |

## Reviews and replies

Reviews read from a PMS appear in `GET /v1/reviews` with `pms` set to the PMS (`"guesty"`, `"hostaway"`, `"hospitable"`). `platform` is still the channel the guest wrote the review on. `pms` is `null`for a review from a channel you connected directly. When the same stay's review arrives both from a channel you connected directly and from a PMS, you get it once: the channel's copy wins, whichever arrived first.

`POST /v1/reviews/{id}/reply` answers a PMS review through that PMS, and the response names it in `pms`. Guesty and Hospitable reply on Airbnb and Booking.com reviews (Hospitable takes one response per review, while the channel's response window is open; otherwise `422 pms_rejected`with Hospitable's reason). Hostaway's review API is read-only, so a reply to a Hostaway review is `422 pms_write_unsupported`.

## Booking requests and inquiries

`POST /v1/reservations/{id}/accept` and `/decline` answer a request the PMS relays in that PMS, whatever channel it came from. `POST /v1/conversations/{id}/pre-approval` pre-approves an inquiry the PMS relays. The response carries `pms`. Guesty answers requests and pre-approves Airbnb inquiries (no message on approve or pre-approve, and no switch to block Instant Book). Hostaway has no API for either — answer them in Hostaway. A reservation that is not a pending request is still `409 reservation_not_pending`.

## Listing content

On a listing a PMS manages, `PUT /v1/listings/{id}/content` writes title, descriptions, check-in/out times, capacity, amenities, house rules, address and added photos to the PMS first, section by section, and keeps in Repull only what the PMS accepted. The response says what happened:

```
{
  "id": "4118",
  "changed": ["title", "amenities"],
  "deferred": ["houseRules"],
  "pms": {
    "provider": "hostaway",
    "applied": ["title", "amenities"],
    "errors": [
      { "section": "houseRules", "code": "unsupported", "message": "Hostaway: house-rule switches (pets, smoking, events, children) are not writable. Change them in Hostaway." }
    ]
  }
}
```

- A section the PMS refused is listed in `deferred` and in `pms.errors`, and is not written in Repull either.
- When the PMS applied nothing, the call is `422 pms_write_unsupported` (or `pms_rejected` when it refused the values).
- Send photos with `photosMode: "append"` — replacing a PMS listing's photo set needs the PMS's own photo ids.
- A PMS with no content API at all (Mews, Cloudbeds, Lodgify, …) keeps the content in Repull only, as before.

## Guests

`POST /v1/guests` with `provider` creates the guest in that PMS first; its id there comes back as `pms.externalId`. `PATCH /v1/guests/{id}`changes a guest's name, email, phone or language — for a guest linked to a PMS (created with `provider`, or imported from it) the change is written to the PMS first, and `pms`lists each PMS it reached. Email and phone are added as the guest's newest contact; earlier ones are kept. Hostaway has no guest records, so both are refused for it.

**cURL**

```bash
curl -X PATCH https://api.repull.dev/v1/guests/790 \
  -H 'Authorization: Bearer sk_live_YOUR_KEY' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: 6f1c2a9e-3b7d-4c55-9a0e-2f8d4b1e7c30' \
  -d '{ "lastName": "Rossi", "email": "marco.rossi@example.com" }'
```

**TypeScript**

```typescript
import { Repull } from '@repull/sdk'

const repull = new Repull({ apiKey: process.env.REPULL_API_KEY! })
const guest = await repull.guests.update(
  790,
  { lastName: 'Rossi', email: 'marco.rossi@example.com' },
  { idempotencyKey: crypto.randomUUID() },
)
// guest.pms → [{ provider: 'guesty', applied: ['guest'] }]
```

**Response**

```json
{
  "id": 790,
  "firstName": "Marco",
  "lastName": "Rossi",
  "language": "it",
  "contacts": [
    { "type": "email", "value": "marco.rossi@example.com", "isPrimary": true }
  ],
  "updatedAt": "2026-10-03T14:02:11Z",
  "pms": [{ "provider": "guesty", "applied": ["guest"] }]
}
```

## Messages

On a conversation a PMS relays, `POST /v1/conversations/{id}/messages` sends through the PMS. Omit `channel`to send on the conversation's own channel — the right default. Pass it to choose, using the PMS's own names or Repull's, which the PMS maps:

- **Guesty**: `airbnb2`, `platform` (the booking's channel), `email`, `sms`, `whatsapp`, or `note` for an internal note the guest does not see. `airbnb`, `booking`, `vrbo` and `website` are mapped.
- **Hostaway**: `channel` (the booking's channel), `email`, `sms`, `whatsapp`. `airbnb`, `booking`, `vrbo` and `expedia` only when the booking is on that channel.

A PMS that cannot choose a channel, or cannot send files, refuses the message with `422 pms_write_unsupported` and nothing is sent. Neither Guesty nor Hostaway can send attachments through its API — put a link in the text instead.

## Calendar

`PUT /v1/availability/{propertyId}`on a listing a PMS manages also writes to the PMS — open or closed nights, nightly price, minimum stay — when the connection's [write policy](https://repull.dev/docs/connect/write-policy.md#calendar) allows it. For Guesty and Hostaway those switches start **off**: the PMS is the source of its own calendar, so you opt in per connection with `PATCH /v1/connect/{provider}/write-policy`. Bookings never push to the PMS — it blocks its own booked nights.

## When a PMS write is refused

Every refusal carries `provider`, a `fix` and a `docs_url`; content writes add the per-section `pms` outcome.

| Status | Code | Meaning |
| --- | --- | --- |
| 422 | [`pms_write_unsupported`](https://repull.dev/docs/errors/pms_write_unsupported.md) | The PMS’s API cannot do this. Do not retry; do it in the PMS. |
| 403 | [`connection_reauth_required`](https://repull.dev/docs/errors/connection_reauth_required.md) | The PMS connection was revoked or lacks write access. Reconnect, then retry. |
| 409 | [`no_connection`](https://repull.dev/docs/errors/no_connection.md) | The record is managed in a PMS this workspace is no longer connected to. |
| 422 / 502 | [`pms_rejected`](https://repull.dev/docs/errors/pms_rejected.md) | The PMS refused the values; its reason is in message. |
| 409 | [`pms_unavailable`](https://repull.dev/docs/errors/pms_unavailable.md) | The PMS cannot take it right now. |
| 409 | [`pms_duplicate`](https://repull.dev/docs/errors/pms_duplicate.md) | The PMS already holds this. |
| 502 | [`pms_error`](https://repull.dev/docs/errors/pms_error.md) | The PMS could not be reached. Nothing was confirmed; retry shortly. |
