POST api/bkd/bill/{str_code}/{id_booking}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
str_code | string |
Required |
|
id_booking | integer |
Required |
Body Parameters
BillModelName | Description | Type | Additional information |
---|---|---|---|
cod_product | string |
None. |
|
descr | string |
None. |
|
qty | decimal number |
None. |
|
um | string |
None. |
|
price | decimal number |
None. |
|
cod_vat | string |
None. |
|
total | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{ "cod_product": "sample string 1", "descr": "sample string 2", "qty": 3.0, "um": "sample string 4", "price": 5.0, "cod_vat": "sample string 6", "total": 7.0 }
application/xml, text/xml
Sample:
<BillModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IdaWebApi.Areas.Booking.Model"> <cod_product>sample string 1</cod_product> <cod_vat>sample string 6</cod_vat> <descr>sample string 2</descr> <price>5</price> <qty>3</qty> <total>7</total> <um>sample string 4</um> </BillModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Collection of BillName | Description | Type | Additional information |
---|---|---|---|
cod_product | string |
None. |
|
descr | string |
None. |
|
qty | decimal number |
None. |
|
um | string |
None. |
|
price | decimal number |
None. |
|
cod_vat | string |
None. |
|
total | decimal number |
None. |
Response Formats
application/json, text/json
Sample:
[ { "cod_product": "sample string 1", "descr": "sample string 2", "qty": 1.0, "um": "sample string 3", "price": 1.0, "cod_vat": "sample string 4", "total": 1.0 }, { "cod_product": "sample string 1", "descr": "sample string 2", "qty": 1.0, "um": "sample string 3", "price": 1.0, "cod_vat": "sample string 4", "total": 1.0 } ]
application/xml, text/xml
Sample:
<ArrayOfBill xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IdaWebApi.Areas.Booking.Model"> <Bill> <cod_product>sample string 1</cod_product> <cod_vat>sample string 4</cod_vat> <descr>sample string 2</descr> <price>1</price> <qty>1</qty> <total>1</total> <um>sample string 3</um> </Bill> <Bill> <cod_product>sample string 1</cod_product> <cod_vat>sample string 4</cod_vat> <descr>sample string 2</descr> <price>1</price> <qty>1</qty> <total>1</total> <um>sample string 3</um> </Bill> </ArrayOfBill>