Get Connection Status

This endpoint allows partners to check the current connection status of a hotel property in the system.

Endpoint

POST

https://connect-sandbox.su-api.com/SUAPI/jservice/bdc/connection/getConnectionStatus
-app-id: YOUR_APP_ID
Authorization: YOUR_API_KEY
Content-Type:application/json
Header
Type
Required
Description

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

{
  "hotel_id": "new1",
  "channel_hotel_id": "12915674"
}

Response

Attributes

Status string

Indicates the result of the API call (for example, "Success", "Fail").


Data object

Contains information about the property's connection status.


property_id integer

Unique identifier for the property in the system.

status string

Current connection status of the property.

connected_at string

Timestamp representing when the connection was established.


Message string

Descriptive message providing context for the connection status response.


Ruid string

Unique request identifier used for tracking and logging purposes.


Sample Success Response

{
  "Status": "Success",
  "Data": {
    "property_id": 12915674,
    "status": "connected",
    "connected_at": "2024-10-09T04:57:27Z"
  },
  "Message": "Connection Status Fetch Successfully",
  "Ruid": "3321c603-6656-4816-b895-adabcb619e8e"
}

Error

Sample Error Response 1

{
  "Errors": [
    {
      "Code": "400",
      "ShortText": "HotelCode: Invalid HotelCode ('NT711')"
    }
  ],
  "Status": "Fail"
}

Sample Error Response 2

{
  "Errors": [
    {
      "Code": "573",
      "ShortText": "channel-mapping not found for this property!"
    }
  ],
  "Status": "Fail"
}

Sample Error Response 3

When error was thrown from booking.com

{
  "Status": "Fail",
  "Errors": [],
  "Message": "Access denied"
}

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.

For example: "400" indicates a bad request.

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?