添加或者修改员工与成本中心的关系
https://openapi.guanaitong.tech/billing/cost/addOrUpdateCostCenterRel
POST
(1)公共参数
发送请求是必须传入公共参数,详见公共参数
(2)私有参数
| 参数名称 | 是否必须 | 参数类型 | 长度限制 | 描述 |
| enterprise_code | 否 | string | [1,20] | 企业编号(集团同步,企业不填) |
| corp_code | 是 | string | 1,20 | 员工工号,只支持大写字母数字,小写字母会自动识别为大写 |
| cost_center_id | 是 | integer | [1,10] | 成本中心id,取值范围1~2147483647之间的整数 |
POST /billing/cost/addOrUpdateCostCenterRel HTTP/1.1
Host: openapi.guanaitong.tech
Content-Type: application/x-www-form-urlencoded
cache-control: no-cache
access_token=76e3d122b3aed43446ef767977817f38&sign=4bd2ba5ed577b7f7e8577394585bf603a0420a46
&corp_code=HB001&cost_center_id=1234×tamp=1578968369
| 参数名称 | 描述 |
| code | 返回码。详见错误返回码。 |
| msg | 如果错误,返回错误信息。 |
| data | 如果没有错误,返回业务数据,此处返回成本中心id |
{
"code":0,
"msg":"OK",
"data":1234
}
{
"code": 1000210001,
"msg": "timestamp check failed!",
"data": null
}