POST api/Genpurchase?Batch={Batch}&item={item}&bid={bid}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| Batch | string |
Required |
|
| item | integer |
Required |
|
| bid | integer |
Required |
Body Parameters
batch_list| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| item_code | integer |
None. |
|
| item_name | string |
None. |
|
| batch | string |
None. |
|
| expiry | string |
None. |
|
| mrp | integer |
None. |
|
| b_rate | decimal number |
None. |
|
| pu_rate | decimal number |
None. |
|
| sale_rate | decimal number |
None. |
|
| brateper | integer |
None. |
|
| srateper | integer |
None. |
|
| opening | decimal number |
None. |
|
| bill_no | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"item_code": 2,
"item_name": "sample string 3",
"batch": "sample string 4",
"expiry": "sample string 5",
"mrp": 6,
"b_rate": 7.1,
"pu_rate": 8.1,
"sale_rate": 9.1,
"brateper": 10,
"srateper": 11,
"opening": 12.1,
"bill_no": "sample string 13"
}
application/xml, text/xml
Sample:
<batch_list xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Salonbilling"> <b_rate>7.1</b_rate> <batch>sample string 4</batch> <bill_no>sample string 13</bill_no> <brateper>10</brateper> <expiry>sample string 5</expiry> <id>1</id> <item_code>2</item_code> <item_name>sample string 3</item_name> <mrp>6</mrp> <opening>12.1</opening> <pu_rate>8.1</pu_rate> <sale_rate>9.1</sale_rate> <srateper>11</srateper> </batch_list>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.