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
  • Create or Update Property
  • Endpoint
  • Sample Request
  • Response

Was this helpful?

Export as PDF
  1. Su Channel Manager
  2. Content

Property

PreviousContentNextRoom Type

Last updated 26 days ago

Was this helpful?

Property describes a commercial premises such as hotels, motels, lodges, luxury apartments, home stays and other types of buildings where individuals, couples, families and/or groups pay to stay, eat, have fun, relax, and to take advantage of all the offered in-house services available.


Create or Update Property

You can create a new property or update an existing property with this API.


Endpoint

POST

https://connect-sandbox.su-api.com/SUAPI/jservice/OTA_HotelDescriptiveContentNotif

The HotelDescriptiveContent object

The HotelDescriptiveContent object defines all the details of a particular hotel such as hotel id, hotel name, time zone, currency, language, contact info, hotel email id, phone number, and position. Partner can provide all these details using the sample request and create or update hotel descriptive content.

Attributes

The dot notation indicates that the property is one level deep inside a hash. No attributes are guaranteed to be present, and if we cannot find data on a specific network, then we will return a null value for that attribute.


HotelName string (Required)

Name of the property as it should be displayed on the website as a hotel name.

Accepts alphanumeric values.

Special characters are not allowed except Hyphen & Apostrophe mark (" - ", " ' ").


HotelType string (Optional)

Hotels are classified according to the location, target markets, ownership, affiliation, and facility provided. HotelType describes the type of that property.

Accepts values: [1, 2 or 3] (Default value=1)

1 - Hotel

2 - Motel

3 - Vacational Rental


TimeZone string (Optional)

If no value passed, system would take the default value of TimeZone depending on the country.


Platform string (Optional)

PMS service assigned as Both (SU & STAAH).

Accepts values: ["SU" or "STAAH"]


hotelid / HotelCode / ClientID string (Required)

The unique property ID as assigned by the provider upon creation of the property.

Accepts alphanumeric values.

Space and Special characters are not allowed except Hyphen (" - ").

Maximum 20 characters allowed.


ChainID string (Optional)

The Chain ID as assigned by the provider upon creation of the property.

Accepts alphanumeric values.

Space and Special characters are not allowed except Hyphen (" - ").

Maximum 20 characters allowed.


LanguageCode enum (Required)

The language codes which are acceptable for the property.

Default: en


CurrencyCode string (Required)

The currency codes which are acceptable for the property.


closeoutdays number (Optional)

The closeoutdays as allocated by the provider for the property.

Accepts the values between 0 to 30 but must be in quotes. Default value is - 1 (no closeouts).


closeouttime string (Optional)

The closeouttime as allocated by the provider for the property.

Accepts the values between 00:00 to 24:00 (Interval must be 30 min). It is required only if you set closeoutdays value as 0. Default value is - 1 (no closeouts).



HotelDescriptiveContentNotifType enum (Required)

Indicates whether the call is meant to create a new property or update an existing one.

Accepts these values: New and Overlay.

Default: New


PropertyLicenseNumber string (Optional)

The property license number, as provided by the local authority.

Required for certain property types, in certain regions.

Consult your account manager for details.


OfficialCheckinTime string (Optional)

Indicates Check-in Time for the earliest time a guest can check in.

Format: HH:MM 24-hour check-in can be specified using 00:00


OfficialCheckoutTime string (Optional)

Indicates Check-out Time for the earliest time a guest can check out.

Format: HH:MM 24-hour check-in can be specified using 00:00


The ContactInfos object

The ContactInfos object contains all the information related to the property. This object is the building block of Names, Addresses, Emails, and Phones.

Attributes


ContactProfileType enum (Required)

Indicates the type of contact.

Accepts: availability and PhysicalLocation.

availability - Contact for questions about availability.

PhysicalLocation - Address details for the property's physical location.


Name.GivenName string (Required)

The contact's given (first) name.


Name.Surname string (Required)

The contact's last name or family name.


NotificationEmail email (Optional)

Email address on which reservations will be notified.

Multiple Notification Email allowed.


Addresses object

Provides information about the addresses associated with hotels or properties.


Address.AddressLine string (Required)

The full street name and number.


Address.CityName string (Required)

The name of the city, town, or village.

Only editable via Extranet.


Address.CountryName countrycode (Required)

The two-letter code for the country.


Address.PostalCode string (Required)

The postal or zip code.


Emails object

Provides information about the addresses associated with hotels or properties.


Email string (Required)

Contains a valid email address.

Maximum 5 email address can be added.


Phones object

Refers to the phone number and the phone tech type used.


Phone.PhoneNumber string (Required)

The international phone number that must be dialed to reach the phone.

Must begin with +, followed by all digits required to dial internationally.

No whitespace, hyphens, or other characters allowed.

Not more than 15 numbers.


Phone.PhoneTechType enum (Required)

The type of phone line or device, expressed as a PTT code.


The HotelInfo object

Attributes


Position.Latitude latitude-value (Required)

Latitude of the property's location.

A valid Latitude value (-90) to 90.


Position.Longitude longitude-value (Required)

Longitude of the property's location.

A valid Longitude value (-180) to 180.

Facilities array

This array represents the facility in your hotel such as free parking, internet connection, cab service, and CCTV camera. It provides the information in combination of the facility and the group name from which the facility belongs to.

Attributes


Facility.Group string (Optional)

Group name of the facility.


Facility.name string (Optional)

Name of the facility under a group, multiple facility name can come under one group.

  • Both "Group" and "name" accepts Free Text - Special characters not allowed

  • If no Group name given, The amenity will be added under the Group "Common" (Auto created / Default)

  • Once added, it cannot be removed individually

  • If needed to be updated / modified, entire mode will have to be passed <Facilities>.....</Facilities>


HotelDescription Free Text (Optional)

Proper description of the property/hotel.

Maximum 100 characters. If exceeded, system will simply accept and will not return an error.


Sample Request

{
  "HotelDescriptiveContents": {
    "HotelDescriptiveContent": {
      "HotelName": "Kings Cross",
      "HotelType": "3",
      "TimeZone": "Europe/London",
      "Platform": "SU",
      "hotelid": "KC",
      "ChainID": "W1",
      "LanguageCode": "en",
      "CurrencyCode": "GBP",
      "Closeoutdays": "1",
      "Closeouttime": "00:30",
      "HotelDescriptiveContentNotifType": "New",
      "PropertyLicenseNumber": "AB-CD-1234",
      "OfficialCheckinTime": "12:00",
      "OfficialCheckoutTime": "11:00",
      "ContactInfos": {
        "ContactInfo": [
          {
            "ContactProfileType": "PhysicalLocation",
            "Addresses": {
              "Address": {
                "AddressLine": "36 Northwild Street",
                "CityName": "London",
                "PostalCode": "M16JD",
                "CountryName": "GB"
              }
            }
          },
          {
            "ContactProfileType": "availability",
            "Names": {
              "Name": {
                "GivenName": "Steve",
                "Surname": "Martin"
              }
            },
            "Addresses": {
              "Address": {
                "AddressLine": "36 Northwild Street",
                "CityName": "London",
                "CountryName": "GB",
                "PostalCode": "M16JD"
              }
            },
            "NotificationEmail": "no-reply[at]youremail.com",
            "Emails": {
              "Email": [
                "admin[at]examplehotel.com",
                "admin1[at]examplehotel.com",
                "admin2[at]examplehotel.com"
              ]
            },
            "Phones": {
              "Phone": [
                {
                  "PhoneNumber": "+3362211110",
                  "PhoneTechType": "1"
                },
                {
                  "PhoneNumber": "+3362211111",
                  "PhoneTechType": "1"
                },
                {
                  "PhoneNumber": "+3362211112",
                  "PhoneTechType": "5"
                },
                {
                  "PhoneNumber": "+3362211113",
                  "PhoneTechType": "5"
                },
                {
                  "PhoneNumber": "+3362211114",
                  "PhoneTechType": "3"
                }
              ]
            }
          }
        ]
      },
      "HotelInfo": {
        "Position": {
          "Latitude": "49.4092",
          "Longitude": "1.0900"
        }
      },
      "Facilities": {
        "Facility": [
          {
            "Group": "Parking",
            "name": "Free Parking"
          },
          {
            "Group": "Facilities",
            "name": "CCTV Camera"
          },
          {
            "Group": "Facilities",
            "name": "Gym"
          },
          {
            "Group": "Facilities",
            "name": "Convention Center"
          },
          {
            "Group": "Facilities",
            "name": "24 hours Frontdesk"
          }
        ]
      },
      "HotelDescription": "Graceful Apartment in London is nearby airport with Free WiFi and other Amenities."
    }
  }
}

Response

If the API call returns the success as the status, this indicates the request was successful. You have created or modified your property successfully.

Sample Success Response

{
  "Status": "Success"
}

Sample Error Response

{
  "Errors": [
    {
      "Code": "895",
      "ShortText": "HotelDescriptiveContent: HotelName Property content is required"
    }
  ],
  "Status": "Fail"
}

This API uses an overlay system. Every time you update an existing property, room type or other objects, the body of your request replaces previous information. This means existing information will be deleted if you don’t include in your request. To update an object without deleting information, make sure your request contains both the fields you want to update and those you want to keep the same.

Accepts the values listed under .

Accepts the values listed under .

Accepts the values listed under .

If the contact profile type is physical location, then you have to provide the complete address which contains complete physical address of the property (City, , and Country).

Only editable via Extranet listed under .

See for accepted values.

This object represents your hotel’s physical position. It provides the exact co-ordinates containing the value of and .

Time Zones
Language Codes
Currency Codes
Postal code
Country Code
PTT codes
Latitude
Longitude