This endpoint is deprecated. Use v2/book-property instead.

Params

NameTypeRequirenessDefault valueDescription
property_uidstringrequirednoneUID of property.
checkin_datestringrequirednoneYYYY-MM-DD Check-in date.
checkout_datestringrequirednoneYYYY-MM-DD Checkout date.
guest_namestringrequirednoneGuest name.
guestsintrequirednoneNumber of guests.
price_totalfloatrequirednoneTotal payout.
currencystringrequirednoneCurrency code (3 symbols).
descriptionstringoptionalnoneAdditional information.
reservation_codestringoptionalnoneReservation code to update existing booking

Description

Create or update (by reservation_code) existing booking (airgms platform only).

Returns reservation code and platform type (see the corresponding filters section) of the booking.

This endpoint requires the following scope: direct-bookings

Request to book (v2 only)

Send request_to_book = 1 to create the booking as a request to book. The booking is created with the Awaiting Acceptance status. The response is the same as for a confirmed booking.

  • A request to book does not block the calendar. Availability is checked again on accept: if the dates were taken in the meantime, the accept fails and the request is declined.
  • Accept the request with v2/accept-reservation and decline it with v2/decline-reservation, not with v2/cancel-booking.
  • Accepting a booking with no saved card confirms it without a charge.
  • request_to_book = 1 can not be combined with reservation_code.

The resulting status per outcome:

  • Accepted with v2/accept-reservation or by the host in the inbox: Accepted.
  • Declined with v2/decline-reservation: Declined.
  • Declined by the host in the inbox: Cancelled.
  • Not accepted within about 24 hours: Cancelled.
  • Declined automatically because another request for the same dates was accepted: Declined.
  • Accept failed because the dates were taken: Declined.

Response sample

{
    "data": {
        "reservation_code": "AIRGMS5BHJ1F75W2",
        "platform_type": "airgms"
    }
}