This endpoint is used to check your booking checkin and checkout date is valid or not.
Method | URI | Headers |
---|---|---|
POST | /api/p/availability/validate | Accept: application/json |
None
Param | Description | Type | Required | Notes |
---|---|---|---|---|
partner_room_id | Room id of a partner. | String | Yes | This form data parameter must have value |
checkin | Check in time. | String | Yes | This form data parameter must have value |
checkout | Checkout time. | String | Yes | This form data parameter must have value and greater than checkin |
None
Example request
curl \
--request POST \
--url https://api-sandbox.luxstay.com/api/booking/price \
--header 'Accept: application/json' \
--form partner_room_id=123456 \
--form checkin=16-06-2019 \
--form checkout=18-06-2019
Example response
{
"code": 200,
"request_id": "ab9da2cc-ad0d-4d0a-9b21-60e041f2c95a"
}
Reason invalid form data
Example response
{
"message": "Wrong {data-form-name}."
}