Params

NameTypeRequirenessDefault valueDescription
property_uidstringrequirednoneUID of property.
checkin_datestringrequirednoneYYYY-MM-DD Check-in date.
checkout_datestringrequirednoneYYYY-MM-DD Checkout date.
guest_namestringrequirednoneGuest name.
guest_emailstringrequirednoneGuest email
guests_countintrequirednoneNumber of guests
price_totalintrequirednoneTotal payout.
currencystringrequirednoneCurrency code (3 symbols).
descriptionstringoptionalnoneAdditional information.
reservation_codestringoptionalnoneReservation code to update existing booking
create_invoiceintoptional1Is invoice creation needed (1) or not (0)
request_to_bookintoptional0Create the booking as a request to book (1) or as a confirmed booking (0). A request to book gets the Awaiting Acceptance status, does not block the calendar, is accepted with v2/accept-reservation or declined with v2/decline-reservation, and is cancelled automatically if not accepted within about 24 hours; accepting a booking with no saved card confirms it without a charge. Can not be combined with reservation_code.
guestsarrayoptionalnoneAdditional guests information. Array of BookingGuest objects.

BookingGuest

KeyTypeRequirenessDefault valueDescription
guest_namestringoptionalnoneName
guest_ageintoptionalnoneAge
guest_phonestringoptionalnonePhone
guest_emailstringoptionalnoneEmail
guest_addressstringoptionalnoneAddress

Description

Create a new or update (by reservation_code) an 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"
    }
}