Product Remove

This endpoint is used to remove a hotel product from a specified channel.


Endpoint

POST

https://connect-sandbox.su-api.com/SUAPI/jservice/bdc/product/remove
-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. for authorization. Required for authentication.

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.


channel_room_id string (Required)

The identifier of the specific room type in the channel’s system. It identifies the exact room type being referenced.


channel_rate_id string (Required)

The identifier of the rate plan for the specified room type in the channel’s system. It defines the pricing structure for the room.


Sample Request

{
    "hotel_id": "AWSTEST",
    "channel_hotel_id": "12962495",
    "channel_room_id": "1296249501",
    "channel_rate_id": "49682438"
}

Response

Sample Success Response

{
    "Status": "Success",
    "Data": [],
    "Message": "Product removed successfully",
    "Ruid": "UmFuZG9tSVYkc2RlIyh9Ye5eXmDmhbU/04Dkq0axA9KEoCl1jlY+DI807q32PS9/SMPtIzMbNq0g+hBvBX+CHyaYcDd2F53h"
}

Success Response Body Elements

Status string

Indicates the result of the API call.

Will be "Success" for successful operations.


Data object

An object containing data related to the successful image creation. This typically includes identifiers for the created images.


Message string

A message receives within the response body. This will generally be an empty string if no additional information is needed.


Ruid string

Specifies the unique request ID.

You can share this ID with Booking.com customer support when you run into an issue. This can help in understanding what went wrong.

Errors

Sample Error Response 1 - Validation Error Response

{
    "Status": "Fail",
    "Errors": [
        {
            "Code": "400",
            "ShortText": "hotel_id: Invalid HotelCode ('')"
        },
        {
            "Code": "572",
            "ShortText": "channel_hotel_id - is invalid or not found!"
        },
        {
            "Code": "849",
            "ShortText": "channel_room_id - is invalid or not found!"
        },
        {
            "Code": "850",
            "ShortText": "channel_rate_id - is invalid or not found!"
        }
    ],
    "Message": "",
    "Ruid": "",
    "Type": ""
}

Sample Error Response 2 - Booking.com Error Response

{
    "Status": "Fail",
    "Errors": [],
    "Message": "RatePlan: Invalid RatePlanCode: 49682438132131, HotelProduct: Invalid HotelProduct RoomType: 1296249501 and RatePlan: 49682438132131",
    "Ruid": "UmFuZG9tSVYkc2RlIyh9Ye5eXmDmhbU/f/iVmjRJdsT6yl+PNZ9pr1FtQGaCIB/0VhX/7f1pbh0dbI0NZXUkukjtG/GpCo/l"
}

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?