停用内推账户
停用内推账户,停用后,将不再发送「内推账户余额变更事件」,也无法通过「提取内推账号余额」提取。
请求
| 项目 | 值 |
|---|---|
| HTTP URL | https://open.feishu.cn/open-apis/hire/v1/referral_account/:referral_account_id/deactivate |
| HTTP Method | POST |
| 接口频率限制 | 100 次/分钟 |
| 支持的应用类型 | custom,isv |
| 权限要求 调用该 API 所需的权限。开启其中任意一项权限即可调用 | hire:referral_account 更新内推账号信息 |
请求头
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| Authorization | string | 是 | tenant_access_token 值格式:"Bearer access_token" 示例值:"Bearer t-7f1bcd13fc57d46bac21793a18e560" 了解更多:如何选择与获取 access token |
路径参数
| 名称 | 类型 | 描述 |
|---|---|---|
referral_account_id | string | 账户ID,注册账户后获取:注册内推账户 示例值:"6942778198054125570" |
响应
响应体
| 名称 | 类型 | 描述 |
|---|---|---|
code | int | 错误码,非 0 表示失败 |
msg | string | 错误描述 |
data | \- | - |
└ account | account | 账户信息 |
└ account_id | string | 账户ID |
└ assets | assets | 账户资产 |
└ confirmed_bonus | bonus_amount | 已确认的奖励 |
└ point_bonus | int | 积分奖励 |
└ cash_bonus | cash\[\] | 现金奖励 |
└ currency_type | string | 币种,详情可查看:枚举常量介绍中「币种(currency)枚举定义」 |
└ amount | number(float) | 数额,保留到小数点后两位 |
└ status | int | 账户状态 可选值有: - 1: 可用 - 2: 停用 |
响应体示例
json
{
"code": 0,
"msg": "SUCCESS",
"data": {
"account": {
"account_id": "6942778198054125570",
"assets": {
"confirmed_bonus": {
"point_bonus": 100,
"cash_bonus": [
{
"currency_type": "CNY",
"amount": 100
}
]
}
},
"status": 1
}
}
}错误码
| HTTP状态码 | 错误码 | 描述 | 排查建议 |
|---|---|---|---|
| 500 | 1002001 | 系统错误 | 请根据实际报错信息定位或咨询技术支持 |
| 400 | 1002002 | 参数错误 | 请根据实际报错信息定位或咨询技术支持 |
| 400 | 1002553 | 账户不存在 | 请检查内推账户是否存在,或注册内推账户:注册内推账户 |
