POST API/RoomTariff/RoomTypeTaxUpdate
Request Information
URI Parameters
None.
Body Parameters
datas| Name | Description | Type | Additional information |
|---|---|---|---|
| HotelId | integer |
None. |
|
| RoomTypeId | integer |
None. |
|
| UserId | integer |
None. |
|
| RoomTax | Collection of RoomTax |
None. |
Request Formats
application/json, text/json
Sample:
{
"HotelId": 1,
"RoomTypeId": 2,
"UserId": 3,
"RoomTax": [
{
"ErrMsg": "sample string 1",
"TaxName": "sample string 2",
"TaxId": 3,
"Id": 4,
"Selected": true,
"Flg": true,
"TaxValue": 7.0,
"ToBeCalculate": "sample string 8"
},
{
"ErrMsg": "sample string 1",
"TaxName": "sample string 2",
"TaxId": 3,
"Id": 4,
"Selected": true,
"Flg": true,
"TaxValue": 7.0,
"ToBeCalculate": "sample string 8"
}
]
}
application/xml, text/xml
Sample:
<datas xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HMSApi.Models">
<HotelId>1</HotelId>
<RoomTax>
<RoomTax>
<ErrMsg>sample string 1</ErrMsg>
<Flg>true</Flg>
<Id>4</Id>
<Selected>true</Selected>
<TaxId>3</TaxId>
<TaxName>sample string 2</TaxName>
<TaxValue>7</TaxValue>
<ToBeCalculate>sample string 8</ToBeCalculate>
</RoomTax>
<RoomTax>
<ErrMsg>sample string 1</ErrMsg>
<Flg>true</Flg>
<Id>4</Id>
<Selected>true</Selected>
<TaxId>3</TaxId>
<TaxName>sample string 2</TaxName>
<TaxValue>7</TaxValue>
<ToBeCalculate>sample string 8</ToBeCalculate>
</RoomTax>
</RoomTax>
<RoomTypeId>2</RoomTypeId>
<UserId>3</UserId>
</datas>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of RoomTax| Name | Description | Type | Additional information |
|---|---|---|---|
| ErrMsg | string |
None. |
|
| TaxName | string |
None. |
|
| TaxId | integer |
None. |
|
| Id | integer |
None. |
|
| Selected | boolean |
None. |
|
| Flg | boolean |
None. |
|
| TaxValue | decimal number |
None. |
|
| ToBeCalculate | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"ErrMsg": "sample string 1",
"TaxName": "sample string 2",
"TaxId": 3,
"Id": 4,
"Selected": true,
"Flg": true,
"TaxValue": 7.0,
"ToBeCalculate": "sample string 8"
},
{
"ErrMsg": "sample string 1",
"TaxName": "sample string 2",
"TaxId": 3,
"Id": 4,
"Selected": true,
"Flg": true,
"TaxValue": 7.0,
"ToBeCalculate": "sample string 8"
}
]
application/xml, text/xml
Sample:
<ArrayOfRoomTax xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HMSApi.Models">
<RoomTax>
<ErrMsg>sample string 1</ErrMsg>
<Flg>true</Flg>
<Id>4</Id>
<Selected>true</Selected>
<TaxId>3</TaxId>
<TaxName>sample string 2</TaxName>
<TaxValue>7</TaxValue>
<ToBeCalculate>sample string 8</ToBeCalculate>
</RoomTax>
<RoomTax>
<ErrMsg>sample string 1</ErrMsg>
<Flg>true</Flg>
<Id>4</Id>
<Selected>true</Selected>
<TaxId>3</TaxId>
<TaxName>sample string 2</TaxName>
<TaxValue>7</TaxValue>
<ToBeCalculate>sample string 8</ToBeCalculate>
</RoomTax>
</ArrayOfRoomTax>