Request URL: https://supply.agoda.com/api?apiKey=ADDYOURAPIKEYHERE
Example Request - Deviation Mode Percentage
Amount refers to the percentage by which the price for the indicated occupancy deviates from the base_price. Percentage can be either positive or negative.
curl --location 'https://supply.agoda.com/api?apiKey=ADDYOURAPIKEYHERE' \
--header 'Content-Type: application/xml' \
--data '<?xml version="1.0" encoding="UTF-8"?>
<request timestamp="1563330485525" type="10">
<criteria property_id="10730279">
<rate>
<update room_id="129340033" rateplan_id="3392615" >
<date_range from="2022-01-01" to="2022-01-01"/>
<prices currency="THB">
<deviation base_price="1000.0">
<occupancy person="1" percentage="10"/>
<occupancy person="2" percentage="20"/>
<occupancy person="3" percentage="20"/>
<occupancy person="4" percentage="20"/>
</deviation>
<extra_bed>100.0</extra_bed>
<child_rates>
<child_rate age_band_code="1" price="500.0"/>
<child_rate age_band_code="2" price="600.0"/>
<child_rate age_band_code="3" price="700.0"/>
</child_rates>
</prices>
<restrictions>
<closed>false</closed>
<ctd>false</ctd>
<cta>false</cta>
<los>
<min>1</min>
<max>30</max>
</los>
</restrictions>
</update>
</rate>
</criteria>
</request>
Price Table - Max Occupancy = 4
The following table illustrates example rates for each occupancy for a room with a maximum available occupancy of 4 guests.
Occupancy |
1 |
2 |
3 |
4 |
Price |
1100.0 THB | 1200.0 THB | 1200.0 THB | 1200.0 THB |
Example Response
<result TUID="89f66310-6718-11e5-b298-0758c951ac41" timestamp="1443579079617"/>
