GET api/Contract/GetContract/{ppnBundle}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| ppnBundle | string |
Required |
Body Parameters
None.
Response Information
Resource Description
Contract| Name | Description | Type | Additional information |
|---|---|---|---|
| PpnBundle | string |
None |
|
| CheckInDate | string |
None |
|
| CheckOutDate | string |
None |
|
| NumberRooms | byte |
None |
|
| NumberAdults | byte |
None |
|
| NumberChildren | byte |
None |
|
| NumberNights | byte |
None |
|
| HotelInfo | HotelInfo |
None |
|
| CountryAllowed | boolean |
None |
|
| AllowedCountries | Collection of Country |
None |
|
| AllowedCards | Collection of CreditCard |
None |
|
| Information | Collection of string |
None |
|
| RoomDescription | string |
None |
|
| OccupancyLimit | byte |
None |
|
| PriceDetails | PriceDetails |
None |
|
| TaxesFees | Collection of string |
None |
|
| Exception | boolean |
None |
|
| StatusMessage | string |
None |
Response Formats
application/json, text/json
Sample:
{
"ppnBundle": "sample string 1",
"checkInDate": "sample string 2",
"checkOutDate": "sample string 3",
"numberRooms": 64,
"numberAdults": 64,
"numberChildren": 64,
"numberNights": 64,
"hotelInfo": {
"hotelId": 1,
"hotelName": "sample string 2",
"streetAddress": "sample string 3",
"cityName": "sample string 4",
"stateCode": "sample string 5",
"postalCode": "sample string 6",
"countryCode": "sample string 7",
"phoneNumber": "sample string 8",
"checkInTime": "sample string 9",
"checkOutTime": "sample string 10"
},
"countryAllowed": true,
"allowedCountries": [
{
"countryCode": "sample string 1",
"countryName": "sample string 2"
},
{
"countryCode": "sample string 1",
"countryName": "sample string 2"
}
],
"allowedCards": [
{
"id": 1,
"cardType": "sample string 2",
"cardName": "sample string 3"
},
{
"id": 1,
"cardType": "sample string 2",
"cardName": "sample string 3"
}
],
"information": [
"sample string 1",
"sample string 2"
],
"roomDescription": "sample string 9",
"occupancyLimit": 64,
"priceDetails": {
"currency": "sample string 1",
"currencySymbol": "sample string 2",
"price": "sample string 3",
"insuranceFee": "sample string 4",
"processingFee": "sample string 5",
"subTotal": "sample string 6",
"taxes": "sample string 7",
"total": "sample string 8"
},
"taxesFees": [
"sample string 1",
"sample string 2"
],
"exception": true,
"statusMessage": "sample string 12"
}
application/xml, text/xml
Sample:
<Contract xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Priceline.WebServices.Models">
<AllowedCards xmlns:d2p1="http://schemas.datacontract.org/2004/07/Priceline.WebServices.Entities">
<d2p1:CreditCard>
<d2p1:CardName>sample string 3</d2p1:CardName>
<d2p1:CardType>sample string 2</d2p1:CardType>
<d2p1:Id>1</d2p1:Id>
</d2p1:CreditCard>
<d2p1:CreditCard>
<d2p1:CardName>sample string 3</d2p1:CardName>
<d2p1:CardType>sample string 2</d2p1:CardType>
<d2p1:Id>1</d2p1:Id>
</d2p1:CreditCard>
</AllowedCards>
<AllowedCountries>
<Country>
<CountryCode>sample string 1</CountryCode>
<CountryName>sample string 2</CountryName>
</Country>
<Country>
<CountryCode>sample string 1</CountryCode>
<CountryName>sample string 2</CountryName>
</Country>
</AllowedCountries>
<CheckInDate>sample string 2</CheckInDate>
<CheckOutDate>sample string 3</CheckOutDate>
<CountryAllowed>true</CountryAllowed>
<Exception>true</Exception>
<HotelInfo>
<CheckInTime>sample string 9</CheckInTime>
<CheckOutTime>sample string 10</CheckOutTime>
<CityName>sample string 4</CityName>
<CountryCode>sample string 7</CountryCode>
<HotelId>1</HotelId>
<HotelName>sample string 2</HotelName>
<PhoneNumber>sample string 8</PhoneNumber>
<PostalCode>sample string 6</PostalCode>
<StateCode>sample string 5</StateCode>
<StreetAddress>sample string 3</StreetAddress>
</HotelInfo>
<Information xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</Information>
<NumberAdults>64</NumberAdults>
<NumberChildren>64</NumberChildren>
<NumberNights>64</NumberNights>
<NumberRooms>64</NumberRooms>
<OccupancyLimit>64</OccupancyLimit>
<PpnBundle>sample string 1</PpnBundle>
<PriceDetails>
<Currency>sample string 1</Currency>
<CurrencySymbol>sample string 2</CurrencySymbol>
<InsuranceFee>sample string 4</InsuranceFee>
<Price>sample string 3</Price>
<ProcessingFee>sample string 5</ProcessingFee>
<SubTotal>sample string 6</SubTotal>
<Taxes>sample string 7</Taxes>
<Total>sample string 8</Total>
</PriceDetails>
<RoomDescription>sample string 9</RoomDescription>
<StatusMessage>sample string 12</StatusMessage>
<TaxesFees xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</TaxesFees>
</Contract>