Su API Documentation
  • Su Overview
    • Su API Introduction
  • Su Channel Manager
    • Getting Started
      • Certification
      • Authentication
    • Content
      • Property
      • Room Type
      • Rate Plan
      • Listing
        • Property Listing
        • Room Type Listing
        • Rate Plan Listing
        • Delete Property Listing
      • Image API
        • Create Images
        • Retrieve Images
        • Associate Images
    • Booking.com Content API
      • Booking.com
        • Contract - Introduction
          • Create Contract
          • Link/Retrieve Contract
          • Update Contract
          • Resend Contract
        • Property Management
          • Property Statuses
          • Property Detail
            • Create Property
            • Retrieve Property
            • Update Property
          • Contact Details
            • Set Contact
            • Retrieve Contact
            • Contact Profile Types
          • Property Settings
            • Retrieve Property Settings
            • Retrieve Property Settings Damage Programme
            • Retrieve City Tax Category For Property Settings
            • Create / Update Property Settings
            • Create / Update Property Settings - Specific Setting
          • Property Profile
            • Set Profile
            • Retrieve Property Profile
            • Set Hotelier Message
            • Retrieve Hotelier Message
            • Remove Hotelier-Message
          • Booking.com Property Status
            • Property Status Check
            • Property Status Open
            • Property Status Closed
          • Property Key Collection
            • Set CheckIn Methods
            • Retrieve CheckIn Method
            • Retrieve All Stream Variation
        • Images
          • Create Image
          • Retrieve All Images
          • Update Image Tags
          • Delete Image
          • Retrieve Associate Images
          • Associate Image
          • Unassociate Image
          • Ordering Image
          • Smart Ordering Image
          • Show Image
          • Retrieve Property Pending Photos based on photo-batch-id
          • Retrieve Image Tags
        • Facilities
          • Create/Update Facility
          • Retrieve Set Facility of Property and Room
          • Retrieve Supported Facilities
        • Property/Room Charges
          • Retrieve Property Charge Meta
          • Retrieve Property Charges
          • Retrieve Room Charges
          • Create Property Charges
        • Rate Plan
          • Set Rateplan
          • Retrieve Rateplan
      • Room API
        • Room Meta API
        • Room Set (Create/Update) API
        • Room Retrieve API
        • Room Deactivate API
      • Policies API
        • Create/Update Policies
        • Retrieve Policies
      • Bathroom API
        • Set Bathroom (Create and Update)
        • Remove/Disable Bathroom
        • Retrieve Bathroom
      • Product API
        • Product Meta
        • Product List
        • Product Create
        • Product Modify
        • Product Remove
        • Product Map Create (Room Based)
        • Product Map Modify (Room Based)
        • Product Map Create (Occupancy Based)
        • Product Map Modify (Occupancy Based)
        • Product Unmap
      • Property and Room License
        • Property License Retrieve All Rule (Without property id)
        • Property License Retrieve Rule (With property id)
        • Sending License Information of Property
        • Retrieve License Information of Property
        • Sending License Information of Room
        • Retrieve License Information of Room
      • BCIO (Booking.com Check-In / Check-Out Times)
      • PCT (Property Class Type Codes)
      • BCJT (Booking.com Job Titles)
      • PTT (Phone Technology Type Codes)
      • BCL (Booking.com Language Codes)
      • Currency Codes/Names
      • Country Codes/Names
      • BCPT (Booking.com Payment Type Codes)
    • Rates and Availability
    • Inventory Control
    • Reservations
      • New/Modified/Requested/Cancelled Retrievals
        • Request for Reservation Information
        • Response of Reservation Information
      • Reservation Using Push API
        • Reservations Notification Push
        • PUSH API Method
      • Reservation Notification
      • Request Booking
        • Accept/Confirm Request Booking
        • Deny/Cancel Request Booking
      • Booking Repull
        • List of Bookings
        • Refetch Booking
    • Logs
      • Update Logs
      • Failed Channel Logs
      • Rates & Inventory Logs (Future Date)
      • Bulk Rates & Inventory Logs (Future Date)
      • Resync OTA Updates (Failed)
      • OTA Rateplan Pull API
    • Users
      • Global Users
      • Chain Users
    • Channel Mapping Widget API
      • Generate a Token
      • Mapping Script
    • Reviews
    • Messaging
    • Reporting
      • Reporting - No Show (Booking.com & Goibibo)
      • Reporting - Invalid CC (Booking.com)
      • Reporting - Cancellation Due to Invalid CC (Booking.com)
      • Bulk ARI Update
      • Marketing Insight API - Booking.com
    • AirBnB
      • Cancel Reservation
        • Retrieve AirBnB Cancel Reservation Details API
        • Final AirBnB Cancel Reservation API
      • Notification
      • Trip Issue
    • My Booking Site
      • Confirm Reservation
      • Cancel Reservation
  • Su Token
    • Su Token - Introduction
    • Su Token - Authentication
    • Partner
    • Card
      • Card API
      • Card View API
      • Charge API
      • Card Collection
        • Get CC Collection (Generate Link)
        • Check Status of CC Collection
      • WIDGET
        • CC Collection Using Widget
  • Codes
    • Room Type Codes
    • Language Codes
    • Country Codes
    • Phone Technology Type Codes
    • Meal Plan Codes
    • Currency Codes
    • Channel or OTA Codes
    • Credit Card Type Codes
    • Time Zones
    • Error Codes
  • Versioning
  • Glossary of Terms
Powered by GitBook

STAAH Limited. 2024 © All Rights Reserved.

On this page
  • Endpoint
  • Sample Request
  • Response

Was this helpful?

Export as PDF
  1. Su Channel Manager
  2. Booking.com Content API
  3. Product API

Product List

PreviousProduct MetaNextProduct Create

Last updated 3 months ago

Was this helpful?

This endpoint allows you to fetch a list of hotel products, including details about room types, rate plans, value-added services, policies, and more.


Endpoint

POST

https://connect-sandbox.su-api.com/SUAPI/jservice/bdc/product/list

Header

-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.


policy_override_start_date string (Optional)

Start date for overriding policies.

Format YYYY-MM-DD


policy_override_end_date string (Optional)

End date for overriding policies. Example:

Format YYYY-MM-DD

NOTE

The policy_override_start_date and policy_override_end_date keys are utilized when retrieving product list data that includes override policy content. It is mandatory to provide values for both policy_override_start_date and policy_override_end_date in such cases. See the fields above.


Sample Request

{
    "hotel_id": "AWSTEST",
    "channel_hotel_id": "12962495",
    "policy_override_start_date": "2023-11-20",
    "policy_override_end_date": "2025-11-22"
}

Response

Sample Success Response

{
    "Status": "Success",
    "Data": {
        "hotel_products": {
            "channel_hotel_id": 12962495,
            "hotel_product": [
                {
                    "room_types": {
                        "room_type": {
                            "channel_room_id": 1296249501,
                            "max_occupancy": 0
                        }
                    },
                    "rate_plans": {
                        "rate_plan": {
                            "channel_rate_id": 49681540
                        }
                    },
                    "value_add_inclusions": {
                        "meal_plan": {
                            "mealplan_code": 10
                        }
                    },
                    "policy_info": {
                        "cancel_policy": {
                            "cancel_penalty": {
                                "policy_code": 152,
                                "policy_id": 402538147,
                                "policy_name": "General"
                            },
                            "tpa_extensions": {
                                "no_show_policy": {
                                    "penalty": "default"
                                }
                            }
                        },
                        "guarantee_payment_policy": {
                            "guarantee_payment": {
                                "effective_from": "",
                                "pre_payment_required": true
                            }
                        }
                    },
                    "value_added_services": {
                        "name": "additional package",
                        "value_added_service": [
                            {
                                "service_id": 2009,
                                "amount": "",
                                "currency_code": "",
                                "percentage": "20.0",
                                "hour": 0,
                                "minute": 0,
                                "num_pets": 0
                            },
                            {
                                "service_id": 1001,
                                "amount": "",
                                "currency_code": "",
                                "percentage": "",
                                "hour": 0,
                                "minute": 0,
                                "num_pets": 0
                            }
                        ]
                    },
                    "tpa_extensions": {
                        "pricing_type": {
                            "value": "Standard",
                            "price1": true
                        }
                    }
                },
                {
                    "child_rate": true,
                    "room_types": {
                        "room_type": {
                            "channel_room_id": 1296249501,
                            "max_occupancy": 0
                        }
                    },
                    "rate_plans": {
                        "rate_plan": {
                            "channel_rate_id": 49681937
                        }
                    },
                    "value_add_inclusions": {
                        "meal_plan": {
                            "mealplan_code": 19
                        }
                    },
                    "policy_info": {
                        "cancel_policy": {
                            "cancel_penalty": {
                                "policy_code": 152,
                                "policy_id": 402538147,
                                "policy_name": "General"
                            },
                            "tpa_extensions": {
                                "no_show_policy": {
                                    "penalty": "default"
                                }
                            }
                        },
                        "guarantee_payment_policy": {
                            "guarantee_payment": {
                                "effective_from": "",
                                "pre_payment_required": true
                            }
                        }
                    },
                    "tpa_extensions": {
                        "pricing_type": {
                            "value": "Standard",
                            "price1": true
                        },
                        "rate_relation": {
                            "follows_closed": true,
                            "follows_restrictions": true,
                            "follows_policy": true,
                            "follows_price": true,
                            "parent_rateplan_code": "49681540",
                            "percent": "60.0"
                        }
                    }
                },
                {
                    "child_rate": true,
                    "room_types": {
                        "room_type": {
                            "channel_room_id": 1296249501,
                            "max_occupancy": 0
                        }
                    },
                    "rate_plans": {
                        "rate_plan": {
                            "channel_rate_id": 49682438
                        }
                    },
                    "value_add_inclusions": {
                        "meal_plan": {
                            "mealplan_code": 12
                        }
                    },
                    "policy_info": {
                        "booking_rules": {
                            "booking_rule": {
                                "min_advanced_booking_offset": "P2D",
                                "max_advanced_booking_offset": "",
                                "release_time_of_day_start": "",
                                "release_time_of_day_end": ""
                            }
                        },
                        "cancel_policy": {
                            "cancel_penalty": {
                                "policy_code": 549,
                                "policy_id": 403723453,
                                "policy_name": "Non Refundable"
                            },
                            "tpa_extensions": {
                                "no_show_policy": {
                                    "penalty": "default"
                                }
                            }
                        },
                        "guarantee_payment_policy": {
                            "guarantee_payment": {
                                "effective_from": "after_reservation_is_made",
                                "pre_payment_required": true
                            }
                        },
                        "override_policies": {
                            "override_policy": {
                                "policy_code": "",
                                "policy_id": "403933411",
                                "policy_name": "Fully Flexible",
                                "book_dates": {
                                    "book_date": [
                                        {
                                            "start": "2024-11-25",
                                            "end": "2024-11-30"
                                        },
                                        {
                                            "start": "2024-12-05",
                                            "end": "2024-12-10"
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "value_added_services": {
                        "name": "additional package 2",
                        "value_added_service": [
                            {
                                "service_id": 2001,
                                "amount": "50.0",
                                "currency_code": "USD",
                                "percentage": "",
                                "hour": 0,
                                "minute": 0,
                                "num_pets": 0
                            },
                            {
                                "service_id": 1001,
                                "amount": "",
                                "currency_code": "",
                                "percentage": "",
                                "hour": 0,
                                "minute": 0,
                                "num_pets": 0
                            }
                        ]
                    },
                    "tpa_extensions": {
                        "pricing_type": {
                            "value": "Standard",
                            "price1": true
                        },
                        "rate_relation": {
                            "follows_closed": true,
                            "follows_restrictions": true,
                            "follows_policy": true,
                            "follows_price": true,
                            "parent_rateplan_code": "49681540",
                            "percent": "150.0"
                        }
                    }
                }
            ]
        }
    },
    "Message": "Product fetched successfully",
    "Ruid": "a2a3ccd9-3062-40fe-a701-f170cec0c5f0"
}

Success Response Body Elements

Status string

Indicates the result of the API call.


Message string

A message describing the outcome.


Ruid string

A unique request identifier.


Data object

Contains the actual response data.

hotel_products object

Contains information about the hotel products.


channel_hotel_id integer

The unique identifier for the hotel in the channel's system.

hotel_product array

A list of hotel products available.

hotel_product object

Contains information for the first hotel product.

room_types object

Specifies the details about room types.

room_type object

Details for the room type in the product.

channel_room_id integer

The unique identifier for the room type.

max_occupancy integer

The maximum occupancy allowed for the room.


rate_plans object

Describes the rate plans available for the room type.

rate_plan object

Details of a specific rate plan associated with the room type.

channel_rate_id integer

The unique identifier for the rate plan.

value_add_inclusions object

Describes the additional inclusions in the rate plan.

meal_plan object

Information about meal plans included in the booking.

mealplan_code integer

The code for the meal plan included.

policy_info object

Information related to the policies that apply to the hotel product.

booking_rules object

Describes any booking rules.

booking_rule object

This object contains specific rules regarding the booking conditions for a particular hotel product.

min_advanced_booking_offset string

Defines the minimum number of days a customer must book the room in advance.

Example: "P2D" means the customer must book at least 2 days before check-in.

max_advanced_booking_offset string

Defines the maximum number of days a customer can book the room in advance.

If empty, no limit is specified.

release_time_of_day_start string

Specifies the time of day when the room may be released if the booking isn't confirmed (if applicable). Empty means no specific time is set.

release_time_of_day_end string

Specifies the cut-off time by which the room must be booked.

Empty means no specific end time is defined.

cancel_policy object

Specifies the cancellation policy details.

cancel_penalty object

Describes the penalty for cancellation.

policy_code integer

The code for the cancellation policy.

policy_id integer

The unique identifier for the cancellation policy.

policy_name string

The name of the cancellation policy.

guarantee_payment_policy object

Details about the guarantee payment policy.

guarantee_payment object

This is the main object containing details about the guarantee payment policy for the hotel room or booking.

effective_from string

This parameter specifies when the guarantee payment policy becomes effective. It typically represents the date and/or time from which the payment guarantee rule applies.

YYYY-MM-DD

pre_payment_required boolean

Whether pre-payment is required.

value_added_services object

Lists the value-added services included with the room product.

name string

Name of the value-added services package.

value_added_service array

A list of individual services offered as part of the package.

service_id integer

The unique identifier for the service.

amount string

The amount for the service.

percentage string

The percentage of the value-added service charge.

tpa_extensions object

Extensions for additional policy or pricing details.

pricing_type object

Describes the type of pricing for the hotel product.

value string

The pricing type.

price1 boolean

Indicates if the product follows the standard pricing rule.

hotel_product object

Contains information for the second hotel product.

child_rate boolean

Indicates whether there is a child rate available.

rate_relation object

Specifies any relations with other rates.

parent_rateplan_code string

The code of the parent rate plan from which this rate plan is derived.

percent string

Specifies the percentage difference compared to the parent rate plan.

hotel_product object

Contains information for the third hotel product.

booking_rules object

Describes any booking rules.

min_advanced_booking_offset string (date)

The minimum advanced booking offset.

override_policies object

Describes any override policies for specific date ranges.

policy_name string

Name of the override policy.

book_dates array

The list of date ranges when the override policy applies.

start string (date)

The start date of the bookable range.

end string (date)

The end date of the bookable range.

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!"
        }
    ],
    "Message": ""
}

Sample Error Response 2 - Booking.com Error Response

{
    "Status": "Fail",
    "Errors": [],
    "Message": "401 - Authorization Required",
    "Ruid": "2dd35b1a-babc-4fe3-9bfa-b995891903ba"
}

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.