POST api/DailyStocks/RoomAllotment/day
Request Information
URI Parameters
None.
Body Parameters
RoomAllotmentBindingModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ServiceItemId | integer |
Required |
|
| Date | date |
Required |
|
| ReleaseDays | integer |
Range: inclusive between 0 and 2000 |
|
| Qty | integer |
Required Range: inclusive between 0 and 2147483647 |
Request Formats
application/json, text/json
Sample:
{
"ServiceItemId": 1,
"Date": "2025-12-14T02:13:39.5838785+00:00",
"ReleaseDays": 1,
"Qty": 3
}
application/xml, text/xml
Sample:
<RoomAllotmentBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TripPlannerAPI.Models.DTO"> <Date>2025-12-14T02:13:39.5838785+00:00</Date> <Qty>3</Qty> <ReleaseDays>1</ReleaseDays> <ServiceItemId>1</ServiceItemId> </RoomAllotmentBindingModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
AllotmentByProfileViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ServiceItemId | integer |
None. |
|
| ServiceItemName | string |
None. |
|
| StockItemCode | string |
None. |
|
| StockCode | string |
String length: inclusive between 0 and 17 |
|
| DateTime | date |
None. |
|
| ReleaseDays | integer |
None. |
|
| Qty | integer |
None. |
|
| IsSpecialPeriod | boolean |
None. |
|
| StockLeft | integer |
None. |
|
| IsStillValid | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"ServiceItemId": 1,
"ServiceItemName": "sample string 2",
"StockItemCode": "sample string 3",
"StockCode": "sample string 4",
"DateTime": "2025-12-14T02:13:39.5995025+00:00",
"ReleaseDays": 6,
"Qty": 7,
"IsSpecialPeriod": true,
"StockLeft": 9,
"IsStillValid": true
}
application/xml, text/xml
Sample:
<AllotmentByProfileViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TripPlannerAPI.Models.DTO"> <DateTime>2025-12-14T02:13:39.5995025+00:00</DateTime> <IsSpecialPeriod>true</IsSpecialPeriod> <IsStillValid>true</IsStillValid> <Qty>7</Qty> <ReleaseDays>6</ReleaseDays> <StockCode>sample string 4</StockCode> <StockItemCode>sample string 3</StockItemCode> <StockLeft>9</StockLeft> <ServiceItemId>1</ServiceItemId> <ServiceItemName>sample string 2</ServiceItemName> </AllotmentByProfileViewModel>