薪酬¶
电子工资条发送记录列表¶
使用场景: 企业可调用此接口,获取2号薪酬中发放的工资条的信息。
请求方式: GET(HTTPS)
请求地址: https://openapi.2haohr.com/api/payslip/payslip_info/?year=2021&month=3&access_token=ACCESS_TOKEN&p=1&limit=10&emp_id=&is_confirm=
参数说明:
参数 | 类型 | 是否必须 | 说明 |
---|---|---|---|
access_token | String | 是 | 调用接口凭证 |
year | Int | 是 | 年份 |
month | Int | 是 | 月份 |
p | Int | 是 | 页码 |
limit | Int | 是 | 每页条数,值建议最大不超300 |
emp_id | String | 否 | 员工id |
is_confirm | Int | 是 | 确认状态,0:未确认,1:已确认 |
返回结果:
{
"data": {
"p": 1,
"total": 2,
"limit": 10,
"objects": [
{
"emp_id": "9f025d9e-****-****-****-acaa5b9c94eb",
"is_view": false,
"emp_name": "离职的人",
"send_dt": "2021-06-15 13:47:26",
"is_confirm": false
},
{
"emp_id": "de2898b7-****-****-****-0dba07e9d351",
"is_view": false,
"emp_name": "夏香萱",
"send_dt": "2021-06-15 13:47:26",
"is_confirm": false
}
]
},
"errcode": 0,
"errmsg": ""
}
返回结果说明:
参数 | 类型 | 说明 |
---|---|---|
total | Int | 总条数 |
p | Int | 当前页码 |
limit | Int | 每页条数 |
emp_name | String | 员工姓名 |
emp_id | String | 员工ID |
is_view | Bool | 是否查看,true:是 false:否 |
send_dt | String | 通知发送时间 |
is_confirm | Bool | 是否确认,true: 是 false:否 |