Create a reservation
hostaway_create_reservationCreate a new reservation on a listing (it blocks the calendar and syncs to connected channels). Only channelId 2000 (direct, the default), 2002 (homeaway) or 2020 (partner) are accepted. To price it correctly, call hostaway_calculate_price first and pass its total as totalPrice. Overbooking protection is always left on. Hostaway: POST /v1/reservations.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pets | No | Pets. | |
| phone | No | Guest phone, e.g. +15125551212. | |
| adults | No | Adults. | |
| comment | No | Free-text comment. | |
| infants | No | Infants. | |
| children | No | Children. | |
| currency | No | Currency code, e.g. USD. | |
| doorCode | No | Door / lock code for this stay. | |
| hostNote | No | Internal host note (not shown to the guest). | |
| channelId | No | 2000 direct (default), 2002 homeaway, 2020 partner. | |
| guestCity | No | Guest city. | |
| guestName | No | Guest full name. | |
| guestNote | No | Note from the guest. | |
| guestEmail | No | Guest email. | |
| totalPrice | No | Total price of the stay. | |
| arrivalDate | Yes | Arrival date (YYYY-MM-DD). | |
| checkInTime | No | Check-in time (hour of day, 0-23). | |
| checkOutTime | No | Check-out time (hour of day, 0-23). | |
| guestAddress | No | Guest street address. | |
| guestCountry | No | Guest country (ISO 3166 code, e.g. US). | |
| guestZipCode | No | Guest ZIP / postal code. | |
| listingMapId | Yes | Listing id to book. | |
| departureDate | Yes | Departure date (YYYY-MM-DD). | |
| guestLastName | No | Guest last name. | |
| doorCodeVendor | No | Lock vendor. | |
| guestFirstName | No | Guest first name. | |
| numberOfGuests | No | Total number of guests. | |
| doorCodeInstruction | No | Door-code instructions. |