POST api/DailyStocks/RoomAllotment/day

Request Information

URI Parameters

None.

Body Parameters

RoomAllotmentBindingModel
NameDescriptionTypeAdditional 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-06-26T14:16:12.2073144+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-06-26T14:16:12.2073144+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
NameDescriptionTypeAdditional 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-06-26T14:16:12.3166905+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-06-26T14:16:12.3166905+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>