Last updated

Address

Multiple ancestors

Address is a child of:

Addresses

Fields

FieldDescriptionTypeMin/maxNotes
Addresses/
Address
Address details.object0..1-
Address/
@Language
The Booking.com Language Code for the address details.BCL0..1Default: en
Address/
AddressLine
The full street name and number.string1..1Should not contain abbreviations (such as "Rd." for "Road") and should not exceed 255 characters.
Address/
CityName
The name of the city, town, or village.string0..1-
Address/
CountryName
Two-letter country code.countrycode0..1-
Address/
HotelName
The name of the property (in a language other than English).object0..1Required if @Language is not en.
Address/
PostalCode
Postal/zip code.string0..1-
Address/
StateProv
State/province details.object0..1-
Address/StateProv/
@StateCode
Specifies the code for the state or province.string0..1Follow the ISO 3166-2 standard to specify the state, province, or other subdivision.

XML

<Address
  Language="en">
  <AddressLine>Streetname 1234</AddressLine>
  <CityName>Metropolis</CityName>
  <CountryName>US</CountryName>
  <HotelName>The Best Hotel</HotelName>
  <PostalCode>1017 CE</PostalCode>
  <StateProv StateCode="AB" />
</Address>

Customer

Fields

FieldDescriptionTypeMin/maxNotes
Customer/
Address
Booker's address.object1..1-
Address/
AddressLine
Street name and number.string1..1-
Address/
CityName
City name.string1..1-
Address/
PostalCode
Zip/post code.string1..1-
Address/
CountryName
Container for @Code.object1..1-
Address/
CountryName[@Code]
Two-letter country code.countrycode1..1-
Address/
CompanyName
company name as supplied by the customer.string0..1-

XML

<Address>
   <AddressLine>Herengracht 597</AddressLine>
   <CityName>Amsterdam</CityName>
   <PostalCode>1017 CE</PostalCode>
   <CountryName
     Code="NL" />
   <CompanyName>Booking.com</CompanyName
</Address>