Skip to content

Developers

REST API v1

An API over your organization's reservations, listings, payments and invoices — the same data your dashboard shows — plus the actions you allow an agent to take (payment links, refunds, the security hold, prices, guest documents). Every request is scoped to the property-manager organization that owns the API key; there is no way to read another organization's data.

Getting started

Create an API key in the admin app under Settings → API (property-manager account required — keys always act for the whole organization, so team members cannot create them). The base URL for every endpoint is:

https://<your-domain>/api/v1

Reads are GET requests returning JSON; agent actions are POST / PATCH and need a key you allowed to write (see Agent actions). A first call to try:

curl "https://<your-domain>/api/v1/listings" \
  -H "Authorization: Bearer ck_live_…"

Authentication

Send your key as a bearer token on every request:

Authorization: Bearer ck_live_…
  • The full key is shown once, at creation. Store it in a secret manager; the settings page only ever shows the last 4 characters again.
  • A missing, unknown or revoked key gets 401 invalid_api_key.
  • If a key leaks, revoke it in Settings → API — revocation is immediate — and create a new one.

Rate limits

Each key may make 60 requests per minute, with a short burst allowance. Every response carries the current state:

X-RateLimit-Limit: 60
X-RateLimit-Remaining: 57
X-RateLimit-Reset: 1753500000   # unix seconds

Past the limit you get 429 rate_limited with a Retry-After header (seconds). Well-behaved clients should pace themselves on X-RateLimit-Remaining instead of retrying on 429.

Pagination

List endpoints accept limit and offset and return:

{
  "data": [ … ],
  "totalCount": 137,
  "nextOffset": 25   // null on the last page
}

To page through results, repeat the request with offset=nextOffset until nextOffset is null. The sort order is stable, so pages never skip or repeat rows while the data does not change. A reservation that is added or cancelled during a long sync can move the rows after it by one, so for a full sync, page through one arrival-date window at a time.

Errors

Every error is JSON with a stable machine-readable code:

{ "error": { "code": "invalid_params", "message": "limit: Too big …" } }
StatusCodeMeaning
401invalid_api_keyMissing, unknown, or revoked key.
402budget_exceededAn action would move more money than the key's per-action or daily limit.
403insufficient_accessThe key may not do this (read-only, or no guest documents permission).
409(per action)The reservation is not in a state that allows the action (already paid, already settled, changed meanwhile…); read it again.
404not_foundNo resource matches (e.g. unknown check-in code).
422invalid_paramsA query param failed validation — including unknown param names, so typos surface instead of being ignored.
429rate_limitedRate limit exceeded; see Retry-After.
500internal_errorUnexpected server error; safe to retry with backoff.

Conventions

  • Dates are YYYY-MM-DD calendar days in the property's local calendar (Europe/Rome); timestamps are ISO 8601 UTC.
  • All monetary amounts are EUR numbers (e.g. 486.5).
  • Hours (checkinFromHour, guestDeclaredArrivalHour, …) are 0–23 in the listing's local time.
  • Related data is expanded only when asked for via include= — responses stay lean by default.
  • The API is versioned in the path (/api/v1); fields may be added without notice, but existing fields will not change meaning or disappear within v1.

Agent actions

An agent (your own code, or Claude through MCP) can act on reservations, within what you allow per key or connection in Settings → API keys → Access:

  • Read only (default): every read endpoint, no action.
  • Read and write: the actions below.
  • Guest documents: the ID documents with their photos, correcting their data and approving them (correcting and approving also need write).
  • Budgets: max per refund or capture, and max per day (Europe/Rome calendar day). They count money a refund returns and what a security-hold settlement takes from the guest; payment links, recorded payments and giving a hold back need none. Both are 0 until you set them, so a new write key can refund nothing.

Every action needs an Idempotency-Key header: a new random string per action, reused only to retry that same action. A retry gets the first response again (with Idempotent-Replayed: true) and never runs twice; the same key with a different body gets 422 idempotency_key_reused, and a retry while the first is still running gets 409 request_in_progress.

curl -X POST "https://<your-domain>/api/v1/reservations/ABCD2345/payment-links" \
  -H "Authorization: Bearer ck_live_…" \
  -H "Idempotency-Key: 5f0c2a8e-…" \
  -H "Content-Type: application/json" \
  -d '{"items":[{"preset":"other","description":"Crib","amount":20,"vat":"22"}]}'
  • Refunds take the line's current refunded amount as expectedRefundedEuros: if someone refunded it meanwhile, nothing happens and you get 409 refund_state_changed. Two agents, or an agent and a person, cannot refund the same thing twice.
  • Prices change only before they are charged; afterwards use a payment link or a refund for the difference.
  • Each action is recorded with the key's or connection's name in the reservation's audit log.

MCP (Claude). Connect /api/mcp as a custom connector and approve the consent (it asks for reading and for actions). The connection then appears under Settings → API keys → Agent connections, read-only: give it write access and budgets there, or disconnect it (access ends at once; a reconnection starts read-only again). The same actions exist as tools (create_payment_link, record_manual_payment, refund_payment, settle_security_hold, update_reservation_pricing, update_guest_document, approve_guest_documents), each with an idempotencyKey argument instead of the header, plus the read get_guest_documents for connections with the guest documents permission. It also returns the photos of the guests to review as images, so the model sees them without opening the links. A connection made before actions existed reconnects once.

Webhooks

Instead of polling, register an HTTPS endpoint under Settings → Webhooks and pick the events you care about. Each occurrence is delivered as a POST with a JSON body:

{
  "id": "9b2e6a1c-…",              // unique per event — dedupe on this
  "type": "checkin.completed",
  "createdAt": "2026-08-14T15:04:05.000Z",
  "data": {
    "reservation": { …same object as GET /api/v1/reservations/{checkinCode},
                     incl. pmsReservationId / pmsListingId (Hostaway ids)… },
    "payment": { … }              // extra keys on some event types, see below
  }
}
EventSent when
reservation.createdA reservation was created (PMS sync or manual import).
reservation.updatedReservation core data changed (dates, guests, price, status…). Not sent for no-op sync replays.
reservation.cancelledA reservation transitioned to cancelled.
checkin.completedThe guest flow reached its terminal complete state (documents, contract and payments all done).
checkin.awaiting_confirmationThe guest finished their part but the check-in needs host confirmation (e.g. ID documents to review).
checkin.submittedThe guest finished their part of the check-in (documents, contract, extras and payment step all done). Sent once per reservation, whether the check-in then goes straight to complete or waits for host confirmation — the one to use for a "check-in done, thank you" message. Not sent when a host marks the check-in complete from the admin.
payment.succeededA check-in payment (fees and/or security deposit) was captured via Stripe.
upsell.purchasedThe guest bought one or more optional extras: ticked on the Extras step and paid with the check-in payment, or added later from the finished screen / extras link. Also sent for the late check-in fee charged with the check-in payment when the guest declared a late arrival. Other mandatory extras are never reported.
security_hold.placedA security hold is now in place: a pre-authorization was authorized (any lane — scheduled, immediate, re-auth, guest link) or a deposit was charged.
security_hold.failedA pre-authorization attempt failed (e.g. card declined) and may need action before arrival.
security_hold.releasedThe hold was given back: pre-authorization cancelled (including from the Stripe dashboard or by expiry) or deposit refunded.
security_hold.capturedThe pre-authorized amount (or part of it) was captured as a charge.
contract.signedThe guest signed the rental contract.
document.review_requiredGuest ID documents were flagged for host review (e.g. second upload or scanner mismatch).
portale_alloggiati.sentGuest data was accepted by the Portale Alloggiati police portal.
portale_alloggiati.failedThe Portale Alloggiati send failed and needs review; the payload carries the per-guest error details.
  • payment.succeeded adds a payment object (stripePaymentIntentId, amount, feesAmount, depositAmount, paidAt); upsell.purchased adds an upsellPurchase object (stripePaymentIntentId, amount, paidAt, and items, each with upsellId, name, amount); security_hold.* add a securityHold object (source, amount, stripePaymentIntent, detail, and the failure message on security_hold.failed); portale_alloggiati.* add a portaleAlloggiati object with the error details on failure.
  • Test events: Settings → Webhooks → Send test event delivers a signed sample of any event type with a fake guest (Test Guest, test@example.com, PMS ids "0") and "test": true at the top level of the body — real events never carry it, so filter on it before messaging a guest.
  • Respond with any 2xx within 10 seconds. Redirects are not followed; anything else counts as a failure.
  • Delivery is at-least-once and ordering is not guaranteed — dedupe on the event id and rely on the embedded resource state, not on event order.
  • Failed deliveries are retried with backoff (roughly 1 min → 24 h, 8 attempts over ~2 days). An endpoint that keeps failing is disabled automatically; re-enable it from Settings → Webhooks, where you can also inspect recent deliveries and redeliver one manually.

Verifying signatures

Every delivery is signed with the endpoint's secret (shown once at creation). The X-Checkin-Signature header contains a unix timestamp and an HMAC-SHA256 of `${timestamp}.${rawBody}`:

X-Checkin-Signature: t=1753600000,v1=5257a869e7…

// Node.js
const crypto = require("node:crypto");
function verify(header, rawBody, secret) {
  const { t, v1 } = Object.fromEntries(
    header.split(",").map((p) => p.split("="))
  );
  if (Math.abs(Date.now() / 1000 - Number(t)) > 300) return false; // replay guard
  const mac = crypto
    .createHmac("sha256", secret)
    .update(`${t}.${rawBody}`)
    .digest("hex");
  return crypto.timingSafeEqual(Buffer.from(mac), Buffer.from(v1));
}

Compute the HMAC over the raw request body exactly as received — don't re-serialize the parsed JSON. The X-Checkin-Event and X-Checkin-Delivery headers carry the event type and delivery id for logging.

For no-code platforms whose built-in HMAC check only signs the body (Activepieces, n8n, Make, …), every delivery also carries X-Checkin-Signature-256: a plain hex HMAC-SHA256 of the raw body with the same secret, no timestamp and no prefix. Configure the platform with header name X-Checkin-Signature-256, algorithm SHA-256, hex encoding and an empty prefix. Prefer X-Checkin-Signature when you write your own receiver — the timestamp is what protects you from replays.

List listings

GET/api/v1/listings

Your properties: id, guest-facing name, your internal name, city, status, capacity and the standard check-in-from / checkout-by hours (0-23, listing local time). Use the returned listingId to filter reservations. Pass availableFrom/availableTo to keep only listings with no reservation on those nights.

  • Listings deleted on the PMS side are never returned; includeInactive=true re-adds manually deactivated ones.
  • Availability is based on reservations only — manual calendar blocks made in the PMS are not visible here.

Query parameters

NameTypeDefaultDescription
includeInactivestring—Also return manually deactivated listings (PMS-deleted ones stay hidden).
availableFromdate (YYYY-MM-DD)—With availableTo, only listings with no reservation on any night in the range.
availableTodate (YYYY-MM-DD)—Last night of the availability window; defaults to availableFrom.
citystring—Case-insensitive substring match on the listing's city.
limitinteger (1–500)500Rows per page (max 500).
offsetinteger (0–1000000)0Rows to skip; pass a previous response's nextOffset.

Example response

{
  "data": [
    {
      "listingId": "a3f1c2e4-5b6d-4f7e-8a9b-0c1d2e3f4a5b",
      "name": "Uptown Apartment with Balcony",
      "internalName": "Uptown 2B",
      "city": "Milan",
      "status": "active",
      "maxGuests": 4,
      "checkinFromHour": 15,
      "standardCheckoutHour": 10
    }
  ],
  "totalCount": 1,
  "nextOffset": null
}

Get a listing

GET/api/v1/listings/{listingId}

One listing by its listingId — the same object the list returns and every reservation embeds — plus its extras: name, description, mandatory, lateArrivalFromHour (late check-in fee tier, null for a regular extra), vatRate and price as a formula in EUR (perStay + perNight × nights + perGuest × guests + perGuestPerNight × guests × nights). A reservation's extrasOffer gives the resolved price for that stay.

  • Deactivated listings are returned too (a direct id lookup); listings deleted on the PMS side 404.

No query parameters.

Example response

{
  "data": {
    "listingId": "a3f1c2e4-5b6d-4f7e-8a9b-0c1d2e3f4a5b",
    "name": "Uptown Apartment with Balcony",
    "internalName": "Uptown 2B",
    "city": "Milan",
    "status": "active",
    "maxGuests": 4,
    "checkinFromHour": 15,
    "standardCheckoutHour": 10,
    "extras": [
      {
        "name": "Late check-out",
        "description": "Leave at 14:00 instead of 10:00.",
        "mandatory": false,
        "lateArrivalFromHour": null,
        "vatRate": "22",
        "price": {
          "perStay": 30,
          "perNight": 0,
          "perGuest": 0,
          "perGuestPerNight": 0
        }
      }
    ]
  }
}

List reservations

GET/api/v1/reservations

Paginated reservations, oldest arrival first. All filters are optional and combine with AND: independent arrival and departure date ranges, cancellation status, listing, and a free-text query (guest-name substring, guest check-in code, PMS reservation id, guest email, or guest phone). Expand related data with include=payments,guests.

  • Every reservation embeds its full listing object — the same shape GET /api/v1/listings returns.
  • guestEmail / phone are the PMS copies; guestDeclaredEmail / guestDeclaredPhone are what the guest entered at online check-in (null if not given).
  • query matches emails and phones both as the PMS sent them and as the guest entered them in online check-in. A full email address matches that mailbox ignoring case and +tags (carlo@gmail.com finds carlo+netflix@gmail.com; Gmail also ignores dots and googlemail.com); a fragment (3+ characters) matches as a substring. Phones compare digits only, with or without the country code (+39, 0039), from 6 digits up, so a partial number works.
  • guestFlowCompletion is 'complete' when the guest finished online check-in, 'awaiting_confirmation' when it needs host review (see idDocumentsNeedReview and securityHoldStatus), 'incomplete' otherwise.
  • securityHoldStatus: 'none' (no deposit/pre-auth due or not reached), 'awaiting_scheduled_preauth' (pre-auth scheduled, placed ~1 day before arrival), 'held' (hold in place), 'failed' (attempt failed, needs retry — securityHoldFailureReason then carries the card/bank decline or error text, null in every other state), 'released' (hold returned in full after checkout), 'captured' (damage money was taken).
  • registeredGuests (include=guests) carries identity basics from submitted ID documents only — never document numbers.
  • Amounts are EUR. totalPrice is the PMS booking total; payment rows are what was actually collected or refunded.

Query parameters

NameTypeDefaultDescription
arrivalStartDatedate (YYYY-MM-DD)—Earliest arrival date (YYYY-MM-DD), inclusive.
arrivalEndDatedate (YYYY-MM-DD)—Latest arrival date (YYYY-MM-DD), inclusive.
departureStartDatedate (YYYY-MM-DD)—Earliest departure date (YYYY-MM-DD), inclusive.
departureEndDatedate (YYYY-MM-DD)—Latest departure date (YYYY-MM-DD), inclusive.
statusactive | cancelled | allallFilter on cancellation state.
listingIduuid—Only reservations for this listing (see GET /v1/listings).
querystring—Guest-name substring, guest check-in code, PMS reservation id, guest email (full address or fragment), or guest phone (6+ digits).
includestring—Comma-separated expansions: payments, guests.
limitinteger (1–100)25Rows per page (max 100).
offsetinteger (0–1000000)0Rows to skip; pass a previous response's nextOffset.

Example response

{
  "data": [
    {
      "checkinCode": "8GY96S3N",
      "pmsProvider": "hostaway",
      "pmsReservationId": "41287653",
      "pmsListingId": "205117",
      "guestName": "Maria Rossi",
      "guestEmail": "maria.rossi@example.com",
      "phone": "+39 333 1234567",
      "listing": {
        "listingId": "a3f1c2e4-5b6d-4f7e-8a9b-0c1d2e3f4a5b",
        "name": "Uptown Apartment with Balcony",
        "internalName": "Uptown 2B",
        "city": "Milan",
        "status": "active",
        "maxGuests": 4,
        "checkinFromHour": 15,
        "standardCheckoutHour": 10
      },
      "arrivalDate": "2026-08-14",
      "departureDate": "2026-08-17",
      "nights": 3,
      "numberOfGuests": 2,
      "channelName": "Booking.com",
      "totalPrice": 486.5,
      "cancelled": false,
      "guestFlowCompletion": "complete",
      "idDocumentsNeedReview": false,
      "securityHoldStatus": "held",
      "securityHoldFailureReason": null,
      "guestDeclaredArrivalHour": 15,
      "guestDeclaredBeds": 2,
      "guestDeclaredEmail": "maria.rossi+travel@gmail.com",
      "guestDeclaredPhone": "+39 333 7654321",
      "registeredGuests": [
        {
          "name": "Maria Rossi",
          "dateOfBirth": "1990-04-02",
          "nationality": "Italy",
          "mainGuest": true
        },
        {
          "name": "Luca Rossi",
          "dateOfBirth": "1988-11-19",
          "nationality": "Italy",
          "mainGuest": false
        }
      ],
      "payments": [
        {
          "kind": "checkin",
          "purpose": "payment",
          "amount": 86.5,
          "paidAt": "2026-08-01T09:12:44.000Z",
          "stripePaymentIntent": "pi_3PqXk2Abc123def456",
          "stripeRefundId": null,
          "lineItems": [
            {
              "description": "Cleaning fee",
              "amount": 60,
              "vatRate": "22",
              "exemptionTag": null
            },
            {
              "description": "City tax",
              "amount": 26.5,
              "vatRate": "0",
              "exemptionTag": "city_tax_fuori_campo"
            }
          ]
        }
      ]
    }
  ],
  "totalCount": 137,
  "nextOffset": 25
}

Get a reservation

GET/api/v1/reservations/{checkinCode}

One reservation by its guest check-in code (the code guests receive in their check-in link). Registered guests, payments and invoices are always included. invoices lists every fiscal document issued for the stay (e-invoices, credit and debit notes, receipts) with its number, state ('queued', 'sent' = waiting for the SdI outcome, 'accepted', 'rejected', 'failed', 'cancelled'), issue date, the date the courtesy copy was emailed to the guest (emailedToGuestAt) and the billed lines. No PDF. notInvoiced lists what is still to bill: one entry per document the host would issue now (issuer, willBeKind 'invoice' or 'receipt', blockedByOpenPreauth, total, vat, lines), the same as the admin invoice page's 'to issue' cards. The money fields match the MCP get_reservation_details tool: upsells, charges (each line paid, with what was refunded), unallocatedRefunds, checkinPayment (what the guest still has to pay at check-in), cityTax (owed, paid, collectedOutside, stillToCollect, collectedByChannel) and invoiceDetails. portaleAlloggiati gives the police report status ('not_sent', 'sent', 'failed') with the errors of the last failed send. securityHoldHistory lists every security-hold step with amount and time (card_saved, preauth_authorized, preauth_captured, preauth_released, capture_refunded, deposit_authorized, deposit_collected, deposit_cancelled, deposit_refunded). extrasOffer is the guest extras page as the guest sees it now: state ('open', 'checkin_first', 'unavailable') and each extra with its price for this stay, bought and purchasableNow.

No query parameters.

Example response

{
  "data": {
    "checkinCode": "8GY96S3N",
    "pmsProvider": "hostaway",
    "pmsReservationId": "41287653",
    "pmsListingId": "205117",
    "guestName": "Maria Rossi",
    "guestEmail": "maria.rossi@example.com",
    "phone": "+39 333 1234567",
    "listing": {
      "listingId": "a3f1c2e4-5b6d-4f7e-8a9b-0c1d2e3f4a5b",
      "name": "Uptown Apartment with Balcony",
      "internalName": "Uptown 2B",
      "city": "Milan",
      "status": "active",
      "maxGuests": 4,
      "checkinFromHour": 15,
      "standardCheckoutHour": 10
    },
    "arrivalDate": "2026-08-14",
    "departureDate": "2026-08-17",
    "nights": 3,
    "numberOfGuests": 2,
    "channelName": "Booking.com",
    "totalPrice": 486.5,
    "cancelled": false,
    "guestFlowCompletion": "complete",
    "idDocumentsNeedReview": false,
    "securityHoldStatus": "held",
    "securityHoldFailureReason": null,
    "guestDeclaredArrivalHour": 15,
    "guestDeclaredBeds": 2,
    "guestDeclaredEmail": "maria.rossi+travel@gmail.com",
    "guestDeclaredPhone": "+39 333 7654321",
    "registeredGuests": [
      {
        "name": "Maria Rossi",
        "dateOfBirth": "1990-04-02",
        "nationality": "Italy",
        "mainGuest": true
      },
      {
        "name": "Luca Rossi",
        "dateOfBirth": "1988-11-19",
        "nationality": "Italy",
        "mainGuest": false
      }
    ],
    "payments": [
      {
        "kind": "checkin",
        "purpose": "payment",
        "amount": 86.5,
        "paidAt": "2026-08-01T09:12:44.000Z",
        "stripePaymentIntent": "pi_3PqXk2Abc123def456",
        "stripeRefundId": null,
        "lineItems": [
          {
            "description": "Cleaning fee",
            "amount": 60,
            "vatRate": "22",
            "exemptionTag": null
          },
          {
            "description": "City tax",
            "amount": 26.5,
            "vatRate": "0",
            "exemptionTag": "city_tax_fuori_campo"
          }
        ]
      }
    ],
    "invoices": [
      {
        "number": "2026/0142",
        "kind": "invoice",
        "state": "accepted",
        "issuer": "Rossi Affitti S.r.l.",
        "issuedAt": "2026-08-04T06:00:12.000Z",
        "emailedToGuestAt": "2026-08-04T06:01:03.000Z",
        "total": 86.5,
        "vat": 10.82,
        "correctsNumber": null,
        "replacesNumber": null,
        "lines": [
          {
            "description": "Cleaning fee",
            "quantity": 1,
            "amount": 60,
            "vatRate": 22
          },
          {
            "description": "City tax",
            "quantity": 1,
            "amount": 26.5,
            "vatRate": 0
          }
        ]
      }
    ],
    "notInvoiced": [
      {
        "issuer": "Rossi Affitti S.r.l.",
        "willBeKind": "invoice",
        "blockedByOpenPreauth": false,
        "total": 30,
        "vat": 5.41,
        "lines": [
          {
            "description": "Late check-out",
            "quantity": 1,
            "amount": 30,
            "vatRate": 22
          }
        ]
      }
    ],
    "cityTax": {
      "owed": 26.5,
      "paid": 26.5,
      "collectedOutside": 0,
      "stillToCollect": 0,
      "collectedByChannel": null
    },
    "portaleAlloggiati": {
      "status": "sent",
      "errors": []
    },
    "extrasOffer": {
      "state": "open",
      "options": [
        {
          "name": "Late check-out",
          "description": "Leave at 14:00 instead of 10:00.",
          "price": 30,
          "mandatory": false,
          "vatRate": "22",
          "bought": false,
          "purchasableNow": true
        }
      ]
    },
    "securityHoldHistory": [
      {
        "event": "preauth_authorized",
        "amount": 300,
        "at": "2026-08-01T09:13:02.000Z",
        "stripePaymentIntent": "pi_3PqXk9Abc123def789"
      },
      {
        "event": "preauth_released",
        "amount": 300,
        "at": "2026-08-06T10:00:41.000Z",
        "stripePaymentIntent": "pi_3PqXk9Abc123def789"
      }
    ]
  }
}

POST/api/v1/reservations/{checkinCode}/payment-links

Agent action: a Stripe payment link for one reservation, to send to the guest. intent 'payment' charges 1-5 lines, each with a description, the amount (EUR, VAT included), the vatRate (0 to 100, 2 decimals) and, at vatRate 0, the natura (FatturaPA code, e.g. N2.2 or N4) with an optional riferimentoNormativo; category 'city_tax' or 'damage' (vatRate 0, natura N1) marks city tax or damage compensation. There are no defaults. The owner of the Stripe account invoices it. intent 'preauth_hold' asks the guest for a new card pre-authorization (not from the departure day). Nothing is charged until the guest pays; the link expires after about 24 hours. Same action as the MCP tool create_payment_link.

  • Needs a key with write access (Settings → API keys → Access); a read-only key gets 403 insufficient_access.
  • Send an Idempotency-Key header: a new random string per action. Retrying with the same key returns the first response (header Idempotent-Replayed: true) and never creates a second link; the same key with a different body gets 422.
  • Other errors: 404 not_found (no such reservation in your organization), 409 reservation_cancelled, 422 invalid_params or payment_link_refused (the reason is in the message).

JSON body

NameTypeDefaultDescription
intentpayment | preauth_holdpayment'payment': charge lines; 'preauth_hold': a new card pre-authorization.
itemsarray—intent 'payment': the lines to charge.
holdEurosnumber—intent 'preauth_hold': the amount to pre-authorize, EUR.

Example response

{
  "data": {
    "url": "https://checkin.example.com/pay/Xk29fQ…",
    "intent": "payment",
    "expiresAt": "2026-08-02T09:12:44.000Z",
    "lineItems": [
      {
        "description": "City tax difference",
        "amount": 6,
        "vatRate": 0,
        "natura": "N1",
        "riferimentoNormativo": null,
        "category": "city_tax"
      }
    ],
    "holdEuros": null
  }
}

Record a manual payment

POST/api/v1/reservations/{checkinCode}/manual-payments

Agent action: record money the guest paid outside the app (cash, card terminal, bank transfer). Nothing is charged; the payment counts as paid (it closes a city tax still to collect) and is invoiced like a staff-recorded payment. Lines are written like payment link lines (description, amount, vatRate, natura at 0%, optional riferimentoNormativo and category; no defaults). invoicedBy (required) names who invoices it: property_owner, property_manager or stripe_account. Same action as the MCP tool record_manual_payment.

  • Needs a key with write access and an Idempotency-Key header, like every action: a retry with the same key never records the payment twice.
  • Errors: 404 not_found, 409 payment_in_progress (the guest is paying the city tax right now), 422 invalid_params (also when the reservation has no issuer for invoicedBy).

JSON body

NameTypeDefaultDescription
items*array—What the guest paid, 1-5 lines {description, amount EUR VAT included, vatRate, natura?, riferimentoNormativo?, category?}. No defaults: write the description and ask the user for the VAT rate and, at 0%, the natura when they did not say.
invoicedBy*property_owner | property_manager | stripe_account—Who invoices this payment: the listing's property owner, its property manager, or the owner of its Stripe account. No default: ask the user when they did not say.
paidAtstring—When the guest paid (ISO 8601). Default: now.

Example response

{
  "data": {
    "id": "0b6f3c1e-8a2d-4c5b-9e7f-1a2b3c4d5e6f",
    "paidTotal": 26.5,
    "paidAt": "2026-08-03T18:20:00.000Z",
    "invoicedBy": {
      "role": "property_owner",
      "name": "Mario Rossi"
    },
    "lineItems": [
      {
        "description": "Tassa di soggiorno",
        "amount": 26.5,
        "vatRate": 0,
        "natura": "N1",
        "riferimentoNormativo": null,
        "category": "city_tax"
      }
    ]
  }
}

Refund a payment line

POST/api/v1/reservations/{checkinCode}/refunds

Agent action: refund (part of) one line the guest paid by card. lineId and refunded come from the reservation's charges; send refunded as expectedRefundedEuros so two agents (or an agent and a person) never refund the same thing twice. Same action as the MCP tool refund_payment.

  • Needs a key with write access, an Idempotency-Key header, and refund budgets: amountEuros must fit the key's per-refund limit and what is left of its daily limit (Europe/Rome day), else 402 budget_exceeded. Both limits are 0 until the property manager sets them.
  • 409 refund_state_changed: the line's refunded total is no longer expectedRefundedEuros (someone refunded meanwhile); read the reservation again. 409 refund_in_progress: another refund on the stay is running.
  • 404 line_not_found: no charge line with this lineId (security deposits are not charge lines). 422 not_refundable: the line was paid in cash / outside Stripe. 422 refund_refused: Stripe or the ledger refused it (e.g. more than what is left on the line); the reason is in the message.
  • 202 with status 'pending': Stripe accepted the refund but has not settled it yet. Do not retry; it counts toward the budget and shows in charges[].refunded once settled.
  • 409 refund_pending_elsewhere: another refund on this payment is still pending in Stripe; nothing was refunded, try again once it settles.

JSON body

NameTypeDefaultDescription
lineId*uuid—The charge line to refund: charges[].lineId of the reservation.
amountEuros*number—How much to refund, EUR.
expectedRefundedEuros*number—charges[].refunded as you last read it. If someone refunded this line since, the refund is refused (409 refund_state_changed): read again.

Example response

{
  "data": {
    "lineId": "9d3c2b1a-0f9e-4d8c-b7a6-5e4d3c2b1a0f",
    "status": "succeeded",
    "refundedEuros": 20,
    "lineRefundedEuros": 20
  }
}

Settle the security hold

POST/api/v1/reservations/{checkinCode}/security-hold

Agent action: release or capture (also partially) a card pre-authorization, or refund a collected deposit keeping part of it. captureEuros is what the guest loses; 0 gives everything back. Once per hold, cannot be undone. Same action as the MCP tool settle_security_hold.

  • Needs a key with write access and an Idempotency-Key header. captureEuros above 0 counts toward the key's per-action and daily limits (402 budget_exceeded); 0 needs no budget.
  • 409 hold_not_settleable (not collected yet, or already settled), hold_already_settled, hold_operation_in_progress, deposit_refunded_outside_app (a person must confirm it in the admin). 422 hold_refused: no hold, or more than the hold.

JSON body

NameTypeDefaultDescription
captureEuros*number—Pre-authorization: the amount to capture from the card (0 releases it all). Deposit: the amount to keep (0 refunds it all; the rest goes back to the guest). Cannot exceed the hold.
holdKinddeposit | preauth—Which hold, when it differs from the listing's setting.
paymentIntentIdstring—The pre-authorization to settle when the stay has several.
captureVat22 | damage_0—Pre-auth capture only: 'damage_0' (default, damages outside the VAT base) or '22' when the capture pays for a service.

Example response

{
  "data": {
    "action": "preauth_captured",
    "holdKind": "preauth",
    "captureEuros": 80
  }
}

Change a reservation's prices

PATCH/api/v1/reservations/{checkinCode}/pricing

Agent action: before the guest pays, change what this stay will charge: the city tax owed, the security hold amount, or one extra's price for this stay only (upsellId from extrasOffer). reason is required and kept in the audit log. Nothing is charged. Same action as the MCP tool update_reservation_pricing.

  • Needs a key with write access and an Idempotency-Key header.
  • Send exactly one of cityTaxEuros, securityHoldEuros, upsell per call.
  • 409 already_collected: the amount is already charged — the city tax once the check-in payment is done or check-in is complete, the hold amount once check-in is complete or the hold is collected, an extra once paid or bought. Also when the guest pays during the change: the write is conditional, so nothing is saved. Charge the difference with a payment link (or a new pre-authorization) or refund instead.
  • 422 invalid_params: a value or extra the reservation does not accept (the reason is in the message).

JSON body

NameTypeDefaultDescription
cityTaxEurosnumber—The city tax this stay owes, EUR (manual from now on).
securityHoldEurosnumber—The security hold for this stay, EUR (0 = none).
upsellobject—One extra's price for this stay only (the catalog stays as is).
reason*string—Why: kept in the audit log (e.g. 'child under 12 exempt').

Example response

{
  "data": {
    "extCityTax": 18,
    "extCityTaxManualOverride": true
  }
}

Get guest documents for review

GET/api/v1/reservations/{checkinCode}/documents

The guest ID documents of one reservation with the data read from them and their photos (front, back, selfie) as links valid 10 minutes, for a key allowed to review guest documents. Every read is logged. Same as the MCP tool get_guest_documents.

  • Needs a key with the guest documents permission (Settings → API keys → Access); otherwise 403 insufficient_access.
  • needsReview marks the guests the host must check (the admin's review card). The MCP tool get_guest_documents also returns their photos inline as images (JPEG, at most 1200 px); this endpoint returns links only.
  • You handle guest identity data: the property manager is responsible for where these photos are sent.

No query parameters.

Example response

{
  "data": {
    "checkinCode": "ABCD2345",
    "documentsNeedReview": true,
    "photoUrlsExpireInSeconds": 600,
    "guests": [
      {
        "guestDocumentId": "0f9e8d7c-6b5a-4c3d-9e2f-1a0b9c8d7e6f",
        "needsReview": true,
        "mainGuest": true,
        "firstName": "Mario",
        "lastName": "Rossi",
        "documentType": "id",
        "documentNumber": "CA00000AA",
        "documentExpiryDate": "2031-05-02",
        "scanStatus": "mismatch",
        "flaggedForReview": true,
        "photos": [
          {
            "kind": "front",
            "mime": "image/jpeg",
            "url": "https://…"
          }
        ]
      }
    ]
  }
}

Approve guest documents

POST/api/v1/reservations/{checkinCode}/documents/approve

Agent action: approve the guest ID documents waiting for the host's review, like the admin's Approve ID documents. Read them first with the documents endpoint. Same action as the MCP tool approve_guest_documents.

  • Needs a key with write access and the guest documents permission, and an Idempotency-Key header.
  • 409 no_review_pending when nothing waits for approval; 409 reservation_cancelled.

JSON body

NameTypeDefaultDescription
note*string—What you checked (kept in the audit log).

Example response

{
  "data": {
    "approved": true,
    "guestFlowCompletion": "complete"
  }
}

Correct a guest document

PATCH/api/v1/reservations/{checkinCode}/documents/{guestDocumentId}

Agent action: correct one guest's ID document data, like the admin's guest edit. Send only the fields to change; the others stay as they are. guestDocumentId comes from the documents endpoint. Same action as the MCP tool update_guest_document.

  • Needs a key with write access and the guest documents permission, and an Idempotency-Key header.
  • The photos cannot be changed. Nothing is re-sent to the Portale Alloggiati; a corrected date of birth recalculates the city tax.
  • Allowed after the rental agreement is signed (the signed PDF keeps the old data). 409 conflict: another guest of the stay has this document number. 409 reservation_cancelled. 422 invalid_params: a value the admin edit also refuses (the reason is in the message).

JSON body

NameTypeDefaultDescription
firstNamestring—
lastNamestring—
sexM | F—
dateOfBirthdate (YYYY-MM-DD)—YYYY-MM-DD
countryOfBirthstring—Country of birth: the same code get_guest_documents returns (Italy: IT).
provinceOfBirthstring—Italian province code (e.g. MI), births in Italy.
cityOfBirthstring—Comune of birth, births in Italy.
nationalitystring—Nationality: the same code get_guest_documents returns (Italy: IT).
documentTypeid | electronic_id | passport | drivers_license—
documentNumberstring—
countryIssuedBystring—Country that issued the document: the same code get_guest_documents returns (Italy: IT).
provinceIssuedBystring—
cityIssuedBystring—
countryResidencestring—Country of residence: the same code get_guest_documents returns (Italy: IT).
provinceResidencestring—
cityResidencestring—
backPhotoWaivedboolean—true: this document counts as complete without a back photo.
note*string—Why you changed it, e.g. what the photo shows (kept in the audit log).

Example response

{
  "data": {
    "guest": {
      "guestDocumentId": "0f9e8d7c-6b5a-4c3d-9e2f-1a0b9c8d7e6f",
      "mainGuest": true,
      "firstName": "Mario",
      "lastName": "Rossi",
      "dateOfBirth": "1985-04-12",
      "documentType": "id",
      "documentNumber": "CA00000AA",
      "backPhotoWaived": false
    },
    "documentsNeedReview": true
  }
}