Body
The data for the new discount
-
Percentage of the discount for the room
-
Discounted price for the room
-
Discount start date in UTC
-
Discount end date in UTC
Sample request:
POST /rooms/{roomId}/discounts { "Percentage": 20 "StartDate": "2024-02-0200:00:00", "EndDate": "2024-03-03T00:00:00" }
The data for the new discount
Percentage of the discount for the room
Discounted price for the room
Discount start date in UTC
Discount end date in UTC
The data for the new discount
Percentage of the discount for the room
Discounted price for the room
Discount start date in UTC
Discount end date in UTC
curl \
-X POST http://api.example.com/api/rooms/{roomId}/discounts \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"percentage":42.0,"discountedPrice":42.0,"startDate":"2024-05-04T09:42:00+00:00","endDate":"2024-05-04T09:42:00+00:00"}'
curl \
-X POST http://api.example.com/api/rooms/{roomId}/discounts \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: text/json"
curl \
-X POST http://api.example.com/api/rooms/{roomId}/discounts \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/*+json"
{
"percentage": 42.0,
"discountedPrice": 42.0,
"startDate": "2024-05-04T09:42:00+00:00",
"endDate": "2024-05-04T09:42:00+00:00"
}
{
"percentage": 42.0,
"discountedPrice": 42.0,
"startDate": "2025-05-04T09:42:00Z",
"endDate": "2025-05-04T09:42:00Z"
}
{
"percentage": 42.0,
"discountedPrice": 42.0,
"startDate": "2025-05-04T09:42:00Z",
"endDate": "2025-05-04T09:42:00Z"
}
{
"id": "string",
"roomId": "string",
"percentage": 42.0,
"originalPrice": 42.0,
"discountedPrice": 42.0,
"startDate": "2024-05-04T09:42:00+00:00",
"endDate": "2024-05-04T09:42:00+00:00"
}
{
"id": "string",
"roomId": "string",
"percentage": 42.0,
"originalPrice": 42.0,
"discountedPrice": 42.0,
"startDate": "2025-05-04T09:42:00Z",
"endDate": "2025-05-04T09:42:00Z"
}