POST api/Hotel/inventory
Documentation for 'inventory'.
Request Information
Parameters
| Name | Description | Additional information |
|---|---|---|
| req | Documentation for 'req'. |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{
"Header": {
"Username": "sample string 1",
"Password": "sample string 2"
},
"HotelCode": "sample string 1",
"AvailInventoryUpdate": {
"DateRange": {
"from": "sample string 1",
"to": "sample string 2",
"mon": true,
"tue": true,
"wed": true,
"thu": true,
"fri": true,
"sat": true,
"sun": true
}
},
"Availability": {
"roomcode": "sample string 1",
"count": 2,
"closed": true
}
}
application/xml, text/xml
Sample:
<BudgetStayInventroyReq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models.Inventory">
<AvailInventoryUpdate>
<DateRange>
<fri>true</fri>
<from>sample string 1</from>
<mon>true</mon>
<sat>true</sat>
<sun>true</sun>
<thu>true</thu>
<to>sample string 2</to>
<tue>true</tue>
<wed>true</wed>
</DateRange>
</AvailInventoryUpdate>
<Availability>
<closed>true</closed>
<count>2</count>
<roomcode>sample string 1</roomcode>
</Availability>
<Header>
<Password>sample string 2</Password>
<Username>sample string 1</Username>
</Header>
<HotelCode>sample string 1</HotelCode>
</BudgetStayInventroyReq>
application/x-www-form-urlencoded
Sample: