POST api/Restaurant_invoice
Request Information
URI Parameters
None.
Body Parameters
Restaurant_invoice_master| Name | Description | Type | Additional information |
|---|---|---|---|
| id | string |
None. |
|
| billno | string |
None. |
|
| bill_type | string |
None. |
|
| room_id | string |
None. |
|
| table_no | string |
None. |
|
| customer_name | string |
None. |
|
| mobileno | string |
None. |
|
| no_of_guest | integer |
None. |
|
| subtotal | decimal number |
None. |
|
| discount | decimal number |
None. |
|
| tax_amount | decimal number |
None. |
|
| grandtotal | decimal number |
None. |
|
| payment_mode | integer |
None. |
|
| is_final | integer |
None. |
|
| credit_for | string |
None. |
|
| createdon | string |
None. |
|
| hotelid | string |
None. |
|
| payment_details | Collection of Restaurant_payment_details |
None. |
|
| bill_Details | Collection of Restaurant_invoice_details |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": "sample string 1",
"billno": "sample string 2",
"bill_type": "sample string 3",
"room_id": "sample string 4",
"table_no": "sample string 5",
"customer_name": "sample string 6",
"mobileno": "sample string 7",
"no_of_guest": 8,
"subtotal": 9.0,
"discount": 10.0,
"tax_amount": 11.0,
"grandtotal": 12.0,
"payment_mode": 13,
"is_final": 14,
"credit_for": "sample string 15",
"createdon": "sample string 16",
"hotelid": "sample string 17",
"payment_details": [
{
"id": "sample string 1",
"bill_id": "sample string 2",
"payment_mode": 3,
"amount": 4.0
},
{
"id": "sample string 1",
"bill_id": "sample string 2",
"payment_mode": 3,
"amount": 4.0
}
],
"bill_Details": [
{
"id": "sample string 1",
"bill_master_id": "sample string 2",
"item_id": "sample string 3",
"item_name": "sample string 4",
"qty": 5.0,
"rate": 6.0,
"amount": 7.0
},
{
"id": "sample string 1",
"bill_master_id": "sample string 2",
"item_id": "sample string 3",
"item_name": "sample string 4",
"qty": 5.0,
"rate": 6.0,
"amount": 7.0
}
]
}
application/xml, text/xml
Sample:
<Restaurant_invoice_master xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/InventoryAPI.Models">
<bill_Details>
<Restaurant_invoice_details>
<amount>7</amount>
<bill_master_id>sample string 2</bill_master_id>
<id>sample string 1</id>
<item_id>sample string 3</item_id>
<item_name>sample string 4</item_name>
<qty>5</qty>
<rate>6</rate>
</Restaurant_invoice_details>
<Restaurant_invoice_details>
<amount>7</amount>
<bill_master_id>sample string 2</bill_master_id>
<id>sample string 1</id>
<item_id>sample string 3</item_id>
<item_name>sample string 4</item_name>
<qty>5</qty>
<rate>6</rate>
</Restaurant_invoice_details>
</bill_Details>
<bill_type>sample string 3</bill_type>
<billno>sample string 2</billno>
<createdon>sample string 16</createdon>
<credit_for>sample string 15</credit_for>
<customer_name>sample string 6</customer_name>
<discount>10</discount>
<grandtotal>12</grandtotal>
<hotelid>sample string 17</hotelid>
<id>sample string 1</id>
<is_final>14</is_final>
<mobileno>sample string 7</mobileno>
<no_of_guest>8</no_of_guest>
<payment_details>
<Restaurant_payment_details>
<amount>4</amount>
<bill_id>sample string 2</bill_id>
<id>sample string 1</id>
<payment_mode>3</payment_mode>
</Restaurant_payment_details>
<Restaurant_payment_details>
<amount>4</amount>
<bill_id>sample string 2</bill_id>
<id>sample string 1</id>
<payment_mode>3</payment_mode>
</Restaurant_payment_details>
</payment_details>
<payment_mode>13</payment_mode>
<room_id>sample string 4</room_id>
<subtotal>9</subtotal>
<table_no>sample string 5</table_no>
<tax_amount>11</tax_amount>
</Restaurant_invoice_master>
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. |