POST api/fuel/insert
Request Information
URI Parameters
None.
Body Parameters
InsertFuelRequestModel| Name | Description | Type | Additional information |
|---|---|---|---|
| FuelID | integer |
None. |
|
| BranchID | integer |
None. |
|
| FinancialYearID | integer |
None. |
|
| Code | string |
None. |
|
| Name | string |
None. |
|
| UnitID | integer |
None. |
|
| UnitPrice | decimal number |
None. |
|
| OpeningStock | decimal number |
None. |
|
| Remarks | string |
None. |
|
| UserID | integer |
None. |
|
| HSNCodeID | integer |
None. |
|
| ProductCategoryID | integer |
None. |
|
| ReorderLevel | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"FuelID": 1,
"BranchID": 2,
"FinancialYearID": 3,
"Code": "sample string 4",
"Name": "sample string 5",
"UnitID": 6,
"UnitPrice": 7.0,
"OpeningStock": 8.0,
"Remarks": "sample string 9",
"UserID": 10,
"HSNCodeID": 11,
"ProductCategoryID": 12,
"ReorderLevel": 13.0
}
application/xml, text/xml
Sample:
<InsertFuelRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CrushMateBackendAPI.Controllers"> <BranchID>2</BranchID> <Code>sample string 4</Code> <FinancialYearID>3</FinancialYearID> <FuelID>1</FuelID> <HSNCodeID>11</HSNCodeID> <Name>sample string 5</Name> <OpeningStock>8</OpeningStock> <ProductCategoryID>12</ProductCategoryID> <Remarks>sample string 9</Remarks> <ReorderLevel>13</ReorderLevel> <UnitID>6</UnitID> <UnitPrice>7</UnitPrice> <UserID>10</UserID> </InsertFuelRequestModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.