POST api/loaihang/XoaLoaiMatHang
Xóa loại mặt hàng Header truyền vào token API có kiểm tra quyền của tk với chức năng thêm xóa sửa Loại Hàng
Request Information
URI Parameters
None.
Body Parameters
LoaiHangAdd| Name | Description | Type | Additional information |
|---|---|---|---|
| IDLoaiMatHang | integer |
None. |
|
| TenLoaiMatHang | string |
None. |
|
| IDCha | integer |
None. |
|
| IDLoaiRef | integer |
None. |
|
| GhiChu | string |
None. |
|
| MoTaLMH | string |
None. |
|
| DoUuTien | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"IDLoaiMatHang": 1,
"TenLoaiMatHang": "sample string 2",
"IDCha": 3,
"IDLoaiRef": 4,
"GhiChu": "sample string 5",
"MoTaLMH": "sample string 6",
"DoUuTien": 7
}
application/xml, text/xml
Sample:
<LoaiHangAdd xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API_KD.Models"> <DoUuTien>7</DoUuTien> <GhiChu>sample string 5</GhiChu> <IDCha>3</IDCha> <IDLoaiMatHang>1</IDLoaiMatHang> <IDLoaiRef>4</IDLoaiRef> <MoTaLMH>sample string 6</MoTaLMH> <TenLoaiMatHang>sample string 2</TenLoaiMatHang> </LoaiHangAdd>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
BaseModelOfBoolean| Name | Description | Type | Additional information |
|---|---|---|---|
| status | integer |
None. |
|
| data | boolean |
None. |
|
| page | boolean |
None. |
|
| error | ErrorModel |
None. |
Response Formats
application/json, text/json
Sample:
{
"status": 1,
"data": true,
"page": true,
"error": {
"message": "sample string 1",
"code": "sample string 2"
}
}
application/xml, text/xml
Sample:
<BaseModelOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API_KD.Models">
<data>true</data>
<error>
<code>sample string 2</code>
<message>sample string 1</message>
</error>
<page>true</page>
<status>1</status>
</BaseModelOfboolean>