发放资产¶
功能说明¶
- 根据员工标识发放具体产品线积分
接口地址¶
- 测试环境: https://openapi.guanaitong.tech/tenant/enterprise/asset/assign
- 生产环境: https://openapi.guanaitong.com/tenant/enterprise/asset/assign
参数说明¶
-
公有参数
发送请求是必须传入公共参数,详见公共参数
-
私有参数
| 参数名称 | 是否必须 | 参数类型 | 长度限制 | 描述 |
|---|---|---|---|---|
| user_id | 是 | string | [1,20] | 员工唯一标识 |
| enterprise_id | 是 | int | 企业编码 | |
| account_id | 否 | string | [24] | 产品积分账户 |
| product_id | 否 | int | 产品线,与account_id字段二选一,一般情况建议使用product_id |
|
| amount | 是 | decimal | (10,2) | 积分金额 |
| external_code | 是 | decimal | [10,50] | 外部发放号,必须以appid开头,支持数字+字母,不支持特殊字符 |
| remark | 否 | string | [0,100] | 发放原因 |
请求示例¶
POST /tenant/enterprise/asset/assign HTTP/1.1
Host: openapi.guanaitong.tech
Content-Type: application/x-www-form-urlencoded
Cache-Control: no-cache
access_token=1ba50b8f418a3ceeba989d7b789de149&user_id=S001&enterprise_id=123&product_id=10&account_id=12345qwert12345qwert0123&amount=12.34&external_code=2021080109872120&remark=生日快乐
timestamp=1492671463&sign=ada2316deb82816d61a7a40dfba3553a34a2e82e
返回参数说明¶
| 参数说明 | 描述 |
|---|---|
| code | 返回码,0代表正确返回 |
| msg | 如果错误,返回错误信息。 |
| data | 返回内部16位发放编号 |