Skip to content
Last updated

Contacts objects

Property contact details are always contained in a ContactInfos element with one or more ContactInfo children. This page describes the elements and attributes in the ContactInfos descendants tree.

Sample XML

The sample below is an excerpt and not a valid XML document.

<ContactInfos>
  <ContactInfo ContactProfileType="PhysicalLocation">
    <Addresses>
      <Address>
        <AddressLine>Herengracht 567</AddressLine>
        <CityName>Amsterdam</CityName>
        <PostalCode>1017 CE</PostalCode>
        <CountryName>NL</CountryName>
      </Address>
    </Addresses>
  </ContactInfo>
  <ContactInfo ContactProfileType="availability" Index="1">
    <Names>
      <Name Language="en" Gender="male">
        <GivenName>Sam</GivenName>
        <Surname>Xu</Surname>
      </Name>
    </Names>
    <Emails>
      <Email>noreply@booking.com</Email>
    </Emails>
    <Phones>
      <Phone PhoneNumber="+31666666666" PhoneTechType="1" />
    </Phones>
  </ContactInfo>
  <ContactInfo ContactProfileType="general" Index="2">
    <Names>
      <Name Language="en" Gender="male">
        <GivenName>Sam</GivenName>
        <Surname>Xu</Surname>
      </Name>
    </Names>
    <Emails>
      <Email>noreply@booking.com</Email>
    </Emails>
    <Phones>
      <Phone PhoneNumber="+31666666666" PhoneTechType="1" />
    </Phones>
  </ContactInfo>
  <ContactInfo ContactProfileType="contract" Index="3">
    <Names>
      <Name Language="en" Gender="male">
        <GivenName>Sam</GivenName>
        <Surname>Xu</Surname>
      </Name>
    </Names>
    <Emails>
      <Email>noreply@booking.com</Email>
    </Emails>
    <Phones>
      <Phone PhoneNumber="+31666666666" PhoneTechType="1" />
    </Phones>
  </ContactInfo>
  <ContactInfo ContactProfileType="reservations" Index="4">
    <Names>
      <Name Language="en" Gender="male">
        <GivenName>Sam</GivenName>
        <Surname>Xu</Surname>
      </Name>
    </Names>
    <Emails>
      <Email>noreply@booking.com</Email>
    </Emails>
    <Phones>
      <Phone PhoneNumber="+31666666666" PhoneTechType="1" />
    </Phones>
  </ContactInfo>
  <ContactInfo ContactProfileType="invoices" Index="5">
    <Names>
      <Name Language="en" Gender="male">
        <GivenName>Sam</GivenName>
        <Surname>Xu</Surname>
      </Name>
    </Names>
    <Addresses>
      <Address>
        <AddressLine>Herengracht 594</AddressLine>
        <CityName>Amsterdam</CityName>
        <CountryName>NL</CountryName>
        <PostalCode>1017 CE</PostalCode>
      </Address>
    </Addresses>
    <Emails>
      <Email>noreply@booking.com</Email>
    </Emails>
    <Phones>
      <Phone PhoneNumber="+31666666666" PhoneTechType="1" />
    </Phones>
  </ContactInfo>
  <ContactInfo ContactProfileType="site_content" Index="6">
    <Names>
      <Name Language="en" Gender="male">
        <GivenName>Sam</GivenName>
        <Surname>Xu</Surname>
      </Name>
    </Names>
    <Emails>
      <Email>noreply@booking.com</Email>
    </Emails>
    <Phones>
      <Phone PhoneNumber="+31666666666" PhoneTechType="1" />
    </Phones>
  </ContactInfo>
  <ContactInfo ContactProfileType="parity" Index="7">
    <Names>
      <Name Language="en" Gender="male">
        <GivenName>Sam</GivenName>
        <Surname>Xu</Surname>
      </Name>
    </Names>
    <Emails>
      <Email>noreply@booking.com</Email>
    </Emails>
    <Phones>
      <Phone PhoneNumber="+31666666666" PhoneTechType="1" />
    </Phones>
  </ContactInfo>
  <ContactInfo ContactProfileType="requests" Index="8">
    <Names>
      <Name Language="en" Gender="male">
        <GivenName>Sam</GivenName>
        <Surname>Xu</Surname>
      </Name>
    </Names>
    <Emails>
      <Email>noreply@booking.com</Email>
    </Emails>
    <Phones>
      <Phone PhoneNumber="+31666666666" PhoneTechType="1" />
    </Phones>
  </ContactInfo>
  <ContactInfo ContactProfileType="central_reservations" Index="9">
    <Names>
      <Name Language="en" Gender="male">
        <GivenName>Sam</GivenName>
        <Surname>Xu</Surname>
      </Name>
    </Names>
    <Emails>
      <Email>noreply@booking.com</Email>
    </Emails>
    <Phones>
      <Phone PhoneNumber="+31666666666" PhoneTechType="1" />
    </Phones>
  </ContactInfo>
</ContactInfos>

ContactInfo

Contains names, addresses, and other types of contact details. Child of ContactInfos.

FieldDescriptionTypeRequiredNotes
ContactInfo[@ContactProfileType]Indicates the type of contact.enumRequiredAccepts: general, contract, reservations, invoices, availability, site_content, parity, requests, central_reservations, PhysicalLocation. See @ContactProfileType for details.
Addresses-array of AddressOptional-
Emails-array of EmailOptional-
Names-array of NameOptionalMax. occurrences of Name per ContactInfo element: 1
Phones-array of PhoneOptional-

@ContactProfileType

The ContactInfo attribute @ContactProfileType accepts the following values. Each value corresponds with a similarly named heading on the Contacts page in our extranet.

ValueDescriptionRequired
generalPrimary point of contact for the property.Required
contractContact for contract matters.Optional
reservationsContact for reservations.Optional
invoicesContact for accounts payable.Required
availabilityContact for questions about availability.Optional
site_contentContact for photos, descriptions, and other website content.Optional
parityContact for pricing and rate matters.Optional
requestsContact for special requests.Optional
central_reservationsContact for central reservations. Applies to properties that manage reservations from another location.Optional
PhysicalLocationAddress details for the property's physical location.Required

Address

Contains address details. Child of Addresses (see ContactInfo).

FieldDescriptionTypeRequiredNotes
Address[@Language]The language in which the address details are provided.enumOptionalAccepts the values listed under BCL. Default: en
AddressLineThe full street name and number.stringRequiredShould not contain abbreviations (such as "Rd." for "Road").
HotelNameThe name of the property.stringOptionalRequired when Address[@Language] is not en. Default: empty
CityNameThe name of the city, town, or village.stringRequired-
PostalCodeThe postal or zip code.stringRequired-
StateProv-objectOptional-
StateProv[@StateCode]Specifies the code for the state or province.stringOptionalFollow the ISO 3166-2 standard to specify the state, province, or other subdivision.
CountryNameThe two-letter code for the country, as defined in our list of country codes.countrycodeRequiredFor accepted values, see countries (B.XML)

Name

Contains a contact person's name details. Child of Names (see ContactInfo).

FieldDescriptionTypeRequiredNotes
Name[@Language]The contact's spoken language.enumRequiredAccepts the values listed under BCL.
Name[@Gender]The contact's gender.enumOptionalAccepts these values: male, female, non-binary, undisclosed. Default: empty.
NOTE: To set the contact's gender as empty, omit the entire attribute (rather than setting its value as "").
GivenNameThe contact's given (first) name.stringOptionalRequired if Surname is not provided.
SurnameThe contact's last name or family name.stringOptionalRequired if GivenName is not provided.
JobTitleThe contact's job title.enumOptionalAccepts the values listed under BCJT.

Email

Contains an email address. Child of Emails (see ContactInfo). This element has no child elements or attributes—see Sample XML for an example.

Phone

Contains phone line details. Child of Phones (see ContactInfo).

FieldDescriptionTypeRequiredNotes
Phone[@PhoneNumber]The international phone number that must be dialled to reach the phone.stringRequiredMust begin with +, followed by all digits required to dial internationally. No whitespace, hyphens, or other characters allowed.
Phone[@PhoneTechType]The type of phone line or device, expressed as a PTT code.enumOptionalSee PTT codes for accepted values.
Phone[@Extension]The extension number that must be dialled in addition to the main phone number.integerOptionalOnly allowed when @PhoneTechType is 1.