POST api/Weigh/SaveMaterialManagement
Request Information
URI Parameters
None.
Body Parameters
GetMaterialMasterData| Name | Description | Type | Additional information |
|---|---|---|---|
| bill_no | string |
None. |
|
| date | string |
None. |
|
| vehicle_no | string |
None. |
|
| userid | string |
None. |
|
| supplier_id | integer |
None. |
|
| item_total | decimal number |
None. |
|
| total | decimal number |
None. |
|
| transpoet_cost | decimal number |
None. |
|
| total_cost | decimal number |
None. |
|
| apiKey | string |
None. |
|
| items | Collection of GetMaterialDetailData |
None. |
Request Formats
application/json, text/json
Sample:
{
"bill_no": "sample string 1",
"date": "sample string 2",
"vehicle_no": "sample string 3",
"userid": "sample string 4",
"supplier_id": 5,
"item_total": 6.1,
"total": 7.1,
"transpoet_cost": 8.1,
"total_cost": 9.1,
"apiKey": "sample string 10",
"items": [
{
"product_id": 1,
"quantity": 2.1,
"item_value": 3.1,
"product": "sample string 4",
"name": "sample string 5"
},
{
"product_id": 1,
"quantity": 2.1,
"item_value": 3.1,
"product": "sample string 4",
"name": "sample string 5"
}
]
}
application/xml, text/xml
Sample:
<WeighController.GetMaterialMasterData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cenmark.WebApi.Controllers">
<apiKey>sample string 10</apiKey>
<bill_no>sample string 1</bill_no>
<date>sample string 2</date>
<item_total>6.1</item_total>
<items>
<WeighController.GetMaterialDetailData>
<item_value>3.1</item_value>
<name>sample string 5</name>
<product>sample string 4</product>
<product_id>1</product_id>
<quantity>2.1</quantity>
</WeighController.GetMaterialDetailData>
<WeighController.GetMaterialDetailData>
<item_value>3.1</item_value>
<name>sample string 5</name>
<product>sample string 4</product>
<product_id>1</product_id>
<quantity>2.1</quantity>
</WeighController.GetMaterialDetailData>
</items>
<supplier_id>5</supplier_id>
<total>7.1</total>
<total_cost>9.1</total_cost>
<transpoet_cost>8.1</transpoet_cost>
<userid>sample string 4</userid>
<vehicle_no>sample string 3</vehicle_no>
</WeighController.GetMaterialMasterData>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
stringResponse Formats
application/json, text/json
Sample:
"sample string 1"
application/xml, text/xml
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>