POST services/api/v1/Save_Consumption
Request Information
URI Parameters
None.
Body Parameters
Consumption_Master| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| BranchId | integer |
None. |
|
| LocationId | integer |
None. |
|
| CompanyId | integer |
None. |
|
| CDate | date |
None. |
|
| PreparedBy | integer |
None. |
|
| ApprovedBy | integer |
None. |
|
| VerifiedBy | integer |
None. |
|
| VerifiedDate | date |
None. |
|
| VoucherNo | string |
None. |
|
| VoucherType | integer |
None. |
|
| Status | integer |
None. |
|
| SystemGenerate | integer |
None. |
|
| UserId | integer |
None. |
|
| Consumptiondetails | Collection of Master_Details |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"BranchId": 2,
"LocationId": 3,
"CompanyId": 4,
"CDate": "2026-09-09T15:16:20.8082624+04:00",
"PreparedBy": 6,
"ApprovedBy": 7,
"VerifiedBy": 8,
"VerifiedDate": "2026-09-09T15:16:20.8082624+04:00",
"VoucherNo": "sample string 10",
"VoucherType": 11,
"Status": 12,
"SystemGenerate": 13,
"UserId": 14,
"Consumptiondetails": [
{
"ID": 1,
"SlNo": 2,
"Barcode": "sample string 3",
"ItemName": "sample string 4",
"Unit": "sample string 5",
"Qty": 6.0,
"Foc": 7.0,
"Amount": 8.0,
"Rate": 9.0,
"DiscAmt": 10.0,
"NetAmt": 11.0,
"DiscDist": 12.0,
"FocDist": 13.0,
"FreightDist": 14.0,
"NetCost": 15.0,
"SellPrice": 16.0,
"TaxRate": 17.0,
"DetailTax": 18.0,
"AllowTran": true,
"ExpiryDate": "2026-09-09T15:16:20.8082624+04:00",
"BatchNo": "sample string 21",
"IsExpiry": true,
"Margin": 23.0,
"CostPrice": 24.0,
"Description": "sample string 25",
"Size": "sample string 26",
"ItemCode": "sample string 27",
"SerialNumberDetails": [
{
"SerialNo": "sample string 1",
"SlNo": 2
},
{
"SerialNo": "sample string 1",
"SlNo": 2
}
],
"IsSerialItem": true
},
{
"ID": 1,
"SlNo": 2,
"Barcode": "sample string 3",
"ItemName": "sample string 4",
"Unit": "sample string 5",
"Qty": 6.0,
"Foc": 7.0,
"Amount": 8.0,
"Rate": 9.0,
"DiscAmt": 10.0,
"NetAmt": 11.0,
"DiscDist": 12.0,
"FocDist": 13.0,
"FreightDist": 14.0,
"NetCost": 15.0,
"SellPrice": 16.0,
"TaxRate": 17.0,
"DetailTax": 18.0,
"AllowTran": true,
"ExpiryDate": "2026-09-09T15:16:20.8082624+04:00",
"BatchNo": "sample string 21",
"IsExpiry": true,
"Margin": 23.0,
"CostPrice": 24.0,
"Description": "sample string 25",
"Size": "sample string 26",
"ItemCode": "sample string 27",
"SerialNumberDetails": [
{
"SerialNo": "sample string 1",
"SlNo": 2
},
{
"SerialNo": "sample string 1",
"SlNo": 2
}
],
"IsSerialItem": true
}
]
}
application/x-www-form-urlencoded
Sample:
Sample not available.
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. |