4.10. Get Contract
POST /cm/hotelContracts
Description
For independent properties, this allows you to retrieve contract status.
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
The successful response with hotel contract information. |
|
400 |
The request content was malformed |
|
401 |
The supplier was unauthorized |
Consumes
-
application/xml
Produces
-
application/xml
Tags
-
Contracts
Security
| Type | Name |
|---|---|
apiKey |
Example HTTP request
Request path
/cm/hotelContracts
Request body
<?xml version="1.0" encoding="UTF-8"?>
<AG_HotelContractInfoRQ>
<HotelContractInfos>
<HotelContractInfo HotelCode="1234"/>
</HotelContractInfos>
</AG_HotelContractInfoRQ>
Example HTTP response
Response 200
<?xml version="1.0" encoding="UTF-8"?>
<AG_HotelContractInfoRS CorrelationID="8b417d6a-f3df-4d65-870c-240378b8ad3e">
<Success/>
<HotelContractContents>
<HotelContractContent ContractCode="0" HotelCode="1234" IsSigned="true" SignedAt="2020-01-08T12:37:13.930+07:00" UpdatedAt="2020-01-08T12:37:13.930+07:00">
<IpAddress>8.8.8.8</IpAddress>
<UserAgent>Mozilla/5.0 (Macintosh; Intel Mac OS X x.y; rv:10.0) Gecko/20100101 Firefox/10.0</UserAgent>
<Contract LanguageCode="en-US">
<Title>Accommodation Property Participation Agreement (1.931)</Title>
<Content>### **ACCOMMODATION PROPERTY PARTICIPATION AGREEMENT**
This Accommodation Property Participation Agreement (&quot;APPA&quot;),...
</Content>
</Contract>
</HotelContractContent>
</HotelContractContents>
</AG_HotelContractInfoRS>
Response 400
<?xml version="1.0" encoding="UTF-8"?>
<AG_HotelContractInfoRS CorrelationID="8b417d6a-f3df-4d65-870c-240378b8ad3e">
<Errors>
<Error Code="321" ShortText="Required field missing" Status="NotProcessed"/>
</Errors>
</AG_HotelContractInfoRS>
Response 401
<?xml version="1.0" encoding="UTF-8"?>
<AG_HotelContractInfoRS CorrelationID="8b417d6a-f3df-4d65-870c-240378b8ad3e">
<Errors>
<Error Code="321" ShortText="Authorization error" Status="NotProcessed"/>
</Errors>
</AG_HotelContractInfoRS>
