企业(或集团,需传enterprise_code)给企业员工发放关爱积分(积分从企业的积分账户扣取)
https://openapi.guanaitong.tech/assets/jifen/enterprise/assign/single
POST
(1)公共参数
发送请求是必须传入公共参数,详见公共参数
(2)私有参数
| 参数名称 | 是否必须 | 参数类型 | 长度限制 | 描述 |
| corp_code | 否 | string | [1,20] | 员工工号 |
| userid | 否 | string | [1,100] | 员工第三方唯一标识,工号和唯一标识必填其一 |
| enterprise_code | 否 | string | [1,20] | 企业编号(集团同步,企业无需填写) |
| account_openid | 否 | string | [32] | 积分账户的openid,决定扣哪个积分账户的积分 |
| amount | 是 | decimal(10,2) | [0.01,99999999.99] | 发放积分金额 |
| reason | 是 | string | [1,254] | 发放原因 |
| external_code | 是 | string | [2,22] | 外部交易号,最小长度2位。 |
POST /assets/jifen/enterprise/assign/single HTTP/1.1 Host: openapi.guanaitong.tech Content-Type: application/x-www-form-urlencoded Cache-Control: no-cache access_token=6007bf4c6efeb798da35b843e4614cff&amount=100&corp_code=CJJ101&&reason=test external_code=1495094685222&sign=dc2cb643d101d8ae96e857ff4ca24de23bf4f27f& timestamp=1495094685
| 参数名称 | 描述 |
| code | 返回码。详见错误代码。 |
| msg | 如果错误,返回错误信息。 |
| data | 如果没有错误,返回业务数据 |
{
"code": 0,
"data": "1495094685222",
"msg": "OK"
}
{
"code": 1000210004,
"data": null,
"msg": "tokeninfo check failed!"
}