POST api/RevenueReport/taibaocaohanghoa?api={api}&idpartner={idpartner}&idbrandpartner={idbrandpartner}&fromdate={fromdate}&todate={todate}
Tải báo cáo doanh thu hàng hoa
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
api |
Mã API do hệ thống cung cấp |
string |
Required |
idpartner |
id đối tác |
string |
Default value is |
idbrandpartner |
id chi nhánh |
string |
Default value is |
fromdate |
Từ ngày yyyyMMdd |
string |
Default value is |
todate |
Đến ngày yyyyMMdd |
string |
Default value is |
Body Parameters
Collection of BaocaoDoanhThuHangHoaName | Description | Type | Additional information |
---|---|---|---|
idpartner |
id đối tác |
string |
None. |
idbrandpartner |
id chi nhánh |
string |
None. |
yearmonthday |
Ngày thu tiền |
integer |
None. |
ngay_thu |
Ngày thu tiền |
string |
None. |
tong_tien |
Tổng tiền |
decimal number |
None. |
tong_gia_von |
Tống giá vốn |
decimal number |
None. |
tong_thue |
Tống thuế |
decimal number |
None. |
tong_giam_gia |
Tống giảm giá |
decimal number |
None. |
tong_thu_benh_nhan |
Tống thu |
decimal number |
None. |
tong_loi_nhuan |
Tống lợi nhuận |
decimal number |
None. |
Request Formats
application/json, text/json
Sample:
[ { "idpartner": "sample string 1", "idbrandpartner": "sample string 2", "yearmonthday": 3, "ngay_thu": "sample string 4", "tong_tien": 1.1, "tong_gia_von": 1.1, "tong_thue": 1.1, "tong_giam_gia": 1.1, "tong_thu_benh_nhan": 1.1, "tong_loi_nhuan": 1.1 }, { "idpartner": "sample string 1", "idbrandpartner": "sample string 2", "yearmonthday": 3, "ngay_thu": "sample string 4", "tong_tien": 1.1, "tong_gia_von": 1.1, "tong_thue": 1.1, "tong_giam_gia": 1.1, "tong_thu_benh_nhan": 1.1, "tong_loi_nhuan": 1.1 } ]
application/xml, text/xml
Sample:
<ArrayOfBaocaoDoanhThuHangHoa xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APISMART.Models.Baocao"> <BaocaoDoanhThuHangHoa> <idbrandpartner>sample string 2</idbrandpartner> <idpartner>sample string 1</idpartner> <ngay_thu>sample string 4</ngay_thu> <tong_gia_von>1.1</tong_gia_von> <tong_giam_gia>1.1</tong_giam_gia> <tong_loi_nhuan>1.1</tong_loi_nhuan> <tong_thu_benh_nhan>1.1</tong_thu_benh_nhan> <tong_thue>1.1</tong_thue> <tong_tien>1.1</tong_tien> <yearmonthday>3</yearmonthday> </BaocaoDoanhThuHangHoa> <BaocaoDoanhThuHangHoa> <idbrandpartner>sample string 2</idbrandpartner> <idpartner>sample string 1</idpartner> <ngay_thu>sample string 4</ngay_thu> <tong_gia_von>1.1</tong_gia_von> <tong_giam_gia>1.1</tong_giam_gia> <tong_loi_nhuan>1.1</tong_loi_nhuan> <tong_thu_benh_nhan>1.1</tong_thu_benh_nhan> <tong_thue>1.1</tong_thue> <tong_tien>1.1</tong_tien> <yearmonthday>3</yearmonthday> </BaocaoDoanhThuHangHoa> </ArrayOfBaocaoDoanhThuHangHoa>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
dataPrintName | Description | Type | Additional information |
---|---|---|---|
time |
Thời gian server trả về |
integer |
None. |
status |
Trạng thái |
string |
None. |
message |
Thông báo |
string |
None. |
strprint |
Mẫu phiếu in |
string |
None. |
strexcel |
file excel |
string |
None. |
strword |
file word |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "time": 1, "status": "sample string 2", "message": "sample string 3", "strprint": "sample string 4", "strexcel": "sample string 5", "strword": "sample string 6" }
text/javascript, application/javascript, application/json-p
Sample:
/**/ typeof === 'function' && ({"time":1,"status":"sample string 2","message":"sample string 3","strprint":"sample string 4","strexcel":"sample string 5","strword":"sample string 6"});
application/xml, text/xml
Sample:
<dataPrint xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APISMART.Models"> <message>sample string 3</message> <status>sample string 2</status> <strexcel>sample string 5</strexcel> <strprint>sample string 4</strprint> <strword>sample string 6</strword> <time>1</time> </dataPrint>