POST api/chinhanh/TaoChiNhanh
Tạo mới chi nhánh bên Web bán hàng trc rồi mới thêm bên donvi HRM 1/8/2018
Request Information
URI Parameters
None.
Body Parameters
ChiNhanh| Name | Description | Type | Additional information |
|---|---|---|---|
| IDChiNhanh | integer |
None. |
|
| TenChiNhanh | string |
None. |
|
| MaChiNhanh | string |
None. |
|
| IDTinhThanh | integer |
None. |
|
| IDQuanHuyen | integer |
None. |
|
| DiaChi | string |
None. |
|
| DienThoai | string |
None. |
|
| Fax | string |
None. |
|
| GhiChu | string |
None. |
|
| IDKHDPS | string |
None. |
|
| CreatedBy | string |
None. |
|
| TenTinhThanh | string |
None. |
|
| TenQuanHuyen | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"IDChiNhanh": 1,
"TenChiNhanh": "sample string 2",
"MaChiNhanh": "sample string 3",
"IDTinhThanh": 4,
"IDQuanHuyen": 5,
"DiaChi": "sample string 6",
"DienThoai": "sample string 7",
"Fax": "sample string 8",
"GhiChu": "sample string 9",
"IDKHDPS": "sample string 10",
"CreatedBy": "sample string 11",
"TenTinhThanh": "sample string 12",
"TenQuanHuyen": "sample string 13"
}
application/xml, text/xml
Sample:
<ChiNhanh xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API_KD.Models"> <CreatedBy>sample string 11</CreatedBy> <DiaChi>sample string 6</DiaChi> <DienThoai>sample string 7</DienThoai> <Fax>sample string 8</Fax> <GhiChu>sample string 9</GhiChu> <IDChiNhanh>1</IDChiNhanh> <IDKHDPS>sample string 10</IDKHDPS> <IDQuanHuyen>5</IDQuanHuyen> <IDTinhThanh>4</IDTinhThanh> <MaChiNhanh>sample string 3</MaChiNhanh> <TenChiNhanh>sample string 2</TenChiNhanh> <TenQuanHuyen>sample string 13</TenQuanHuyen> <TenTinhThanh>sample string 12</TenTinhThanh> </ChiNhanh>
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>