Request URL: https://supply.agoda.com/api?apiKey=ADDYOURAPIKEYHERE
Example Request
curl --location 'https://supply.agoda.com/api?apiKey=ADDYOURAPIKEYHERE' \
--header 'Content-Type: text/xml' \
--data '<?xml version="1.0" encoding="UTF-8"?>
<request type="9" timestamp="1436931804">
<!-- Property = 5 LookBack = 90 Days Now - From <= 90 Days -->
<!-- from & to is specified with an offset from the UTC time by adding a positive or negative time behind the time - like this: -->
<criteria status="AmendBooking" from="2020-04-23T14:00:00+07:00" to="2020-04-23T15:00:00+07:00">
<property id="10730279"/>
</criteria>
</request>'
Example Response
<result timestamp="1587628325674">
<properties count="1">
<property id="10730279">
<bookings>
<booking booking_id="473966145" booking_date="2020-04-23T14:32:00+07:00" last_action="2020-04-23T14:51:45+07:00" arrival="2020-04-24" departure="2020-04-25" status="AmendBooking" acknowledge="0"/>
</bookings>
</property>
</properties>
</result>
Time interval criteria example
Request Time |
From Date |
To date |
| 2018-07-17 18:00:00 (GMT+7) | 2018-07-17 at 17:55:00 (GMT+7) | 2018-07-17 at 18:00:00 (GMT+7) |
| 2018-07-17 18:05:00 (GMT+7) | 2018-07-17 at 18:00:00 (GMT+7) | 2018-07-17 at 18:05:00 (GMT+7) |
| 2018-07-17 18:10:00 (GMT+7) | 2018-07-17 at 18:05:00 (GMT+7) | 2018-07-17 at 18:10:00 (GMT+7) |
