POST api/Booking
Request Information
URI Parameters
None.
Body Parameters
booking| Name | Description | Type | Additional information |
|---|---|---|---|
| bookingid | string |
None. |
|
| customerid | string |
None. |
|
| roomid | string |
None. |
|
| person_adult | integer |
None. |
|
| person_child | integer |
None. |
|
| remark | string |
None. |
|
| booking_status | integer |
None. |
|
| reference | string |
None. |
|
| createdby | string |
None. |
|
| createdon | date |
None. |
|
| booking_from_date | date |
None. |
|
| booking_to_date | date |
None. |
|
| room_tarrif | decimal number |
None. |
|
| room_actual_tarrif | decimal number |
None. |
|
| cgst_amt | decimal number |
None. |
|
| sgst_amt | decimal number |
None. |
|
| meal_plan | string |
None. |
|
| resident_plan | string |
None. |
|
| booking_purpose | string |
None. |
|
| hotelid | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"bookingid": "sample string 1",
"customerid": "sample string 2",
"roomid": "sample string 3",
"person_adult": 4,
"person_child": 5,
"remark": "sample string 6",
"booking_status": 7,
"reference": "sample string 8",
"createdby": "sample string 9",
"createdon": "2025-12-11T20:14:55.8499015+05:30",
"booking_from_date": "2025-12-11T20:14:55.8499015+05:30",
"booking_to_date": "2025-12-11T20:14:55.8499015+05:30",
"room_tarrif": 12.0,
"room_actual_tarrif": 13.0,
"cgst_amt": 14.0,
"sgst_amt": 15.0,
"meal_plan": "sample string 16",
"resident_plan": "sample string 17",
"booking_purpose": "sample string 18",
"hotelid": "sample string 19"
}
application/xml, text/xml
Sample:
<booking xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/InventoryAPI.Models"> <booking_from_date>2025-12-11T20:14:55.8499015+05:30</booking_from_date> <booking_purpose>sample string 18</booking_purpose> <booking_status>7</booking_status> <booking_to_date>2025-12-11T20:14:55.8499015+05:30</booking_to_date> <bookingid>sample string 1</bookingid> <cgst_amt>14</cgst_amt> <createdby>sample string 9</createdby> <createdon>2025-12-11T20:14:55.8499015+05:30</createdon> <customerid>sample string 2</customerid> <hotelid>sample string 19</hotelid> <meal_plan>sample string 16</meal_plan> <person_adult>4</person_adult> <person_child>5</person_child> <reference>sample string 8</reference> <remark>sample string 6</remark> <resident_plan>sample string 17</resident_plan> <room_actual_tarrif>13</room_actual_tarrif> <room_tarrif>12</room_tarrif> <roomid>sample string 3</roomid> <sgst_amt>15</sgst_amt> </booking>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |