POST api/Accounting/Material/CraeteMaterialAndUpdateMaterial
Request Information
URI Parameters
None.
Body Parameters
m_CreateMaterial| Name | Description | Type | Additional information |
|---|---|---|---|
| mat_type_id | integer |
None. |
|
| materialCode | string |
None. |
|
| materialName | string |
None. |
|
| accountNo | string |
None. |
|
| color | string |
None. |
|
| stockId | integer |
None. |
|
| typeUnit | string |
None. |
|
| minStock | decimal number |
None. |
|
| unitPrice | decimal number |
None. |
|
| location_id | integer |
None. |
|
| descriptions | string |
None. |
|
| mat_id | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"mat_type_id": 1,
"materialCode": "sample string 2",
"materialName": "sample string 3",
"accountNo": "sample string 4",
"color": "sample string 5",
"stockId": 1,
"typeUnit": "sample string 6",
"minStock": 1.0,
"unitPrice": 7.0,
"location_id": 1,
"descriptions": "sample string 8",
"mat_id": 9
}
application/xml, text/xml
Sample:
<m_CreateMaterial xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MRP.Domain.Models.Accounting"> <accountNo>sample string 4</accountNo> <color>sample string 5</color> <descriptions>sample string 8</descriptions> <location_id>1</location_id> <mat_id>9</mat_id> <mat_type_id>1</mat_type_id> <materialCode>sample string 2</materialCode> <materialName>sample string 3</materialName> <minStock>1</minStock> <stockId>1</stockId> <typeUnit>sample string 6</typeUnit> <unitPrice>7</unitPrice> </m_CreateMaterial>
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.