Changelog

Changelog

[3.23.0] - 2026-11-16

Added

  • POST /reservations/{reservation_code}/charges creates a one-time charge on a reservation and returns payment_link, the Hostex payment page where the guest pays it, together with charge_id. Pass amount, currency (must be the reservation's currency) and due_date; name, note, income_item_id and idempotency_key are optional. Requires a writable access token. Typical use: create a reservation with POST /reservations, create a charge, redirect the guest to payment_link, then read payment on GET /reservations to see whether it has been paid.
    • The guest can pay with every payment account of the host that is connected, has Use for charges turned on and accepts the charge currency (WeChat Pay accounts accept CNY only, Flywire accounts only their own currency, PayPal accounts only the currencies PayPal supports). You cannot choose the account. If the host has no such account, the request returns 400 and nothing is created. payment_account_types lists the kinds of account the guest will see.
    • income_item_id defaults to 22 (Reservation payout). Only reservation payout income is counted in payment on GET /reservations, so with another income item the guest's payment does not change payment.
    • The host's charge notification rules apply as for charges created in Hostex: by default the guest also receives an email with the payment link when the charge is created, and reminders around the due date.
    • Send idempotency_key (8-64 letters, digits, - or _) to retry safely: within 24 hours the same key with the same parameters returns the existing charge with created: false; the same key with different parameters returns 409. A request with a key that failed with 500 can also be retried with the same key: it returns the charge that request created, or creates it once.
    • Cancelled, declined and expired reservations return 400. Reservations of other accounts return 404.
    • Not included yet: a webhook when the guest pays, sending the guest back to your website after paying, cancelling unpaid reservations automatically, and recurring or instalment charges.

[3.22.0] - 2026-11-11

Added

  • POST /reservations/{reservation_code}/decline accepts an optional JSON body for Airbnb reservations: decline_reason (dates_not_available, not_a_good_fit, waiting_for_better_reservation or not_comfortable; default not_comfortable), decline_message_to_guest (the message the guest reads on Airbnb) and decline_message_to_airbnb (a private note to Airbnb). Airbnb requires a message to the guest when declining; when decline_message_to_guest is omitted or empty, a default English message is sent (for example: "Sorry, we are unable to accommodate your requested dates."). An invalid decline_reason returns 400 before Airbnb is called. Other channels ignore these fields and behave as before. The MCP tool decline_reservation accepts the same fields.

Fixed

  • Declining an Airbnb request with POST /reservations/{reservation_code}/decline no longer fails with decline_message_to_guest is missing when you send decline_message_to_guest; previously the message was not passed on to Airbnb.

[3.21.0] - 2026-11-10

Added

  • Create, update, activate and deactivate Booking.com promotions. All four call Booking.com synchronously, change guest prices on Booking.com, require a writable access token and return 501 until the feature is enabled for your account (separately from POST /channel_accounts/booking/promotions/excluded_dates). Results include confirmed (true when read back from Booking.com, false when Booking.com accepted the change but had not shown it within about 30 seconds) and the Booking.com ruid. Values Booking.com rejects return 400 with the Booking.com code in error_msg; 502 means Booking.com was unavailable or the result could not be confirmed.
    • POST /channel_accounts/booking/promotions creates a promotion of type basic, last_minute, early_booker, geo_rate, mobile_rate, campaign_black_friday, campaign_early_year, campaign_getaway, campaign_late_escape or new_property_deal. Required fields and discount ranges depend on the type and are checked before calling Booking.com. A property has only one mobile_rate and one geo_rate per country channel, so creating one that already exists returns 409 with its id; change it with PATCH instead. geo_rate and mobile_rate need no name or stay_date and take at most one of early_booker or last_minute, matching how Booking.com returns them. idempotency_key is required: within 24 hours of the first request, retry a failed or timed-out request with the same key to get the promotion the first request created (created: false) instead of a duplicate; when the 502 message lists promotion ids, check them instead of retrying. non_refundable: true makes Booking.com create a 3-day non-refundable policy if the property has none. At most 20 creation requests per Booking.com property per day. MCP tool create_booking_promotion.
    • PATCH /channel_accounts/booking/promotions/{promotion_id} changes only the fields you send: name, discount, target_channel, min_stay_through, non_refundable, stay_date (start/end, active_weekdays), additional_dates, book_date, book_time (null removes the limit), last_minute, early_booker, rooms, parent_rates. Excluded dates are still changed only with POST /channel_accounts/booking/promotions/excluded_dates. Booking.com activates a promotion on every successful update, so an inactive promotion returns 409 unless you send activate: true. geo_rate promotions only accept discount, and mobile_rate promotions only discount, target_channel and parent_rates (409 otherwise). Booking.com does not return rooms and parent_rates of active promotions, so setting them usually gives confirmed: false. MCP tool update_booking_promotion.
    • POST /channel_accounts/booking/promotions/{promotion_id}/activate and …/deactivate turn a promotion on or off; changed: false when it was already in that state. Booking.com promotions cannot be deleted: deactivate them instead. MCP tools activate_booking_promotion and deactivate_booking_promotion.
    • All four MCP tools require confirmation.

Changed

  • The limit of 10 writes per minute per Booking.com property now covers all Booking.com promotion writes together, including POST /channel_accounts/booking/promotions/excluded_dates. See Rate Limits.
  • GET /channel_accounts/booking/promotions and POST /channel_accounts/booking/promotions/excluded_dates now also return 400 instead of 502 for more Booking.com error codes that mean the request itself is invalid (for example ID_INVALID, ROOMS_INVALID, RATES_INVALID), so retrying them unchanged is not useful.

[3.20.0] - 2026-11-09

Added

  • Booking.com promotions. GET /channel_accounts/booking/promotions?channel_account_id=<id> reads the promotions of a Booking.com property in real time from Booking.com: id, name, type, active, discount, min_stay_through, stay_date (with active_weekdays and excluded_dates), booking window, and linked rooms and parent_rates. Add active_only=true to return only active promotions. Promotions belong to the Booking.com property, so the input is the channel account (GET /channel_accounts), not a listing. Also available as the MCP tool get_booking_promotions (read-only).
  • POST /channel_accounts/booking/promotions/excluded_dates adds or removes excluded stay dates of one promotion with {channel_account_id, promotion_id, add[], remove[]}. Only the dates you send change; other excluded dates, the discount, rooms, rate plans and availability are untouched, and the response includes confirmed: true when the new dates were read back from Booking.com, false when Booking.com accepted the update but had not shown it within about 30 seconds (check again a minute or so later with the read endpoint; removing the last excluded date may also return false). For a few tens of seconds after an update the read endpoint may still return the old excluded dates; sending the same request again is safe. add and remove are idempotent. Only active promotions can be updated (409 otherwise), because Booking.com activates a promotion on every successful update. Dates must be YYYY-MM-DD, not in the past and within 3 years, at most 366 in total; dates Booking.com rejects return 400 with the Booking.com code in error_msg. 502 means Booking.com was unavailable or the result could not be confirmed; the update may still be applied within a few minutes, so sending the same request again is safe, but wait a few minutes and read the promotion before sending different dates. Limited to 10 updates per minute per Booking.com property; requires a writable access token; returns 501 while the feature is not yet enabled for your account. Also available as the MCP tool update_booking_promotion_excluded_dates, which requires confirmation.

Changed

  • Both Booking.com promotion endpoints call Booking.com on every request and share the stricter per-endpoint rate limit of write operations (120 requests per minute). See Rate Limits.

[3.19.1] - 2026-11-09

Fixed

  • transaction_created is now sent once for every new income or expense entry, as described in Webhook Event Types, whether the entry is added in Hostex, through POST /transactions, or by Hostex itself. Previously many new entries, for example those added from a reservation, charge payments and refunds, task fees and settled deposits, sent only transaction_updated or no webhook at all. Some of them are still followed right away by a transaction_updated for the same entry; fetch the entry with GET /transactions?id= and use its current state. The entries Hostex keeps in sync with a reservation automatically (the room fee of channel reservations, and the room fee, refunds and payment processing fees of BookingSite reservations) still send no transaction events.
  • transaction_deleted is now sent once for every deleted income or expense entry, whether it is deleted in Hostex, removed when a charge, a task or a manual booking is deleted or cancelled, or deleted through DELETE /transactions/{id}. Previously it was not sent at all. Remove the entry from your mirror when you receive it.

[3.19.0] - 2026-11-06

Added

  • Two new webhook events that say what changed, so subscribers no longer have to fetch the reservation or review after every reservation_updated / review_updated to find out:

    • reservation_cancelled — sent once when a reservation's status changes to cancelled, on the booking channel or in Hostex. Later updates to a reservation that is already cancelled do not send it again; requests that end as denied or timeout do not send it.
    • guest_review_created — sent once when the guest's review of a stay first appears, that is, when GET /reviews starts returning its guest_review. Unlike review_created, it is not sent for the empty review record some channels open at checkout; host replies and later edits do not send it again.

    Payloads are the same as reservation_created (reservation_code, stay_code, property_id). reservation_updated, review_created and review_updated are still sent for the same changes. Webhooks without an events filter start receiving the two new events; to receive only some events, set events with POST /webhooks or PATCH /webhooks/{id}. See Webhook Event Types.

  • PATCH /reservations/{stay_code}/guests/{guest_id} updates one guest's ID document and personal details: id_type, id_number, name, gender, birthday (YYYY-MM-DD) and country (ISO 3166-1 Alpha-2). guest_id is guests[].id from GET /reservations. Send at least one field; omitted fields are unchanged, and values cannot be cleared (null or an empty string returns 400). id_number must be sent together with id_type. The change is saved to the guest's profile, so every stay linked to that guest shows the new values. Changing name stops later channel syncs from overwriting it, the same as editing the name in the web app; ID fields synced from channels only fill empty values and do not overwrite yours. Returns 404 when the guest is not linked to the stay or belongs to another account. Requires a writable access token. ID document images are not uploaded through this endpoint. id_number is masked in Hostex request logs. Also available as the MCP tool update_reservation_guest.

  • GET /reservations/{stay_code}/guests lists the guests of one stay with the same fields as guests[] in GET /reservations, booker first. Every guest listed can be updated with PATCH /reservations/{stay_code}/guests/{guest_id}. For one room of a multi-room reservation it also returns guests linked only to that room, which GET /reservations does not show; the same person can then appear twice with different ids. Also available as the MCP tool search_reservation_guests (read-only).

  • GET /reservations now returns guests[].birthday (YYYY-MM-DD or null). null is also returned when the stored date looks like the placeholder the web app saves when a guest is edited without entering a birthday (1 January, 30 years before the year the guest was created or edited); a birthday written through PATCH /reservations/{stay_code}/guests/{guest_id} is always returned as written. Existing fields of guests[] are unchanged.

[3.18.1] - 2026-11-03

Changed

  • POST /webhooks: OAuth applications now have a separate quota for each application and account, with a default of 50 webhooks. Hostex can adjust it per account. Application webhooks no longer consume the account-owned quota; creation through a self-service access token remains limited to 5, and manual creation in the web portal remains limited to 3.
  • When an application-created webhook endpoint returns 410 Gone, Hostex deletes that webhook. Create it again to resume delivery. Manual webhooks and responses of 404 do not trigger deletion.
  • POST /oauth/authorizations: reusing an old refresh token within the default 60-second rotation grace period returns the same replacement token pair, while that pair still exists. This accommodates concurrent refreshes; after the grace period, the old refresh token is invalid. If waiting for a concurrent refresh times out, the request returns 429 Token refresh in progress, retry later. without rotating tokens or incrementing any failure counter; retry later.
  • POST /oauth/authorizations: invalid or already-used authorization codes and refresh tokens no longer count toward credential failures (unknown clients and failed client_secret or code_verifier checks). Both failure counters are now isolated per client_id, grant_type, and request IP; IPv6 addresses are grouped by /64. Each uses a fixed window starting with its first failure: 600 seconds for credentials, and 600 seconds by default for invalid grants; later failures do not extend it. Requests return 429 Too many attempts. when the credential-failure count is greater than 10 or the separate invalid-grant count reaches its configured limit (200 by default). Public clients (no client_secret) are also limited to 30 distinct invalid refresh tokens per client_id and request IP within the invalid-grant window by default; retrying the same refresh token counts once.
  • POST /tasks now stores level as standard when level is omitted, for every task type, matching tasks created in the Hostex web and mobile apps. GET /tasks therefore returns level: "standard" for these tasks, including maintenance, reception and other non-cleaning tasks, where it previously returned null. Tasks created before this change are not updated and still return null. Task notifications that show a level will now show the standard level for these tasks. To tell whether a task is a cleaning task, use type, not level.

[3.18.0] - 2026-10-19

Added

  • Receipt images on incomes and expenses. POST /transactions/{id}/attachments uploads one JPEG or PNG image (up to 10 MB) as multipart/form-data in a field named file and attaches it to the entry; a JSON or base64 body is not accepted. DELETE /transactions/{id}/attachments/{attachment_id} removes one attachment from the entry. GET /transactions now returns attachments, a list of {id, url} for each entry (an empty array when there are none), including attachments added in the Hostex web app; url is the original image. An entry can have at most 10 attachments, counting those added in the web app, and uploads are limited to 60 per account every 10 minutes. Adding or deleting an attachment does not change the entry's updated_at and does not send a webhook. Deleting an attachment does not delete the image file, so its URL may keep working. POST /transactions and PATCH /transactions/{id} are unchanged.

[3.17.2] - 2026-10-12

Changed

  • When a webhook endpoint answers 404 or 410, Hostex still does not retry, but now counts it as a failed delivery: a URL that keeps failing is paused for a while, and notifications during the pause are dropped, not sent later. Previously any HTTP response counted as delivered, so endpoints that no longer exist kept receiving every notification. Every other status, including 401, 403, 429 and 5xx, still counts as delivered. See the Webhook Usage Guide.
  • The first attempt of a webhook may now also come from a different IP address (previously only retries could). Keep authenticating requests with Hostex-Webhook-Secret-Token; do not allow-list a single IP.

[3.17.1] - 2026-10-09

Changed

  • The documented type of rate_amount, commission_amount and received_amount on POST /reservations (create reservation) is corrected from integer to number. The endpoint has always accepted decimal amounts (for example 200.10), the same as creating a manual reservation in the Hostex web app and the same type these fields have on PATCH /reservations/{stay_code}. Behaviour is unchanged; the documentation was wrong.

[3.17.0] - 2026-10-09

Added

  • GET /reservations now returns check_in_details.deposit_details, a breakdown of the stay's security deposit: amount, paid_amount, deducted_amount, pending_refund_amount and refunded_amount in the deposit's own currency, plus a status of unpaid, paid or refunded. To tell whether money is still to be returned to the guest, check pending_refund_amount > 0 rather than status — a deposit the host deducted in full stays paid. refunded_amount counts refunds that have been submitted, not money that has reached the guest; on international accounts it can read 0 even though the host has returned the deposit from the Host Portal, because settling such a return stores 0, and the amounts then no longer add up — do not use it as the only basis for reconciliation, take what is still to be returned from pending_refund_amount and what was actually returned from the Host Portal. For deposits paid by card through Stripe, paid means the amount is authorized on the guest's card rather than charged, and that authorization can lapse before the host deducts or returns the deposit: until Hostex settles such a deposit, the amounts still show it as paid and pending refund even though nothing is held on the card any more. deposit_details is null when Hostex has no deposit record for the stay, or when no deposit is required and none has been paid. check_in_details.deposit is unchanged. Deposit payments, deductions and refunds do not send a webhook; read them from GET /reservations.

[3.16.0] - 2026-10-09

Added

  • Every v3 webhook event now includes a string ULID event_id, shared across webhook URLs and retries for the same event. Use it to deduplicate notifications; it does not guarantee delivery or ordering.
  • GET /accounts/me returns a stable string account_id shared by the main account and sub-account authorizations.
  • POST /webhooks returns id and secret_token only on creation. Store the secret securely; query and update responses do not return it.
  • Disconnecting an OAuth application deletes its API-created webhooks for that account and sends a final authorization_revoked notification to their saved endpoints. Public clients with multiple devices disconnect only when the last token is revoked. Manual webhooks and other applications remain connected. Delivery is best effort; requests already in flight may arrive after disconnection.

[3.15.0] - 2026-09-27

Added

  • GET /reviews now returns guest_review.private_feedback: the private feedback an Airbnb guest leaves for the host together with their review. Airbnb shows it to the host alone and never publishes it, so it often carries maintenance or cleaning remarks that are missing from the public review. The text is returned exactly as Airbnb sent it. It is null when the guest did not leave any, and always null for channels other than airbnb. Existing reviews are covered as well — private feedback Hostex has already synced is returned without waiting for the review to change. The review_created and review_updated webhooks are unchanged: they still carry no review content, so read the field by calling GET /reviews after a webhook arrives, as before.
  • The operator MCP tool descriptions for search_reviews and create_review now state that guest_review.private_feedback is private to the host and must never be quoted or paraphrased in a public review or reply, so AI agents drafting replies on the host's behalf keep it out of what gets published.

[3.14.0] - 2026-09-18

Added

  • GET /listings/airbnb/price_and_rules now returns blackout dates and the current-year quota for Airbnb's highly-rated guest discount and mobile-only discount: high_rated_guest_discount_blackout_dates, high_rated_guest_discount_blackout_dates_quota, mobile_only_discount_blackout_dates, mobile_only_discount_blackout_dates_quota. Blackout nights stay bookable; the corresponding discount simply does not apply. Airbnb allows up to 30 dates per calendar year per listing and discount.
  • POST /listings/airbnb/price_and_rules now accepts high_rated_guest_discount_blackout_dates and mobile_only_discount_blackout_dates (YYYY-MM-DD arrays). Omit a field to leave it unchanged; send [] to clear. Dates can be written together with the existing enable/disable booleans, or on their own when the promotion is already enabled.

[3.13.0] - 2026-09-11

Added

  • GET /reservations now returns channel_details, a container for fields that exist on only one channel, keyed by the reservation's channel. The first such field is channel_details.airbnb.cancellation_policy_category: the cancellation policy that actually applies to an Airbnb reservation, passed through exactly as Airbnb reports it (for example flexible, long_term_flexible, tiered_pricing_non_refundable). Airbnb lets a guest choose per booking between the listing's standard policy and a discounted non-refundable rate, so two reservations on the same listing can carry different values — this field tells them apart. Reservations first synced from Airbnb after this release have the value from the start. Reservations that already existed get it the next time they change on Airbnb (for example dates, guest count, price or status); that change is announced by the usual reservation_updated webhook, and no separate webhook is sent for the value itself. Until then the field is null, and it stays null for reservations whose sync with Airbnb had already ended. For every channel other than airbnb, channel_details itself is null. Values under channel_details follow the channel's own definitions and should not be compared across channels.

[3.12.1] - 2026-09-10

Fixed

  • POST /listings/prices for ctrip listings: every price update was being rejected by Ctrip (the sync task failed with "提交变价单失败"), because the request reached Ctrip without a price. Updates now go through, and price is applied as the selling price guests pay — the same meaning it has on the Hostex portal — with Ctrip's commission deducted from it to get the host's floor price.

Changed

  • The documentation now states that for ctrip listings the two calendar endpoints use different price bases: POST /listings/calendar returns the floor price (what the host receives after Ctrip's commission), while POST /listings/prices takes the selling price. Do not compute a relative ctrip price change (for example +10%) from a value read through POST /listings/calendar. This read/write difference is long-standing behaviour and is unchanged; it is now written down.

[3.12.0] - 2026-08-24

Added

  • GET /transactions and POST /transactions now accept reservation_code — the reservation the entry belongs to — and every income / expense entry returned by GET /transactions now carries a reservation_code field. This is the same code GET /reservations returns as reservation_code, so a transaction can now be joined back to a reservation without translating identifiers. Entries not linked to a reservation (property- or operator-level) return null.

Deprecated

  • stay_code, on both GET /transactions and POST /transactions and in the GET /transactions response, is deprecated in favour of reservation_code. It continues to work and is not scheduled for removal; the two are interchangeable on input, and on output they always hold the same value. Sending both in one request is rejected with 400.

Changed

  • The documentation now spells out that an income / expense entry belongs to a reservation, not to a single unit of it. On a multi-unit reservation there is one reservation code and several stays, and an entry recorded against any one of those stays is stored against the reservation as a whole — the amount is then spread across the units in proportion to their room rates, and it reads back under the reservation's code rather than the stay code that was submitted. This is long-standing behaviour and is unchanged; only the documentation was wrong, describing the parameter as if it pinned the entry to one unit. Note that the resolution is silent: POST /transactions with a secondary stay's code returns 201 with no error and no warning, and the created entry then reports the reservation code. To record an amount against one specific unit, use property_id instead.

[3.11.0] - 2026-08-14

Added

  • POST /reservations now accepts an optional channel_id — an external reservation reference, typically the booking id in your own system — which makes the create idempotent. Within one Hostex account a given channel_id can only ever produce one reservation, so a create that is retried after a timeout cannot result in a duplicate booking: submitting the same value again returns the existing reservation instead of creating a second one. Uniqueness is enforced by a database primary key rather than a check-then-insert, so a retry that runs concurrently with the original request is safe as well. The scope is the Hostex account — sub-accounts share their parent's namespace — not your application and not the custom channel, and a value stays claimed permanently, including after the reservation is cancelled. Letters and digits only (^[A-Za-z0-9]+$, at most 32 characters): the value becomes part of the reservation code, where punctuation takes on special meaning in some code paths. It is stored as the reservation's channel_id and can be read back through GET /reservations?channel_id= — the recommended way to find out whether a create actually landed after a timeout.
  • POST /reservations now returns status next to reservation_code (wait_accept / wait_pay / accepted / cancelled / denied / timeout). A newly created reservation is always accepted; when an existing channel_id is submitted again the field reflects the current state of the reservation that already exists — replaying one that has since been cancelled returns 200 with status = cancelled, meaning the reservation is cancelled and the room is not held. Check this field rather than the HTTP status code.
  • New built-in custom channel Naver Reservation (custom_channel_id = 35), returned by GET /custom_channels for every account without having to be created on the Custom Options page, so it can be treated as a constant. Available on https://api.hostex.io/v3 only — it is not listed on the China site (https://api.myhostex.com/v3).

Fixed

  • GET /transactions: item_name now follows the account's income / expense item dictionary for system items too. The built-in item list previously overwrote the dictionary entry, so a system item could be reported under a name other than the one the dictionary holds. The dictionary is now authoritative, and the built-in name is used only for system items that have no dictionary row.

[3.10.0] - 2026-07-31

Added

  • Three new webhook events covering income / expense entries, so subscribers no longer have to poll GET /transactions over a wide action_at window — editing an entry does not move its action_at, so a narrow polling window silently misses edits to older entries:

    • transaction_created — an entry was created, whether through POST /transactions, the Hostex portal, or a system-generated charge such as a refund.
    • transaction_updated — an existing entry was modified.
    • transaction_deleted — an entry was deleted; remove it from your mirror.

    Payloads follow the existing thin-payload convention ({ event, transaction_id, timestamp }); fetch the current state with GET /transactions?id={transaction_id}. Subscribe through POST /webhooks or PATCH /webhooks/{id} like any other event. See Webhook Event Types.

[3.9.1] - 2026-07-17

Changed

  • POST /conversations/{conversation_id} (Send Message) documentation now states explicitly that the endpoint is not idempotent and returns no message ID. If a request times out the outcome is unknown — Hostex cannot determine whether the channel has already delivered the message, and that uncertainty cannot be resolved on our side, so no idempotency guarantee is offered. Behaviour is unchanged; the guarantee is simply now written down, along with our recommendation: on error, retry — a guest receiving a duplicate message is better than a guest receiving no message at all.

[3.9.0] - 2026-06-25

Added

  • GET /reservations now returns a payment object for each reservation, exposing the same Received / Unreceived collection status shown in the Hostex web app: total_amount (expected amount), received_amount (already received), balance_amount (still outstanding, never negative) and status (unreceived / partial / received / over_received). Settlement is computed at the order level, so stays sharing the same reservation_code carry identical payment values. Most meaningful for Hostex Direct (manually created) reservations whose income is recorded via POST /transactions.

[3.8.0] - 2026-06-17

Added

  • GET /listings/airbnb/price_and_rules and POST /listings/airbnb/price_and_rules now support high_rated_guest_discount and mobile_only_discount boolean fields to read and toggle Airbnb's highly-rated guest discount and mobile-only discount promotions.

[3.7.0] - 2026-06-12

Added

  • New Messages endpoints to manage special offers and pre-approvals in a conversation (previously only available in the Hostex Inbox UI):
    • GET /conversations/{conversation_id}/special_offers lists the special offers and pre-approvals sent in a conversation, with their current status (active / accepted / declined / expired / withdrawn). The returned id is used to withdraw an offer. Exposed as MCP tool search_special_offers.
    • POST /conversations/{conversation_id}/special_offers sends a special offer to the guest, inviting them to book the given listing (listing_id) for the given dates at a custom total price, with a guest breakdown (number_of_adults / number_of_children / number_of_infants / number_of_pets). Supported on Airbnb and booking-site (direct booking) conversations; booking-site conversations also require rate_plan_id and currency. Offers typically expire 24 hours after being sent. Exposed as MCP tool send_special_offer.
    • POST /conversations/{conversation_id}/preapprovals pre-approves the guest's inquiry (Airbnb conversations only), inviting them to book the listing and dates they asked about at the standard price. Exposed as MCP tool send_preapproval.
    • DELETE /conversations/{conversation_id}/special_offers/{special_offer_id} withdraws a previously sent offer that is still active. Exposed as MCP tool withdraw_special_offer.
  • New read endpoints for listing-level pricing and rules, complementing the existing write endpoints:
    • GET /listings/airbnb/price_and_rules returns an Airbnb listing's current prices, fees, discounts, booking settings and availability rules, read in real time from Airbnb. The response mirrors the settings object accepted by POST /listings/airbnb/price_and_rules (values can be written back as-is), plus eligible_cancellation_policies listing the valid cancellation_policy values for the listing. Rate limited to 120 requests per minute, same as write operations.
    • GET /listings/vrbo/price_and_rules returns a Vrbo listing's prices, fees and booking rules as currently recorded by Hostex (the synced snapshot, not a real-time read from Vrbo). The response mirrors the settings object accepted by POST /listings/vrbo/price_and_rules.

[3.6.0] - 2026-06-01

Added

  • POST /reviews/{reservation_code} now accepts an optional category_ratings object to submit per-category sub-ratings (overall_rating, cleanliness, communication, respect_of_house_rules, recommend) together with the host review. Only effective on channels that support category ratings (currently Airbnb and Zhenguo). When host_review_score is omitted, the overall_rating value is used as the review score.
  • New write endpoints to update listing-level pricing, fees and booking rules (the listing's default settings, not a specific date range; only the fields you provide are updated):
    • POST /listings/airbnb/price_and_rules updates an Airbnb listing's prices, fees, discounts, booking settings and availability rules (base_price, weekend_price, cleaning_fee, security_deposit, pet_fee, early_bird_discount / last_minute_discount / long_term_discount, check_in_start_time / check_in_end_time / check_out_before, instant_booking, minimum_stay / maximum_stay, advance_notice, availability_window, cancellation_policy, new_listing_promotion, etc.). Processed synchronously against Airbnb.
    • POST /listings/vrbo/price_and_rules updates a Vrbo listing's prices, fees and booking rules (base_price or per-weekday nightly_rate, cleaning_fee, security_deposit, extra_guest_fee, weekly_discount / monthly_discount, check_in_start_time / check_out_before, instant_booking, minimum_stay, advance_notice, availability_window). Processed synchronously against Vrbo.

[3.5.0] - 2026-05-25

Added

  • New Messages write endpoint to manage the host-side note attached to a conversation thread (the same note already exposed read-only on GET /conversations/{conversation_id}):
    • PATCH /conversations/{conversation_id}/note sets or clears the note. Notes are stored only in Hostex (visible in the Hostex Inbox), are never sent to the guest or pushed to any channel, and are shared across operators inside the same account so the team can leave context for each other. Pass an empty string or null in note to clear the existing note (max 5000 chars). Exposed as MCP tool update_conversation_note.
  • New write operations on the Property group dictionary, complementing the existing GET /groups:
    • POST /groups creates a new property group (name required; optional property_ids to pre-attach properties). Group names must be unique within the operator's account. Exposed as MCP tool create_property_group.
    • PATCH /groups/{id} updates a group. name renames it; property_ids replaces the full property assignment (empty array detaches all). Exposed as MCP tool update_property_group.
    • DELETE /groups/{id} deletes a group and its pivot rows; the underlying properties are unaffected. Exposed as MCP tool delete_property_group.
  • New write operations on the Property tag dictionary, complementing the existing GET /tags:
    • POST /tags creates a new property tag (name required; optional color from the Hostex palette, property_ids, room_type_ids). Operators are capped at 500 property tags; soft-deleted same-name tags are transparently restored. Exposed as MCP tool create_property_tag.
    • PATCH /tags/{id} updates a tag. name / color change the tag itself; property_ids / room_type_ids each replace the full attached list (empty arrays detach all). Exposed as MCP tool update_property_tag.
    • DELETE /tags/{id} deletes a tag and its property / room-type pivot rows. Exposed as MCP tool delete_property_tag.
  • New Reservation Tags section with read/write coverage of the operator's reservation tag dictionary (the tags that POST /reservations/{stay_code}/tags can attach to a reservation):
    • GET /reservation_tags lists the operator's reservation tag dictionary, including both system default tags (is_default = true, shared across operators) and the operator's own custom tags. Supports offset / limit pagination, id lookup and keyword substring search. Exposed as MCP tool search_reservation_tags.
    • POST /reservation_tags creates a new custom tag (tag_name only, max 15 chars). Color is auto-assigned from the Hostex palette. Name collisions against the system defaults or the operator's existing tags return 409; a soft-deleted tag with the same name is transparently restored. Operators are capped at 500 custom tags. Exposed as MCP tool create_reservation_tag.
    • DELETE /reservation_tags/{id} deletes one of the operator's custom tags. System default tags cannot be deleted via this API. Deletion also detaches the tag from every reservation it had been applied to. Exposed as MCP tool delete_reservation_tag.
  • New Calendar Share Links section with read/write coverage of public, read-only calendar share links (the same artefacts the Hostex Host Portal exposes under "Share calendar"):
    • GET /calendar_share_links lists the operator's share links. Each entry returns id, scope (entire / partial), the share url and the property_ids the link exposes (empty when scope = entire). Exposed as MCP tool search_calendar_share_links.
    • POST /calendar_share_links creates a new share link. scope = entire covers every property (idempotent: returns the existing link if any). scope = partial requires a non-empty property_ids list; each id must belong to the operator. Exposed as MCP tool create_calendar_share_link.
    • DELETE /calendar_share_links/{id} invalidates a share link; anyone holding the previous URL will get a share link invalid error. Exposed as MCP tool delete_calendar_share_link.

Changed

  • GET /tags x-mcp metadata: description and intent_examples clarified — this endpoint returns property tags (the tags attached to properties / room types), not reservation tags. The new MCP tool search_reservation_tags covers the reservation tag dictionary. The response shape itself is unchanged.
  • GET /reservations: each reservation now includes checkin_guide_images, an array of ID document images uploaded by guests through the online check-in guide. The list covers every image submitted under the reservation — including images not yet linked to a guest record (client_id is null for those). Each entry has id, client_id and url (extra-large CDN variant). Existing per-guest guests[].id_images is unchanged.
  • GET /reservations: each reservation now exposes rates.tax, the reservation TAXES amount as a standalone { currency, amount } object (null when the reservation has no taxes). The aggregated rates.rate and rates.details are unchanged.

[3.4.1] - 2026-05-21

Changed

  • BREAKING GET /knowledge_bases: property_ids query parameter is now a comma-separated integer string (e.g. 1,2,3) instead of a repeated array, matching GET /automation/actions and the rest of the v3 list endpoints.
  • BREAKING POST /knowledge_bases and PATCH /knowledge_bases/{id}: scope_property.scope_ids renamed to scope_property.ids so the field name matches the value returned by GET /knowledge_bases and GET /knowledge_bases/{id}.

Added

  • GET /knowledge_bases/{id}: response now includes process_status (string enum waiting/processing/done/failed), matching the list endpoint.
  • GET /automation/actions: each item in actions[] now includes type (message/review) and stay_code (linked reservation code, may be null).
  • POST /automation/actions/{plan_id}/execute: documented 400 response for unsupported plan types or review plans whose reservation has not checked out yet.

Fixed

  • GET /knowledge_bases: filtering by channel_types no longer crashes with a TypeError; scope_property in each row now correctly reflects the entry's actual property scope (all / by_property / by_group / by_room_type) instead of always falling back to an empty by_property set.
  • GET /knowledge_bases/{id}: same scope_property correctness fix as above.
  • POST /knowledge_bases and PATCH /knowledge_bases/{id}: when scope_channel.type is all, the upstream channel list is no longer populated with an unknown sentinel; permission failures on PATCH /knowledge_bases/{id} and DELETE /knowledge_bases/{id} now consistently return 404.
  • GET /knowledge_bases: pagination now respects arbitrary offset values instead of always advancing by a full page (previous ceil(offset / limit) + 1 made offset=5, limit=10 return rows 11–20 instead of 6–15).
  • GET /automation/actions: results are now correctly scoped to the operator's master account, so sub-account access tokens no longer return an empty list. The total count also matches the number of returned actions[] rows (plans missing their rule or detail row are filtered in SQL instead of skipped in PHP).
  • POST /automation/actions/{plan_id}/execute: same-day reviews are no longer rejected as "not yet checked out" — the check-out date comparison now uses the date portion of the reservation's check-out timestamp instead of a lexicographic string compare.

[3.4.0] - 2026-05-20

Added

  • New Knowledge Base section with full read/write coverage of the HostGPT knowledge base entries used by the automation assistant. Each entry carries a content body and a scope (properties / channels) where it applies:
    • GET /knowledge_bases to list entries, with pagination and optional filtering by property or channel.
    • GET /knowledge_bases/{id} to fetch the full detail of a single entry.
    • POST /knowledge_bases to create a new entry.
    • PATCH /knowledge_bases/{id} to update an existing entry.
    • DELETE /knowledge_bases/{id} to delete an entry.
  • New Channels section with read-only access to the operator's connected channel accounts and the listings synced from them:
    • GET /channel_accounts returns the third-party platform accounts the operator has connected (Airbnb, Booking.com, etc.) with channel_type, username, origin_account_id and a readable auth_status enum (active / connecting / disconnected / exception). Supports filtering by id and channel_type. Accounts with channel_type=booking_site are excluded. Exposed as MCP tool search_channel_accounts.
    • GET /listings returns the listings (channel-side properties) synced under those accounts with listing_id, channel_type, channel_account_id, title, cover, url, inventory, a readable shelf_status enum and a metadata passthrough object exposing the normalized channel-side data Hostex caches internally (geo, pictures, price list, etc.; shape varies by channel). Supports filtering by channel_account_id, listing_id and channel_type. Exposed as MCP tool search_listings.
  • GET /tasks: new optional id query parameter for fetching a single task by its internal id (still scoped to the current operator). Other filters remain unchanged.
  • GET /transactions: new optional id query parameter for fetching a single transaction entry by its internal id. When id is supplied, start_date and end_date may be omitted; otherwise the existing date-range requirement (and 366-day cap) still applies.
  • GET /reservations: each entry in guests now includes an id_images array exposing the ID document images uploaded for that guest. Each item carries the image id and a url pointing to the extra-large variant served by the image CDN. Returns an empty array when no image has been uploaded.
  • GET /conversations/{id}: each entry in messages now includes:
    • sender_name: display name of the sender when known (operator account name for host-side messages, HostGPT for HostGPT-generated messages, localized HostGPT label for shadow preview messages). null for guest messages and other cases where the sender cannot be resolved.
    • sources: knowledge sources cited by HostGPT to generate the message, grouped by type (e.g. checkin_guide, automation_reply, host_knowledge, thread, host_assistant). Each group exposes docs[].title / docs[].fragment / docs[].source_type / docs[].link_id. Empty array for human-sent messages and HostGPT messages without resolved citations.
  • PATCH /reservations/{stay_code}/check_in_details: new optional id_required field controls whether the guest must register / upload ID documents before check-in. String enum: not_required (no ID needed), required (collect ID, no manual review), required_with_review (collect ID and the host must manually review and approve). Internally maps to the need_credential field of the per-stay check-in guide and triggers the same downstream check-in unlocking logic as the Hostex Host Portal.
  • GET /reservations: each entry in check_in_details now exposes the matching id_required string enum (defaults to not_required when no setting has been applied to the stay).
  • GET /reservations: order_by now accepts created_at (sort by the row creation timestamp, i.e. when the reservation was first synced into Hostex). Existing values (booked_at, check_in_date, check_out_date, cancelled_at) are unchanged; default remains booked_at.
  • POST /tasks: new optional stay_code field links the task to a specific reservation by writing into the schedule_task__reservation pivot. When stay_code is supplied without property_id, the property is inherited from the stay; when both are supplied they must point to the same property. Used by the LLM workflow for "create a cleaning / maintenance task on this reservation".
  • GET /tasks: each task entry now includes a stay_code field (string, nullable) — the reservation the task is linked to, or null for unlinked tasks.
  • New Property write endpoint:
    • POST /properties creates a new property (room) under the current operator. Only title is required; everything else (address, channels, pictures, prices, default check-in/out times) is configured afterwards via the Hostex Host Portal. Subject to the property quantity limit of the operator's subscription.
  • New Room Type write endpoint:
    • POST /room_types creates a new room type under the current operator. Optionally accepts property_ids to link existing properties at creation time (each property must not already belong to another room type). Subject to the room type quantity limit (capped by the property quantity limit of the subscription) and not available on Basic editions.
  • New GET /pricing_ratios endpoint (under Listing Calendar) returns the per-channel pricing ratio of each OTA listing linked to a property (property_id) or room type (room_type_id). Each entry exposes channel_type, listing_id, listing_title, ratio (percent) and readonly. This enables a "change price by property / room type" workflow at the skill / client layer without a dedicated server endpoint: read the ratios, compute target_price = round(base_price * ratio / 100) for every non-readonly listing, then call POST /listings/prices once per listing (readonly: true listings — e.g. Airbnb child rate plans — must be skipped).

[3.3.1] - 2026-05-11

Fixed

  • GET /transactions: start_date and end_date are now consistently interpreted in the operator's configured timezone, matching how entries are stored and how action_at is returned. Previously the boundaries could be evaluated in the database session's default timezone, causing up to a one-day shift for operators not in UTC+8.
  • POST /transactions and PATCH /transactions/{id}: action_at values supplied as UTC ISO 8601 are now correctly converted to the operator's timezone before being persisted, so the round-trip with GET /transactions returns the same instant.

[3.3.0] - 2026-05-08

Added

  • GET /reservations: new optional channel_id query parameter to filter reservations by the channel-side reservation ID (the same value returned as channel_id in the response).

[3.2.0] - 2026-04-29

Added

  • New Incomes & Expenses section, with full read/write coverage of income and expense entries (transactions):
    • GET /transactions for querying entries. Supports filtering by date range (start_date / end_date), property_id, stay_code, direction, item_id, payment_method_id, currency and keyword. Each entry exposes direction (income / expense), link_type (property / reservation / operator) and status (paid / outstanding) as readable string enums, and resolves item_name / payment_method_name from the dictionaries below.
    • POST /transactions to record a new entry. The link target is inferred from the request: provide stay_code to record against a specific stay, property_id to record against a property, or neither for an operator-level entry (master operator only). amount is always positive — sign is derived from direction. currency is required unless stay_code is provided, in which case it is inherited from the reservation order.
    • PATCH /transactions/{id} to update an entry's amount, item_id, payment_method_id, action_at or note. Direction, link target and currency are immutable.
    • DELETE /transactions/{id} to permanently delete an entry.
    • New dictionary endpoints GET /income_items, GET /expense_items, GET /income_methods and GET /expense_methods decode the item_id / payment_method_id returned by GET /transactions.
  • New Task write endpoints:
    • POST /tasks to create a schedule task. Optional property_id and staff_id link the task to a property and assign a staff; level is only meaningful for cleaning tasks. expected_date / expected_time are interpreted in the operator's configured timezone. Returns the new task_id.
    • PATCH /tasks/{id} to update an existing task. All fields are optional; pass property_id=0 or staff_id=0 to detach. The full status lifecycle (pending / in_progress / completed / cancelled) can be set here. expected_date / expected_time are interpreted in the operator's configured timezone.
    • DELETE /tasks/{id} to delete a task.
  • New Staff write endpoints:
    • POST /staffs to create a schedule staff (created as active). Use property_ids to scope the staff to specific properties. International operators must provide mobile in +<country code> <number> format.
    • PATCH /staffs/{id} to update an existing staff. Passing property_ids replaces the full assignment list; pass an empty array to clear. is_active toggles enable/disable.
    • DELETE /staffs/{id} to delete a staff (and remove their property assignments).

Changed

  • PATCH /reservations/{stay_code} (Update Reservation Basic Info): the path parameter is now stay_code instead of reservation_code, since the endpoint updates a specific stay's attributes rather than the order. The URL pattern itself is unchanged. DELETE /reservations/{reservation_code} (Cancel) and the channel-facing POST /reservations/{reservation_code}/approve|decline keep reservation_code since they operate at the order level.

Fixed

  • GET /reservations: the custom_channel.id field now returns the same id used by GET /custom_channels (previously returned an internal table primary key that could not be matched against the dictionary).

[3.1.2] - 2026-04-28

Added

  • New Task endpoints GET /tasks and GET /staffs for querying schedule tasks and staffs.
  • GET /tasks supports filtering by date range (start_date / end_date), staff_id, property_id, type and status.
  • Task type, status and level are returned as readable string enums (e.g. cleaning, pending, standard).

[3.1.1] - 2026-03-10

Added

  • New Property endpoint GET /tags returning all tags with their associated property and room type ids.
  • GET /properties supports tag_id filter and now returns a tags array on each property.
  • GET /room_types supports id and tag_id filters and now returns a tags array on each room type.

[3.1.0] - 2026-01-21

Added

  • New Property endpoint GET /groups returning all property groups with their associated property ids.
  • GET /properties supports group_id filter and now returns a groups array on each property.

[3.0.0]

Added

  • Initial release of the Hostex OpenAPI v3, with endpoints covering Properties, Room Types, Reservations, Availabilities, Listing Calendar, Messaging, Reviews, Automation and Webhooks.