Publish Listing

Publishes a listing that isn't on the channel yet: as a new Airbnb
listing (channel: Airbnb), as a new VRBO property (channel: HomeAway), as a new Houfy listing (channel: Houfy), or as a new
room on one of the user's Booking.com properties (channel: Booking).

Publishing is a Pro feature: a listing on the Messaging plan is
refused with a 400.

Airbnb. The listing is created on one of the user's Airbnb
accounts. Host Tools creates it there with
the listing's name, address, base price as its nightly price, the room
type given, and all of its content and photos (see "Content sync" on
/api/setListing/{listingID}), then lists it with every date closed.
Its dates open once the listing's calendar sync is on
(syncAvailability, and syncPricing for the prices), from Host
Tools' calendar, as on any other listing.

The listing needs a name, a street address, a city, a country, a map
location, a currency and a base price. An Airbnb account connected in
setup mode can't publish, as it can't list a listing.

VRBO. A property is created on one of the user's VRBO accounts,
at the listing's address, with the listing's name as its headline,
its description, property type, rooms and beds, amenities, photos,
house rules, check-in and check-out times, fees, and base price as
its nightly rate. VRBO's regulatory questions are answered with
hostType and registrationNumber, and the property is taken live
with every date blocked. VRBO lists it at once, with no review, and
with its own defaults for booking (instant booking, a Lenient
cancellation policy, pay-per-booking), which the user can change on
VRBO; it asks the user for payout details later. Its dates open once
the listing's calendar sync is on. The house rules' text and a fee
per extra guest go with the listing's next content push.

The listing needs a name of 10 to 80 characters, a description, a
street address, a city, a postal code, a state (region) in the US,
Canada or Australia, a country, a map location, a currency, a base
price and a maximum number of guests. At an address with several
units, it needs the unit (apartment) VRBO knows it by.
The VRBO account needs a phone number, two-step verification and its
business details. VRBO can't delete a property, so one it refuses
stays on the user's VRBO account, unseen by guests, and publishing
the listing again carries on with it.

Houfy. A vacation rental is created on one of the user's Houfy
accounts with the listing's name (as its headline too), description,
property type, maximum guests, bedrooms and bathrooms, and its map
location, city and country, which Houfy's map shows only roughly. It's
listed by the owner or a manager, as listedBy says. Host Tools then
prices it with the listing's currency and base price as its nightly
price, closes every date, and sends its amenities, house rules,
check-in and check-out times, size, fees and photos (see "Content
sync" on /api/setListing/{listingID}). Its dates open once the
listing's calendar sync is on.

The listing needs a name of at least 10 characters, a description, a
property type Houfy has for a vacation rental (a hotel, B&B, hostel,
condo hotel, resort, campground or riad is a multi-room listing on
Houfy, and a boat a kind of its own, neither of which a publish
creates), a maximum number of guests,
bedrooms, bathrooms, a city, a country, a map location, a currency, a
base price and 5 photos, which Houfy needs with the nightly price
before it counts a listing complete. Houfy shows a new listing in its
search, where guests find it, only once it's verified: the user
uploads their ID and a recent utility bill, insurance statement or
deed for the property on the listing's Verifications page on Houfy,
and emails [email protected] with the listing number only if Houfy doesn't
verify it. Until then nothing can be booked. Houfy can't delete a listing, so
one it refuses stays on the user's Houfy account, out of
its search, and publishing the listing again carries on with it.

Booking.com. Each Booking.com account in /api/getAccounts is
one property. Booking.com adds a room only at its property's address,
so a listing there becomes a new room on the property, and a listing
elsewhere becomes the room of a new Booking.com property of its own
(see "A new Booking.com property" below). A listing is elsewhere when
its map location is more than 100 m from the property's and its street
address isn't the property's. A room of the type given is added with
the listing's rooms and beds and maximum guests, then gets the rest of
the listing's room content: its room amenities, bathrooms, smoking
policy, fees and photos. On a property the user had, the property's
own address, name, description, photos, check-in and check-out times,
pets and children policies and amenities, which every room of it
shares, stay as they are on Booking.com. A later edit of one of them
goes out with content sync, as for any listing on the property.
Booking.com then checks
the property, and if a check names the new room (for example, it has
no amenities, or an apartment property's room has no kitchen), the
room is deleted and that's the failure. A check that the room has no
photos waits for them: Booking.com checks the room again once they're
on it. A check the property fails on
its own (a contract, invoice details) doesn't stop the publish. The
room has no rate and can't be booked until the listing's calendar
sync is on, which gives it Host Tools' prices and availability; until
then channels.Booking.opening on the listing says
waitingFor: calendarSync. The listing needs beds and a maximum
number of guests.

Another of the user's properties. For a listing elsewhere than the
property given, Host Tools looks through the user's other connected
Booking.com properties. If one is at the listing's street address and
postal code, the room goes on it and the response has its accountID,
so all of a building's units end up on one property. The room shares
that property's name, description and photos, not the listing's. A
property created for another listing takes more rooms once that
listing is on it: until then the publish waits, or is refused with a
400 when that listing's publish has failed.

A new Booking.com property. For a listing elsewhere with no
property at its address, Host Tools
creates a Booking.com property under the same Booking.com partner
account (legal entity) as the property given, and answers with
newProperty: true. The property is of the kind the room type is (an
apartment, a holiday home, a villa or a chalet), has the listing's
name, address and map location, and gets the given property's
contacts, invoice details, damage policy and payment types. It's
connected as another Booking.com account of the user's, and the
listing's room is added to it as above, with the listing's
description, photos, check-in and check-out times, pets and children
policies and amenities as the property's. Once the listing's calendar
sync has given it prices and availability, Host Tools checks the new
property with Booking.com and opens it for guests once the checks
pass, checking again each time calendar sync sends the listing to
Booking.com (at least once a day) until then; channels.Booking.opening on
the listing says what it waits for. The listing also needs a postal
code and a name Booking.com accepts, and the partner's Booking.com
contract must cover the listing's country: otherwise it's refused
with a 400, as only the partner can sign that with Booking.com. A
Booking.com property can't be deleted, so a failed publish keeps the
property it created, and publishing the listing again carries on
with it, even if its account was deleted meanwhile. That keeps
whatever was changed on the property since: its contacts and settings
are copied only while it has no contacts.

Any channel. The listing's content sync is turned on. When it
was off, the listing's content also goes to the other channels it's
on, replacing their text and photos, as turning content sync on with
/api/setListing/{listingID} does.

The publish is queued, so this answers 202. It takes a minute or
two, a few on Houfy while it imports the photos, and on Booking.com up
to half an hour while it processes them. /api/getListing/{listingID} shows it in publishing until
the listing is on the channel (channels). If the channel refuses
it, Host Tools deletes what it created there, and the failure is a
listing.publishFailed error (a type: "error" webhook and
/api/getErrors) with the channel's reason. On VRBO and Houfy, which
can't delete it, the property or listing stays for the next publish
(see above).

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

_id of the listing

Body Params
string
enum
required

The channel to publish to (HomeAway is VRBO)

Allowed:
string
required

The _id of the user's Airbnb account, VRBO account, Houfy account, or Booking.com account (property), to publish to, from /api/getAccounts

string
enum

VRBO only, and required there: whether the user rents the property out as a business (professional) or privately (private), as VRBO's regulatory questions ask. Host Tools keeps no answer, so it's sent with the publish.

Allowed:
string
length ≤ 100

VRBO only: the property's short-term rental licence or registration number, where its place requires one. The publish fails with listing.publishFailed when the place requires more than VRBO was given.

string
enum

Houfy only, and required there: who the listing is listed by, the owner or a manager, which Houfy shows guests. Host Tools keeps no answer, so it's sent with the publish.

Allowed:
string
enum

Airbnb: what guests book, the entire place (entire_home, the default), a private room or a shared room. Booking.com: the room's type, apartment to studio, by default the one the listing's property type is, else apartment. The property's category decides which Booking.com takes. Host Tools keeps no room type, so it's set on the channel only, when the listing is published.

Headers
string

Partner API key (deprecated — use OAuth 2.0 for new integrations)

string

User's authentication token (legacy). Use Authorization Bearer header for new integrations.

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json