Setup New Channel Mapping

Setup New Channel Mapping

To setup channel mapping with host token number.

a. Get Host Token Number

Endpoint

GET


Header
Type
Required
Description

app-id

string

Yes

Your application ID. Required for authentication.

Authorization

string

Yes

Your API key. for authorization. Required for authentication.

Content-Type

string

Yes

Must be set to application/json.


Request

Open the provided URL in a browser. It will prompt you to log in to Airbnb, and after a successful login, it will generate and display a token. Generated token from URL is used to Setup Channel Mapping.


Response

Open the provided URL in a browser. It will prompt you to log in to Airbnb, and after a successful login, it will generate and display a token. Generated token from URL is used to Setup Channel Mapping.


Success Response


Success Response - Body Elements

Status string

Indicates the result of the API call. Will be "Success" when room details are retrieved successfully.


Data object

Contains the list of rooms for the specified Airbnb listing.


URL string

Generated URL to Setup Channel Mapping.


Message string

Describes the result of the operation, confirming that rooms were retrieved successfully.


Error Response - Body Elements

Status string

Indicates the result of the API call.

circle-info

Will be always "Fail" in case of an error response.


Errors object

The response error, the root element.


Code string

Specific error code that helps identify the type of error.

circle-info

For example: "400" indicates a bad request.


ShortText string

A short description of the error.


Message string

The message in the response.

b. Channel Password Setup

Endpoint

POST


Header

Header
Type
Required
Description

app-id

string

Yes

Your application ID. Required for authentication.

Authorization

string

Yes

Your API key. for authorization. Required for authentication.

Content-Type

string

Yes

Must be set to application/json.


Request

hotelid alphanumeric (Required)

Specifies the required node hotelid contains the IT provider's hotel id for which the provider wishes to add mapping information.


host_token_number alphanumeric (Required for setup new channel mapping)

Unique code generated using get host token api.


currency string (Required)

Specifies the default currency code used for pricing.


convertrates boolean (Optional)

Indicates whether the API should automatically convert prices into the configured currency.


defaultmultiplier number (Optional)

Defines the default multiplier value applied in rateplan mapping.


defaultsurcharge number (Optional)

Specifies the default surcharge value applied in rateplan mapping.


connection_name string (Optional)

Provides a unique name for the hotel connection to identify it easily in dashboards and reports.


Sample Request


Response


Success Response


Success Response - Body Elements

Status string

Indicates the result of the API call. Will be "Success" when the channel mapping is created or updated successfully.


channelhotelid string

A unique identifier generated for the hotel’s connection with Airbnb. This ID is required for all subsequent channel operations (rates, availability, reservations, etc.).


channelmapping array

List of Airbnb listings linked to the hotel after successful mapping.

Each object in channelmapping includes:


listingid string

Unique Airbnb listing ID returned after mapping.


listing_name string

Display name of the Airbnb listing as recognized in Airbnb.


Error Response


Error Response - Body Elements

Status string

Indicates the result of the API call.

circle-info

Will be always "Fail" in case of an error response.


Errors object

The response error, the root element.


Code string

Specific error code that helps identify the type of error.

circle-info

For example: "400" indicates a bad request.


ShortText string

A short description of the error.


Message string

The message in the response.

Last updated

Was this helpful?