POST api/ThuChi/PhatHanhHoaDon?_loaiPhatHanh={_loaiPhatHanh}&_loaithu={_loaithu}
Phát hành hóa đơn điện tử
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| _loaiPhatHanh | integer |
Default value is 0 |
|
| _loaithu | integer |
Default value is 0 |
Body Parameters
PhieuThuChiModel| Name | Description | Type | Additional information |
|---|---|---|---|
| IdPhieuTC | string |
None. |
|
| MaPhieu | string |
None. |
|
| NgayLap | string |
None. |
|
| NguoiLap | string |
None. |
|
| HoTenNguoiLap | string |
None. |
|
| NguoiNopTien | string |
None. |
|
| TongTien | decimal number |
None. |
|
| LoaiPhieuTC | integer |
None. |
|
| TongTra | decimal number |
None. |
|
| Nam | integer |
None. |
|
| Thang | integer |
None. |
|
| KyHieu | string |
None. |
|
| SoSeries | string |
None. |
|
| IdSap | string |
None. |
|
| MaSap | string |
None. |
|
| isHDDT | integer |
None. |
|
| isTamNgung | boolean |
None. |
|
| ChiTiet | Collection of PhieuThuChiCT |
None. |
|
| SoLanIn | decimal number |
None. |
|
| soThang | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"IdPhieuTC": "sample string 1",
"MaPhieu": "sample string 2",
"NgayLap": "sample string 3",
"NguoiLap": "sample string 4",
"HoTenNguoiLap": "sample string 5",
"NguoiNopTien": "sample string 6",
"TongTien": 7.1,
"LoaiPhieuTC": 8,
"TongTra": 9.1,
"Nam": 10,
"Thang": 11,
"KyHieu": "sample string 12",
"SoSeries": "sample string 13",
"IdSap": "sample string 14",
"MaSap": "sample string 15",
"isHDDT": 16,
"isTamNgung": true,
"ChiTiet": [
{
"IdPhieuTC": "sample string 1",
"IdKhoanThuChi": "sample string 2",
"SoTien": 3.1,
"DaTra": 4.1,
"ChiSoCu": 5.1,
"ChiSoMoi": 6.1,
"NgayNop": "sample string 7"
},
{
"IdPhieuTC": "sample string 1",
"IdKhoanThuChi": "sample string 2",
"SoTien": 3.1,
"DaTra": 4.1,
"ChiSoCu": 5.1,
"ChiSoMoi": 6.1,
"NgayNop": "sample string 7"
}
],
"SoLanIn": 18.1,
"soThang": 19
}
application/xml, text/xml
Sample:
<PhieuThuChiModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API_KD.Models">
<ChiTiet>
<PhieuThuChiCT>
<ChiSoCu>5.1</ChiSoCu>
<ChiSoMoi>6.1</ChiSoMoi>
<DaTra>4.1</DaTra>
<IdKhoanThuChi>sample string 2</IdKhoanThuChi>
<IdPhieuTC>sample string 1</IdPhieuTC>
<NgayNop>sample string 7</NgayNop>
<SoTien>3.1</SoTien>
</PhieuThuChiCT>
<PhieuThuChiCT>
<ChiSoCu>5.1</ChiSoCu>
<ChiSoMoi>6.1</ChiSoMoi>
<DaTra>4.1</DaTra>
<IdKhoanThuChi>sample string 2</IdKhoanThuChi>
<IdPhieuTC>sample string 1</IdPhieuTC>
<NgayNop>sample string 7</NgayNop>
<SoTien>3.1</SoTien>
</PhieuThuChiCT>
</ChiTiet>
<HoTenNguoiLap>sample string 5</HoTenNguoiLap>
<IdPhieuTC>sample string 1</IdPhieuTC>
<IdSap>sample string 14</IdSap>
<KyHieu>sample string 12</KyHieu>
<LoaiPhieuTC>8</LoaiPhieuTC>
<MaPhieu>sample string 2</MaPhieu>
<MaSap>sample string 15</MaSap>
<Nam>10</Nam>
<NgayLap>sample string 3</NgayLap>
<NguoiLap>sample string 4</NguoiLap>
<NguoiNopTien>sample string 6</NguoiNopTien>
<SoLanIn>18.1</SoLanIn>
<SoSeries>sample string 13</SoSeries>
<Thang>11</Thang>
<TongTien>7.1</TongTien>
<TongTra>9.1</TongTra>
<isHDDT>16</isHDDT>
<isTamNgung>true</isTamNgung>
<soThang>19</soThang>
</PhieuThuChiModel>
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>