GET /v2/lodgings/{id}/stays/{arrival}-{departure}
Returns stay detail for specified lodging. If stay specified in booking is no more available, response status code will be 404 (not found).
Resource information
Authentication |
No |
Response Formats |
xml, json |
HTTP Method |
GET |
Response Object |
Stay
|
API Version |
v2 |
Resource parameters
URI Parameter |
Type |
Description |
id |
long
|
Lodging database unique identifier (used as REST identifier) |
arrival |
String
|
Stay arrival (format: "YYYYMMDD") |
departure |
String
|
Stay departure (format: "YYYYMMDD") |
Example Request
https://api.poplidays.com/v2/lodgings/886/stays/20121208-20121215
Example Response
json
{
"id": "886-20121208-20121215",
"lodgingId": 886,
"arrival": "20121208",
"departure": "20121215",
"basePrice": 262.8,
"price": 197.1,
"discountPercent": 25,
"priceEnabled":true;
"requestOnly":false
"discounts": [
{
"code": "LastMinute",
"label": "Last minute",
"detail": "25%",
"value": 65.7
}
]
}
xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<stay>
<id>886-20121208-20121215</id>
<lodgingId>886</lodgingId>
<arrival>20121208</arrival>
<departure>20121215</departure>
<basePrice>262.8</basePrice>
<price>197.1</price>
<discountPercent>25</discountPercent>
<priceEnabled>true</priceEnabled>
<requestOnly>false</requestOnly>
<discounts>
<discount>
<code>LastMinute</code>
<detail>25%</detail>
<label>Last minute</label>
<value>65.7</value>
</discount>
</discounts>
</stay>