# 接口说明
- 1.新接口
- 2.按账单周期查询账单编号
| 名称 | 描述 |
|---|---|
| HTTP方法 | POST |
| Content-Type | application/x-www-form-urlencoded |
| method | /openapi/func/bill/queryBillNo |
| 字段 | 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| access_token | token | string | Y | 登录 token |
| sign | 签名 | string | Y | oihfnlyeofdh98 |
| timestamp | 时间戳 | long | Y | 13位时间戳 1241243250000 |
| data | 请求数据 | jsonobject | Y | 请求数据 |
| data.start_month | 账单开始时间 | string | Y | 账单开始年月,如201910 |
| data.end_month | 账单结束时间 | string | Y | 账单结束年月,如201212 |
| data.page_index | 页码 | integer | Y | 页码 |
| data.page_size | 条数 | integer | Y | 条数 |
请求示例:
"access_token":"5747fbc10f0e60e0709d8d722",
"timestamp":124124325,
"sign":"oihfnlyeofdh98",
"data":{
"start_month":"201910",
"end_month":"201912",
"page_index":1,
"page_size":10
}
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
响应结果:
| 字段 | 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| page_info | 分页信息 | jsonobject | Y | 分页信息 |
| page_info.page_size | 每页条数 | integer | Y | 每页条数 |
| page_info.current_page | 当前页码 | integer | Y | 当前面码 |
| page_info.total_pages | 分页总数 | integer | Y | 分页总数 |
| page_info.total_size | 数据总数 | integer | Y | 数据总数 |
| list | 数据列表 | jsonarray | Y | |
| list.company_id | 企业id | string | Y | 企业id |
| list.start_month | 账单开始时间 | string | Y | 账单开始时间 |
| list.end_month | 账单结束时间 | string | Y | 账单结束时间 |
| list.bill_no | 账单编号 | string | Y | 账单编号 |
| list.bill_state | 账单状态 | Integer | Y | 1:已出账单,2:已核对,3:结算中,4:已结算,5:未出账单 |
{
"code": 0,
"msg": "success",
"data": {
"page_info": {
"page": 1,
"page_size": 10,
"current_page": 1,
"total_pages": 1,
"total_size": 7
},
"list": [
{
"company_id": "5d1b1d2f23445f4dca76304b",
"start_month": "201910",
"end_month": "202212",
"bill_no": "76161436900000000",
"bill_state": 5
},
{
"company_id": "5d1b1d2f23445f4dca76304b",
"start_month": "201910",
"end_month": "202212",
"bill_no": "76161436920201201",
"bill_state": 1
},
{
"company_id": "5d1b1d2f23445f4dca76304b",
"start_month": "201910",
"end_month": "202212",
"bill_no": "76161436920201215",
"bill_state": 1
},
{
"company_id": "5d1b1d2f23445f4dca76304b",
"start_month": "201910",
"end_month": "202212",
"bill_no": "76161436920210115",
"bill_state": 1
},
{
"company_id": "5d1b1d2f23445f4dca76304b",
"start_month": "201910",
"end_month": "202212",
"bill_no": "76161436920210215",
"bill_state": 1
},
{
"company_id": "5d1b1d2f23445f4dca76304b",
"start_month": "201910",
"end_month": "202212",
"bill_no": "76161436920210315",
"bill_state": 1
}
]
},
"request_id": "P6XDyNZAoGYSt749"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58