Get Active Connection
This endpoint is used to retrieve active connection details for a specific hotel property or multiple properties across the system.
Endpoint
POST
Header
app-id
string
Yes
Your application ID. Required for authentication.
Authorization
string
Yes
Your API key required for authorization.
Content-Type
string
Yes
Must be set to application/json.
Attributes
hotel_id string (Required)
Specifies the hotel ID for the property.
channel_hotel_id string (Required)
Specifies the channel-specific hotel ID for the property.
Sample Request
Response
Attribute
Status string
Indicates the result of the API call. Value will be Success for successful responses.
Data object
Contains the response payload, including connection and pagination information.
Data.active_connection_data array of object
List of active connections returned for the requested property or properties. If no active connections exist, this field may be omitted or empty.
legal_entity.id integer
Unique identifier of the legal entity associated with the connection.
legal_entity.company_name string
Name of the legal entity or company managing the property.
connection_types object
A key-value pair where each key represents a connection type.
connected_at string
Timestamp representing when the connection was first established.
last_connected_at string
Timestamp representing the most recent time the connection was successfully established.
property.id integer
Unique identifier for the property.
property.name string
Name of the property.
property.city string
City where the property is located.
property.address string
Full address of the property.
property.country_code string
Country code for the property's location.
property.zip_code string
Postal or ZIP code for the property's location.
pricing.model string
Pricing strategy used by the property.
pricing.currency_code string
Currency code used for pricing.
Data.other_data object
Contains metadata for pagination purposes.
other_data.Next_Count integer
Indicates how many more records exist after the current page.
other_data.Previous_Count integer
Indicates how many records existed before the current page.
Message string
Descriptive message detailing the result of the API request.
Ruid string
A unique identifier for the request, used for tracking and debugging.
Sample Success Response 1
Success Response 2
Error
Sample Error Response 1
Sample Error Response 2
Sample Error Response 3
When error was thrown from booking.com
Error Response Body Elements
Status string
Indicates the result of the API call, which will be always Fail in case of an error response.
Error array
Array that contains details about any errors that occurred during the API call. Each object in the Errors array contains the following properties:
Code string
Specific error code that helps identify the type of error.
ShortText string
A short description of the error.
Message string
A message providing more information about the error.
Ruid string
A unique identifier for tracking the request.
Sample Request 2
Retrieve Active Connection Details For All Properties
Attributes
start_time string (Required)
Defines the beginning of the time range for fetching connection data.
end_time string (Optional)
Filters results to include properties with the specified connection type.
connection_type string (Optional)
Filters results to include properties with the specified connection type.
missing_connection_type string (Optional)
Filters results to include only properties missing the specified connection type.
cursor string (Optional)
Cursor token for pagination. Used to fetch the next/previous set of results.
page_size integer (Optional)
Specifies the maximum number of records to return in one page. Useful for paginated responses.
order_by string (Optional)
Defines the sorting order of the results.
Retrieve Active Connection Details For All Properties
Response
Sample Success Response
Status string
Indicates the result of the API call. Value will be Success for successful responses.
Data object
Contains the response payload, including connection and pagination information.
Data.active_connection_data array of object
List of active connections returned for the requested property or properties. If no active connections exist, this field may be omitted or empty.
legal_entity.id integer
Unique identifier of the legal entity associated with the connection.
legal_entity.company_name string
Name of the legal entity or company managing the property.
connection_types object
A key-value pair where each key represents a connection type.
connected_at string
Timestamp representing when the connection was first established.
last_connected_at string
Timestamp representing the most recent time the connection was successfully established.
property.id integer
Unique identifier for the property.
property.name string
Name of the property.
property.city string
City where the property is located.
property.address string
Full address of the property.
property.country_code string
Country code for the property's location.
property.zip_code string
Postal or ZIP code for the property's location.
pricing.model string
Pricing strategy used by the property.
pricing.currency_code string
Currency code used for pricing.
Data.other_data object
Contains metadata for pagination purposes.
other_data.Next_Count integer
Indicates how many more records exist after the current page.
other_data.Previous_Count integer
Indicates how many records existed before the current page.
Message string
Descriptive message detailing the result of the API request.
Ruid string
A unique identifier for the request, used for tracking and debugging.
Sample Success Response 1
Success Response 2
Error
Sample Error Response 1
When error was thrown from booking.com
Error Response Body Elements
Status string
Indicates the result of the API call, which will be always "Fail" in case of an error response.
Error array
Array that contains details about any errors that occurred during the API call. Each object in the Errors array contains the following properties:
Code string
Specific error code that helps identify the type of error.
ShortText string
A short description of the error.
Message string
A message providing more information about the error.
Ruid string
A unique identifier for tracking the request.
Last updated
Was this helpful?