Skip to main content

[AirHost API] FAQ by Endpoint

FAQ on AirHost Public API specifications and integration notes, organized by endpoint.

Y
Written by Yuuki Fujishima

General

Cleaning management via the API

The API can provide the reservation data your cleaning management system needs, but it does not include cleaning management features itself.

For example, you cannot create cleaning tasks, assign cleaning staff, or update cleaning statuses through the API. Please build these features on your own system.

Retrieving distribution status to OTAs

The distribution status to each OTA (e.g., delivered / not delivered) cannot be retrieved through the API.

Raising the API rate limit

The API rate limit (120 requests per minute per partner) cannot be raised for individual integrations.

You can reduce the request load in the following ways:

  • Use a request queue to spread out processing

  • Widen the range of data retrieved per request

  • Implement retry logic for when the rate limit is reached

Integration with external systems

For integration with external systems or AI tools (such as MCP), please see [AirHost API] About API Usage.


GET /availabilities (Query availabilities of given room type)

🔖 Booking Engine API

💰 Pricing API

Availability and manual blocks

You can retrieve information on blocks created manually on the reservation calendar through the API.

Block information you can retrieve

The blocks array in the response contains the following information.

Field

Description

room_unit

Room number / room unit

start_date

Block start date

end_date

Block end date

memo

Memo

Effect on inventory counts

Manual blocks are also reflected in the inventory counts included in inventories in the response.

Blocked rooms are treated as used inventory and are excluded from the available inventory count.


GET /feeds (Pull Latest Updates)

🏷️ In-house System API (all events except availabilities.update)

🔖 Booking Engine API (availabilities.update events only)

After the feed retention period (7 days)

Feed events are retained for 7 days. Feed events older than 7 days cannot be restored.


POST /commit_feeds (Commit Feeds Cursor)

🔖 Booking Engine API

(availabilities.update events only)

🏷️ In-house System API (all events except availabilities.update)


POST /webhooks (Push webhook notification)

🏷️ In-house System API (all events except availabilities.update)

🔖 Booking Engine API (availabilities.update events only)


GET /folios/{id} (Retrieve a Folio)

Payment information (payments) and payout data

Payment data (payments[]) specifications

Payment amount (payments[].amount)

The reservation amount (gross) the OTA charged the guest. It is not the actual payout amount (net) the OTA transfers to the property after deducting commission.

Payment date (payments[].date)

The date the payment data was created in AirHost. It is not the actual payout date from the OTA.

Checking OTA commission

payments[].amount does not include commission. If the channel shares commission data, you can check it in the channel_fee field of GET /room_reservations/{id} (see the "GET /room_reservations/{id} (Retrieve a room reservation)" section).

OTA payout batch information is not supported

The Public API does not support retrieving OTA payout batch information (data per transfer). Therefore, we cannot provide payout dates, payout amounts, or the mapping between a single payout and the multiple reservations it covers.

Prepayment for reservations created via the BE API must be processed on your system. For details, see "Notes on prepayment and auto-payment for reservations created via the BE API" in the "POST /stays (Create a Stay)" section.


PUT /guest_profiles/{id} (Update Guest Profile)


GET /room_type_and_rate_plans (List room types and rates under a given property)

💰 Pricing API


GET /properties (List Properties)

🔖 Booking Engine API

💰 Pricing API

🏷️ In-house System API


POST /properties (Create a Property)

About the property creation API (Create a Property)

With POST /properties, you can create properties through the API.

  • Requirements: Available with your contracted API credentials (partner ID and access token). No additional application or setup is required.

  • After creation: The property can be used in the same way as one created in the admin console. OTA integration, importing existing reservations, and PriceLabs integration all work as usual.

  • Pricing: Creating a property is free. However, to retrieve the reservation data of the created property through the API, you need to activate the PMS API for each property on the subscription activation page.

  • Update / delete: Properties cannot be updated or deleted through the API.

  • Duplicate uid: Sending the same uid creates a new property each time. Existing properties are not updated, so please manage this on your side to avoid duplicate registrations.

  • Fields you can register: Basic information only. Please check the available fields in the API documentation.


GET /properties/{id} (Retrieve a Property)

🔖 Booking Engine API

💰 Pricing API

🏷️ In-house System API

The room number (room_no) of the room assigned to a reservation can be found in this endpoint's response. For how to retrieve it, see "Retrieving room numbers" in the "GET /room_reservations/{id} (Retrieve a room reservation)" section.


GET /room_guests (List Room Guests under Given Room Reservation)


GET /room_guests/{id} (Retrieve a Room Guest)


GET /room_reservations (List Room Reservations Under a Stay)


GET /room_reservations/{id} (Retrieve a room reservation)

RoomReservation guest count fields

The guest count fields of RoomReservation are mapped based on guest categories and definitions that differ by OTA.

AirHost retrieves reservations from multiple OTAs, but the definitions of "child", "infant", and the child categories (ChildA–D) differ by OTA. Therefore, the API does not return values with a unified meaning; it returns values that reflect each OTA's definitions as closely as possible.

Even with the same field name, the meaning may differ depending on the OTA the reservation came from.

Basic meaning of each field

Standard guest count fields

  • adult_count Number of adults

  • child_count Number of children (excluding infants)

  • infant_count Number of infants

ChildA – ChildD fields

child_a_count – child_d_count break down child_count based on the age categories used in the Japanese hotel and ryokan industry.

  • child_a_count Upper elementary school age (approx. 10–12, about 70% meals, adult bedding)

  • child_b_count Lower elementary school age (approx. 6–9, about 50% meals, adult bedding)

  • child_c_count Preschool age (with meals and bedding)

  • child_d_count Preschool age (with meals, no bedding)

Notes on handling co-sleeping and child counts

child_d_count and co-sleeping

Some OTAs (Rakuten Travel, Ikyu, Temairazu) use child_d_count to mean "no bedding required", which roughly corresponds to co-sleeping. However, since definitions differ by OTA, child_d_count cannot be fully relied on as the number of co-sleeping children.

[Reasons]

  • Age-based OTAs such as Booking.com / Expedia / Opera do not generate child_d_count

  • Rakuten Travel and Ikyu's "no meals, no bedding (ChildF)" category is removed during normalization

  • With Temairazu, the same number may be written to both infant_count and child_d_count

  • With Rakuten Travel and Ikyu, infant_count may include infant categories "with bedding"

Therefore, infant_count and child_d_count cannot simply be treated as the number of co-sleeping children.

Note that Airbnb's infant_count has a relatively clear definition ("under 2 years old"), making it the most reliable field as a reference for the number of guests not requiring bedding.

child_count and ChildA–D

[Note]

The following relationship is not guaranteed to hold strictly.

child_a + child_b + child_c + child_d ≤ child_count

In practice, the result can be > as well as <. This is because ChildA–D is not an exact breakdown of child_count, but a classification made as far as possible based on OTA information.

When the A–D total is less than child_count (<)

For age-based OTAs (Booking.com / Expedia / Opera, etc.), AirHost applies the following simplified mapping.

  • Ages 6–12 → ChildA

  • Ages 3–6 → ChildB

Children under 3 and over 12 are not included in ChildA–D.

[Example] One 5-year-old and one 13-year-old

  • child_count = 2

  • child_a + child_b + child_c + child_d = 1

The 13-year-old is outside the ChildA–D range and is not included.

When the A–D total is greater than child_count (>)

With Japanese OTAs (Ikyu, Rakuten Travel, Temairazu), infant categories not included in the OTA's child_count may be included in ChildA–D.

[Example (Ikyu)]

With Ikyu, child_count = ChildA + ChildB, but child_a/b/c/d_count also include ChildC and ChildD.

Therefore, child_a + child_b + child_c + child_d > child_count can occur.

[Notes]

  • Treat child_count as the number of children as defined by each OTA.

  • child_a/b/c/d_count are values classified and converted, as far as possible, into child categories common in the Japanese accommodation industry.

  • Do not design or operate your system on the assumption that the two match.

Retrieving room numbers

Room numbers can be retrieved, but not directly from room_reservations.

  1. room_reservations returns the assigned room as room_unit.id.

  2. Call GET /properties/{id} and find the room with the same ID in room_types[].room_units[] to get the corresponding room_no.

If no room has been assigned to the reservation yet, room_unit is empty and the room number cannot be retrieved.

There is currently no dedicated endpoint for retrieving Room Unit information individually.

The staying guest's name can be retrieved from main_guest. For the difference from the booker's name (booker), see "Retrieving the booker's name and the staying guest's name" in the "GET /stays (List Stays)" section.


PUT /room_reservations/{id} (Update a Room Reservation)

🔖 Booking Engine API

(reservations you created only)

🏷️ In-house System API (reservations you created only)

Changing a reservation's room type

By specifying the room_type parameter, you can change the room type of an existing reservation.

When the room type change is complete, the following happens automatically:

  • The inventory allocation for the previous room type is released

  • Inventory for the new room type is allocated

Therefore, there is no need to adjust inventory manually.

* This applies to reservations created via the API.

For how per-night rates are handled when updating a reservation, see "Per-night rates when creating a reservation" in the "POST /stays (Create a Stay)" section (it also applies to reservation updates).

For how inventory and OTAs are updated when a reservation is cancelled, see "API reservations and inventory/OTA sync" in the "POST /stays (Create a Stay)" section.


GET /stays (List Stays)

🔖 Booking Engine API

(reservations you created only)

🏷️ In-house System API

(all reservations, including OTA reservations)

Retrieving the booker's name and the staying guest's name

In the AirHost API, booker information and staying guest information are returned as separate objects. Please note that where to retrieve them depends on your use case.

  • Booker's name (Stay.booker): Available from GET /stays (the person who made the reservation).

  • Staying guest's name (RoomReservation.main_guest): Available from GET /room_reservations/{id} (the representative guest who actually stays).

* The booker (booker) and the staying guest (main_guest) are not always the same person.

RoomReservation rate-related fields

This section explains the specifications of the rate-related fields of room_reservation (fee_breakdown and per_day) and points to note when integrating.

fee_breakdown / per_day specifications and integration notes

room_reservation.fee_breakdown contains daily records with type=per_day. The sum of the per_day amounts matches accommodation_fee.

Topic

Description

Reason

per_day vs. net room rate

per_day is the room rate per day, but it is not necessarily the net room rate.

If there are fee items with include_in_per_day_fee=true, those amounts are already included in per_day, so per_day is a gross amount including those fees.

To calculate the net room rate, subtract the included fees.

Depending on the rate settings, some fees (e.g., service charges) are bundled into the room rate, so per_day can be either a net or a gross amount.

per_day and fee_breakdown are officially supported

These fields are defined in the Public API specification and are officially supported.

You can safely rely on them in your integration.

Differences by reservation source

per_day is returned regardless of the reservation source, such as Booking.com and other OTAs, manual reservations, or rate plans.

The API returns the same data structure regardless of the reservation source.

Differences by reservation status

Whether per_day is returned depends on whether the room charge lines have been voided.

  • Reservations cancelled on the OTA: Room charge lines are usually voided, so per_day is empty.

  • Manually created reservations or reservations cancelled by the user, where the room charge lines have not been voided: per_day is still returned after cancellation.

OTA cancellations and manual cancellations handle charge lines differently.

per_day and other fees (e.g., cleaning_fee, channel_fee)

cleaning_fee and channel_fee are always returned as separate line items.

However, whether they are included in per_day depends on include_in_per_day_fee.

  • false: Not included in per_day

  • true: Already included in per_day

The rate settings determine whether a fee is itemized separately or bundled into the room rate.


POST /stays (Create a Stay)

🏷️ In-house System API

🔖 Booking Engine API

Per-night rates when creating a reservation

When creating or updating a reservation with POST /stays (Create a Stay) or PUT /room_reservations/{id} (Update a Room Reservation), there is no field for specifying the room rate for each night. When integrating a booking engine, please note the following behavior.

Topic

Description

Reason

booking_fee accepts only the total amount

room_reservation.booking_fee is a single numeric field representing the total room charge for the whole stay. It cannot be broken down by night at creation.

This is a current limitation of the Public API specification for reservation creation.

How the total is distributed across nights

AirHost divides the submitted total evenly by the number of nights and sets it as the per-night rate.

This average is what is shown in the reservation details, and it is also used for AirHost's automatic accommodation tax calculation.

Since no per-night rates are submitted, the system has no other basis for a per-night breakdown.

charges[] is not a substitute for per-night rates

charges[] (fee_type: booking_fee / dining_fee / cleaning_fee / cancellation_fee / other_fees) is designed to record individual billable items such as meals, cleaning, and cancellation fees. It is not for specifying per-night room rates.

Even if you submit one charge per night with a date and amount, the data is only reflected in the transaction/invoice records. It is not reflected in the reservation's per-night rate and does not affect the automatic accommodation tax calculation.

charges[] is designed for recording miscellaneous fees collected by AirHost. Treating it as a substitute for per-night rates would affect other integrations that use it for its intended purpose.

Impact on accommodation tax

AirHost's automatic accommodation tax calculation is based on the per-night rate derived from booking_fee. Therefore, tax is calculated using the average per-night rate, not the actual rate for each night.

In municipalities where the tax amount depends on the per-person, per-night rate (e.g., Osaka), the result may differ from the actual tax.

Tax is calculated from the per-night rate recorded on the reservation.

Current workaround

If you need accurate per-night rates and tax amounts, please handle them manually in one of the following ways:

  1. Manually correct the automatically calculated accommodation tax

  2. Create the reservation from the AirHost admin console instead of the API

There is currently no way to resolve this automatically through the API.

Registering a reservation on fully booked dates

Even if you register a reservation on dates that are already fully booked, the reservation is saved and marked as an overlapped (double) booking. Do not judge success by the HTTP status code alone; also check the reservation status in the response.

API reservations and inventory/OTA sync

Reservations created via the API are allocated against AirHost inventory. Changes to AirHost inventory are automatically synced to connected OTAs.

Reservations can be changed or cancelled with PUT /room_reservations/{id} (Update a Room Reservation). When a reservation is cancelled, inventory is automatically restored and synced to OTAs.

* Updates to OTAs are not instant and may take a few minutes depending on the OTA. For details, see [Channel] Synchronization speed (interval) with each OTA and the risk of double booking (overlapped booking).

How API reservations are handled

Reservations registered with the Booking Engine API (POST /stays) are treated as reservations from the AirHost booking engine. Automated messages are sent in the same way as for regular reservations, and you can exclude them by selecting "AirHost" under "Do not send to these OTAs". Inventory changes caused by these reservations are also synced to connected OTAs.

Notes on prepayment and auto-payment for reservations created via the BE API

Please process prepayment for reservations created via the BE API on your own system.

Prepayment for BE API reservations cannot be collected at the time of booking using AirHost's payment integration.

Also note that the "Channel Manager > Auto Payment" settings do not apply to reservations created via the BE API.

Using prepayment in pre-check-in and refunds on cancellation

If you want guests to prepay through AirHost's pre-check-in feature, you can use the payment solution integration.

Note that if a reservation is cancelled after payment is completed, the refund is not processed automatically.

Please process the refund manually from the reservation's "Transactions" screen.

* For detailed refund steps, see this article.


GET /stays/{id} (Retrieve a Stay)

🏷️ In-house System API

🔖 Booking Engine API

(reservations you created only)


GET /rate_plans (List Rate Plans Under a given property)

💰 Pricing API


GET /rate_plans/{id} (Retrieve a Rate Plan)

💰 Pricing API

id and uid in the response

When you retrieve rate plan information with GET /rate_plans/{id}, the response includes both id and uid.

If no uid is set for the rate plan, no error occurs; uid is returned as null (no value).

For how to specify id / uid when sending rates, see the "POST /rates (Post Rates under a given room type)" section.


POST /rates (Post Rates under a given room type)

💰 Pricing API

Bulk rate updates

You can bulk-update the rates and sales status of a specified room type through the API.

Update scope

  • Room type: One room type can be specified per request.

  • Rate plans: Multiple rate plans within the same room type can be updated together.

    • If rate_plans is not specified, all rate plans linked to the room type are updated.

  • Date range: A continuous period of up to 366 days can be specified.

  • Days of the week: With update_weekdays, you can update specific days of the week only.

Fields you can update

In one request, you can set one value for one of the following fields.

Field

Description

per_day_base_rate

Base rate per night

tier_level

Rate tier level

closed

Stop-sell status

Notes

Notes

Note

To set different rates for different dates, send a separate request for each continuous date range that shares the same rate.

How rate updates affect other settings

Rate updates via the API change only the specified fields, such as daily rates and sales status.

The following settings are not changed by rate updates via the API.

Setting

Where it is set

Additional guest fees

Rate plan settings

Maximum room occupancy

Room type settings

Specifying id / uid

When sending rate data, you can use either id or uid as the identifier.

By switching the dropdown menu on the API documentation page, you can see both formats: one using id and one using uid.

* A rate plan's id and uid can be found with "GET /rate_plans/{id} (Retrieve a Rate Plan)".

Did this answer your question?