Sign Contract

4.11. Sign Contract

POST /cm/hotelContractsSign

Description

For independent properties, this allows you to electronically sign your contract. Without this being done, your property will not be visible on Agoda.com.

Body parameter

HotelContractSigns

Name : body
Flags : required
Type : AG_HotelContractSignNotifRQ

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/hotelContractsSign
Request body
<?xml version="1.0" encoding="UTF-8"?>
<AG_HotelContractSignNotifRQ>
  <HotelContractSigns>
    <HotelContractSign ContractCode="0" HotelCode="string">
      <UserAgent>Mozilla/5.0 (Macintosh; Intel Mac OS X x.y; rv:10.0) Gecko/20100101 Firefox/10.0</UserAgent>
    </HotelContractSign>
  </HotelContractSigns>
</AG_HotelContractSignNotifRQ>

Example HTTP response

Response 200
<?xml version="1.0" encoding="UTF-8"?>
<AG_HotelContractSignNotifRS CorrelationID="8b417d6a-f3df-4d65-870c-240378b8ad3e">
  <Success/>
</AG_HotelContractSignNotifRS>
Response 400
<?xml version="1.0" encoding="UTF-8"?>
<AG_HotelContractSignNotifRS CorrelationID="8b417d6a-f3df-4d65-870c-240378b8ad3e">
  <Errors>
    <Error Code="321" ShortText="Required field missing" Status="NotProcessed"/>
  </Errors>
</AG_HotelContractSignNotifRS>
Response 401
<?xml version="1.0" encoding="UTF-8"?>
<AG_HotelContractSignNotifRS CorrelationID="8b417d6a-f3df-4d65-870c-240378b8ad3e">
  <Errors>
    <Error Code="321" ShortText="Authorization error" Status="NotProcessed"/>
  </Errors>
</AG_HotelContractSignNotifRS>