salary/batch_get
目录 |
1.接口说明
1.1接口描述
批量获取员工工资记录
1.2适用版本
支持U8V12.0 及更高版本
2.使用场景
移动考勤、考勤
3.接口调用说明
3.1请求说明
url | https://api.yonyouup.com/api/salary/batch_get |
格式 | JSON |
https请求方式 | GET |
编码类型 | UTF-8 |
3.2url参数说明
参数 | 是否必填 | 类型 | 描述 |
---|---|---|---|
from_account | 是 | string | 调用方id |
to_account | 是 | string | 提供方id |
app_key | 是 | string | 应用编码 |
token | 是 | string | 全局访问唯一识别码 |
ds_sequence | 否 | number | 数据源序号(默认取应用的第一个数据源) |
page_index | 否 | string | 页号 |
rows_per_page | 否 | string | 每页行数 |
code_begin | 否 | string | 起始编码 |
code_end | 否 | string | 结束编码 |
departmentno | 否 | string | 员工所在部门的编码,可以通过 api/department 获取 |
month | 否 | number | 月份 |
month_begin | 否 | number | 起始月份 |
month_end | 否 | number | 结束月份 |
name | 否 | string | 名称关键字 |
year | 否 | number | 年份 |
3.3请求示例
GET https://api.yonyouup.com/api/salary/batch_get?from_account=openapi_dev&to_account=openapi_ent&app_key=opa6fdd4bea98b95ad7&token=843d03f66e6544e19707ccec11030296&page_index=1&rows_per_page=20&ds_sequence=1
3.4返回参数说明
参数说明 | 类型 | 参数路径 | 描述 |
---|---|---|---|
errcode | string | 错误码,0 为正常。 | |
errmsg | string | 错误信息。 | |
page_index | string | 页号 | |
rows_per_page | string | 每页行数 | |
row_count | string | 总行数 | |
page_count | string | 页数 | |
personno | string | 人员编码 | |
personname | string | 人员姓名 | |
persongradeno | string | 人员类别名称 | |
departmentno | string | 部门编码 | |
salarygradeno | string | 工资类别号 | |
year | number | 工资年 | |
month | number | 工资月份 | |
salarygradename | string | 工资类别名称 | |
name | string | entry | 工资项目名称 |
content | number | entry | 工资项合计值 |
3.5正确返回示例
JSON示例:
application/json;charset=UTF-8 { "errmsg":"", "errcode":"0", "salary":[ { "salarygradename":"工资发放", "persongradeno":"正式员工", "departmentno":"01", "entry":[ { "content":27350, "name":"应发合计", "type":0 }, { "content":3027.5, "name":"扣款合计", "type":0 }, { "content":24322.5, "name":"实发合计", "type":0 }, { "content":2667.5, "name":"代扣税", "type":0 }, { "content":0, "name":"计件工资", "type":0 }, { "content":0, "name":"代付税", "type":0 }, { "content":10000, "name":"年终奖", "type":0 }, { "content":300, "name":"年终奖代扣税", "type":0 }, { "content":2367.5, "name":"工资代扣税", "type":0 }, { "content":2667.5, "name":"扣税合计", "type":0 }, { "content":0, "name":"年终奖代付税", "type":0 }, { "content":0, "name":"工资代付税", "type":0 }, { "content":14500, "name":"基本工资", "type":0 }, { "content":0, "name":"绩效工资", "type":0 }, { "content":50, "name":"全勤奖", "type":0 }, { "content":300, "name":"通讯补贴", "type":0 }, { "content":1500, "name":"交通补贴", "type":0 }, { "content":0, "name":"考勤扣款", "type":0 }, { "content":360, "name":"社保扣款", "type":0 }, { "content":0, "name":"补发工资", "type":0 }, { "content":0, "name":"补扣工资", "type":0 }, { "content":1000, "name":"职务工资", "type":0 }, { "content":0, "name":"绩效得分", "type":0 } ], "month":12, "salarygradeno":"001", "year":2014, "personname":"王铭", "personno":"00001" }, { "salarygradename":"工资发放", "persongradeno":"正式员工", "departmentno":"01", "entry":[ { "content":16650, "name":"应发合计", "type":0 }, { "content":1003, "name":"扣款合计", "type":0 }, { "content":15647, "name":"实发合计", "type":0 }, { "content":643, "name":"代扣税", "type":0 }, { "content":0, "name":"计件工资", "type":0 }, { "content":0, "name":"代付税", "type":0 }, { "content":8000, "name":"年终奖", "type":0 }, { "content":240, "name":"年终奖代扣税", "type":0 }, { "content":403, "name":"工资代扣税", "type":0 }, { "content":643, "name":"扣税合计", "type":0 }, { "content":0, "name":"年终奖代付税", "type":0 }, { "content":0, "name":"工资代付税", "type":0 }, { "content":6800, "name":"基本工资", "type":0 }, { "content":0, "name":"绩效工资", "type":0 }, { "content":0, "name":"全勤奖", "type":0 }, { "content":50, "name":"通讯补贴", "type":0 }, { "content":1000, "name":"交通补贴", "type":0 }, { "content":0, "name":"考勤扣款", "type":0 }, { "content":360, "name":"社保扣款", "type":0 }, { "content":0, "name":"补发工资", "type":0 }, { "content":0, "name":"补扣工资", "type":0 }, { "content":800, "name":"职务工资", "type":0 }, { "content":0, "name":"绩效得分", "type":0 } ], "month":12, "salarygradeno":"001", "year":2014, "personname":"冯建国", "personno":"00002" } ] }
3.6错误返回示例
application/json;charset=UTF-8 { "errcode" : "30021", "errmsg" : "此应用未上线" }