POST api/nhacungcap/SuaNCC
Sửa nhà cung cấp Header truyền vào token 31/07/2018 data truyên lên ntn thì cập nhật nt đó ko xét rỗng trừ mã NCC
Request Information
URI Parameters
None.
Body Parameters
NhaCungCapData| Name | Description | Type | Additional information |
|---|---|---|---|
| IDNhaCungCap | integer |
None. |
|
| TenNhaCungCap | string |
None. |
|
| MaNhaCungCap | string |
None. |
|
| DienThoai | string |
None. |
|
| DiaChi | string |
None. |
|
| string |
None. |
||
| GhiChu | string |
None. |
|
| NguoiLienHe | string |
None. |
|
| MSThue | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"IDNhaCungCap": 1,
"TenNhaCungCap": "sample string 2",
"MaNhaCungCap": "sample string 3",
"DienThoai": "sample string 4",
"DiaChi": "sample string 5",
"Email": "sample string 6",
"GhiChu": "sample string 7",
"NguoiLienHe": "sample string 8",
"MSThue": "sample string 9"
}
application/xml, text/xml
Sample:
<NhaCungCapData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API_KD.Models"> <DiaChi>sample string 5</DiaChi> <DienThoai>sample string 4</DienThoai> <Email>sample string 6</Email> <GhiChu>sample string 7</GhiChu> <IDNhaCungCap>1</IDNhaCungCap> <MSThue>sample string 9</MSThue> <MaNhaCungCap>sample string 3</MaNhaCungCap> <NguoiLienHe>sample string 8</NguoiLienHe> <TenNhaCungCap>sample string 2</TenNhaCungCap> </NhaCungCapData>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
BaseModelOfObject| Name | Description | Type | Additional information |
|---|---|---|---|
| status | integer |
None. |
|
| data | Object |
None. |
|
| page | Object |
None. |
|
| error | ErrorModel |
None. |
Response Formats
application/json, text/json
Sample:
{
"status": 1,
"data": {},
"page": {},
"error": {
"message": "sample string 1",
"code": "sample string 2"
}
}
application/xml, text/xml
Sample:
<BaseModelOfanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API_KD.Models">
<data />
<error>
<code>sample string 2</code>
<message>sample string 1</message>
</error>
<page />
<status>1</status>
</BaseModelOfanyType>