Request URL: https://supply.agoda.com/api?apiKey=ADDYOURAPIKEYHERE
Example Request - Basic Mode / Use same price for all occupancies
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">
<normal default="2000.0"/>
<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 = 5
The following table illustrates example rates for each occupancy for a room with a maximum available occupancy of 5 guests.
Occupancy |
1 |
2 |
3 |
4 |
5 |
Price |
2000.0 THB | 2000.0 THB | 2000.0 THB | 2000.0 THB | 2000.0 THB |
Example Response
<result TUID="89f66310-6718-11e5-b298-0758c951ac41" timestamp="1443579079617"/>
