Endpoint: https://ws.icnea.net/promotions_request.aspx
List of all the promotions that are created in the database, with all the information and the listings associated with each promotion.
Code Block | ||
---|---|---|
| ||
<promotions_request>
<link>
<user>integer(4)</user>
<password>character(20)</password>
</link>
<promotion>
<promotion_id>integer(2)</promotion_id>
</promotion>
</promotions_request> |
The <promotion> node is optional.
If there is a <promotion_id>, the response will be only this specific promotion.
If it’s empty, the response will be all the promotions.
Response:
Code Block | ||
---|---|---|
| ||
<promotions_request_response>
<promotions>
<promotion>
<id>integer(2)</id>
<name>character(50)</name>
<code>character(50)</code>
<maximum>integer(3)</maximum>
<used>integer(3)</used>
<price>decimal</price>
<type_price>character(50)</type_price>
<base_price>character(50)</base_price>
<booking_date_start>dd/mm/yyyy</booking_date_start>
<booking_date_end>dd/mm/yyyy</booking_date_end>
<stay_date_start>dd/mm/yyyy</stay_date_start>
<stay_date_end>dd/mm/yyyy</stay_date_end>
<weekdays>True/False</weekdays>
<weekends>True/False</weekends>
<lodgings>
<lodging>integer(8)</lodging>
</lodgings>
</promotion>
</promotions>
</promotions_request_response> |
field | description |
---|---|
id | |
name | |
code | |
maximum | |
used | |
price | |
type_price | |
base_price | |
booking_date_start | |
booking_date_end | |
stay_date_start | |
stay_date_end | |
weekdays | |
weekends | |
lodgings |