POST api/Allotment
Request Information
URI Parameters
None.
Body Parameters
GETRequestName | Description | Type | Additional information |
---|---|---|---|
FromDate | date |
None. |
|
ToDate | date |
None. |
|
BrokerContractID | integer |
None. |
|
AllotmentTypeID | integer |
None. |
|
RoomTypes | Collection of integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "FromDate": "2025-04-01T00:43:59.6614737-06:00", "ToDate": "2025-04-01T00:43:59.6614737-06:00", "BrokerContractID": 1, "AllotmentTypeID": 1, "RoomTypes": [ 1, 2 ] }
application/xml, text/xml
Sample:
<AllotmentViewModel.APIVM.GETRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ePlat.Models.ViewModels"> <AllotmentTypeID>1</AllotmentTypeID> <BrokerContractID>1</BrokerContractID> <FromDate>2025-04-01T00:43:59.6614737-06:00</FromDate> <RoomTypes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:long>1</d2p1:long> <d2p1:long>2</d2p1:long> </RoomTypes> <ToDate>2025-04-01T00:43:59.6614737-06:00</ToDate> </AllotmentViewModel.APIVM.GETRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of RoomTypesName | Description | Type | Additional information |
---|---|---|---|
RoomTypeID | integer |
None. |
|
RoomType | string |
None. |
|
Allotments | Collection of AllotmentInfo |
None. |
Response Formats
application/json, text/json
Sample:
[ { "RoomTypeID": 1, "RoomType": "sample string 2", "Allotments": [ { "AllotmentTypeID": 1, "AllotmentLabel": "sample string 2", "Dates": [ { "Date": "sample string 1", "RoomNights": 2 }, { "Date": "sample string 1", "RoomNights": 2 } ] }, { "AllotmentTypeID": 1, "AllotmentLabel": "sample string 2", "Dates": [ { "Date": "sample string 1", "RoomNights": 2 }, { "Date": "sample string 1", "RoomNights": 2 } ] } ] }, { "RoomTypeID": 1, "RoomType": "sample string 2", "Allotments": [ { "AllotmentTypeID": 1, "AllotmentLabel": "sample string 2", "Dates": [ { "Date": "sample string 1", "RoomNights": 2 }, { "Date": "sample string 1", "RoomNights": 2 } ] }, { "AllotmentTypeID": 1, "AllotmentLabel": "sample string 2", "Dates": [ { "Date": "sample string 1", "RoomNights": 2 }, { "Date": "sample string 1", "RoomNights": 2 } ] } ] } ]
application/xml, text/xml
Sample:
<ArrayOfAllotmentViewModel.APIVM.RoomTypes xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ePlat.Models.ViewModels"> <AllotmentViewModel.APIVM.RoomTypes> <Allotments> <AllotmentViewModel.APIVM.AllotmentInfo> <AllotmentLabel>sample string 2</AllotmentLabel> <AllotmentTypeID>1</AllotmentTypeID> <Dates> <AllotmentViewModel.APIVM.AllotmentStatus> <Date>sample string 1</Date> <RoomNights>2</RoomNights> </AllotmentViewModel.APIVM.AllotmentStatus> <AllotmentViewModel.APIVM.AllotmentStatus> <Date>sample string 1</Date> <RoomNights>2</RoomNights> </AllotmentViewModel.APIVM.AllotmentStatus> </Dates> </AllotmentViewModel.APIVM.AllotmentInfo> <AllotmentViewModel.APIVM.AllotmentInfo> <AllotmentLabel>sample string 2</AllotmentLabel> <AllotmentTypeID>1</AllotmentTypeID> <Dates> <AllotmentViewModel.APIVM.AllotmentStatus> <Date>sample string 1</Date> <RoomNights>2</RoomNights> </AllotmentViewModel.APIVM.AllotmentStatus> <AllotmentViewModel.APIVM.AllotmentStatus> <Date>sample string 1</Date> <RoomNights>2</RoomNights> </AllotmentViewModel.APIVM.AllotmentStatus> </Dates> </AllotmentViewModel.APIVM.AllotmentInfo> </Allotments> <RoomType>sample string 2</RoomType> <RoomTypeID>1</RoomTypeID> </AllotmentViewModel.APIVM.RoomTypes> <AllotmentViewModel.APIVM.RoomTypes> <Allotments> <AllotmentViewModel.APIVM.AllotmentInfo> <AllotmentLabel>sample string 2</AllotmentLabel> <AllotmentTypeID>1</AllotmentTypeID> <Dates> <AllotmentViewModel.APIVM.AllotmentStatus> <Date>sample string 1</Date> <RoomNights>2</RoomNights> </AllotmentViewModel.APIVM.AllotmentStatus> <AllotmentViewModel.APIVM.AllotmentStatus> <Date>sample string 1</Date> <RoomNights>2</RoomNights> </AllotmentViewModel.APIVM.AllotmentStatus> </Dates> </AllotmentViewModel.APIVM.AllotmentInfo> <AllotmentViewModel.APIVM.AllotmentInfo> <AllotmentLabel>sample string 2</AllotmentLabel> <AllotmentTypeID>1</AllotmentTypeID> <Dates> <AllotmentViewModel.APIVM.AllotmentStatus> <Date>sample string 1</Date> <RoomNights>2</RoomNights> </AllotmentViewModel.APIVM.AllotmentStatus> <AllotmentViewModel.APIVM.AllotmentStatus> <Date>sample string 1</Date> <RoomNights>2</RoomNights> </AllotmentViewModel.APIVM.AllotmentStatus> </Dates> </AllotmentViewModel.APIVM.AllotmentInfo> </Allotments> <RoomType>sample string 2</RoomType> <RoomTypeID>1</RoomTypeID> </AllotmentViewModel.APIVM.RoomTypes> </ArrayOfAllotmentViewModel.APIVM.RoomTypes>