POST api/dathangncc/CapNhatPhieuDatHangNCC
Cập nhật phiếu đặt nhà cung cấp Header truyền token
Request Information
URI Parameters
None.
Body Parameters
PhieuDatNCC| Name | Description | Type | Additional information |
|---|---|---|---|
| IDPhieu | integer |
None. |
|
| MaPhieu | string |
None. |
|
| IDNhaCungCap | integer |
None. |
|
| IDChiNhanh | integer |
None. |
|
| IDNguoiLap | integer |
None. |
|
| TongSoLuong | integer |
None. |
|
| TienDatCoc | decimal number |
None. |
|
| TongTien | decimal number |
None. |
|
| NgayCoHang | string |
None. |
|
| NgayLap | string |
None. |
|
| GhiChu | string |
None. |
|
| ChiTiet | Collection of ChiTietPhieuDatNCC |
None. |
Request Formats
application/json, text/json
Sample:
{
"IDPhieu": 1,
"MaPhieu": "sample string 2",
"IDNhaCungCap": 3,
"IDChiNhanh": 4,
"IDNguoiLap": 5,
"TongSoLuong": 6,
"TienDatCoc": 7.1,
"TongTien": 8.1,
"NgayCoHang": "sample string 9",
"NgayLap": "sample string 10",
"GhiChu": "sample string 11",
"ChiTiet": [
{
"IDMatHang": "sample string 1",
"IDPhieu": 2,
"DonGia": 3.1,
"SoLuong": 4.1,
"GhiChu": "sample string 5"
},
{
"IDMatHang": "sample string 1",
"IDPhieu": 2,
"DonGia": 3.1,
"SoLuong": 4.1,
"GhiChu": "sample string 5"
}
]
}
application/xml, text/xml
Sample:
<PhieuDatNCC xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API_KD.Models">
<ChiTiet>
<ChiTietPhieuDatNCC>
<DonGia>3.1</DonGia>
<GhiChu>sample string 5</GhiChu>
<IDMatHang>sample string 1</IDMatHang>
<IDPhieu>2</IDPhieu>
<SoLuong>4.1</SoLuong>
</ChiTietPhieuDatNCC>
<ChiTietPhieuDatNCC>
<DonGia>3.1</DonGia>
<GhiChu>sample string 5</GhiChu>
<IDMatHang>sample string 1</IDMatHang>
<IDPhieu>2</IDPhieu>
<SoLuong>4.1</SoLuong>
</ChiTietPhieuDatNCC>
</ChiTiet>
<GhiChu>sample string 11</GhiChu>
<IDChiNhanh>4</IDChiNhanh>
<IDNguoiLap>5</IDNguoiLap>
<IDNhaCungCap>3</IDNhaCungCap>
<IDPhieu>1</IDPhieu>
<MaPhieu>sample string 2</MaPhieu>
<NgayCoHang>sample string 9</NgayCoHang>
<NgayLap>sample string 10</NgayLap>
<TienDatCoc>7.1</TienDatCoc>
<TongSoLuong>6</TongSoLuong>
<TongTien>8.1</TongTien>
</PhieuDatNCC>
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>