该接口用于查询实体类目认证资质信息
创建沙盒环境小程序时请选择“正式小程序能力映射”,详情请关注行业角色系统能力文档。
前提条件
| 基本 | |
|---|---|
| HTTP URL | 正式环境:https://developer.toutiao.com/auth/entity/get_class_auth 沙盒环境:https://open-sandbox.douyin.com/auth/entity/get_class_auth |
| HTTP Method | POST |
| 权限要求 | AccessToken鉴权 |
partner 说明
| 参数名 | 参数类型 | 是否必须 | 备注 |
|---|---|---|---|
| company_type | int | 是 | 资质材料类型,目前支持的类型见上传资料接口 |
| company_addr | string | 是 | 资料过期时间,示例:2029-09-10 |
| cooperation_case | Array | 是 | 资质材料链接,字符串数组 |
institution 说明
机构类目认证信息
| 参数名 | 参数类型 | 是否必须 | 备注 |
|---|---|---|---|
| record_name | string | 是 | 机构备案名称,需要与营业执照名称一致或有名称关键词,字符长度限制4<=len<= 1000(汉字占 2 字符) |
| scene_type | string | 是 | 机构场景类型(仅可填写"线上机构"或"线下机构") |
| subject_type | string | 是 | 资质材料链接,字符串数组 |
| logo_uri | string | 否 | 机构Logo图片uri,需要调用上传资源接口后获得 |
| trademark_uri | string | 否 | 商标注册证图片uri,若机构名称与机构logo一致性差,则需提供,需要调用上传后获得 |
| desc | string | 是 | 机构介绍, 字符长度限制12<=len<= 200(汉字占 2 字符) |
| employee | 是 | 机构合作员工信息(泛知识行业是和机构合作的老师信息) |
employee 说明
机构合作老师信息
| 参数名 | 参数类型 | 是否必须 | 备注 |
|---|---|---|---|
| employee_material | 是 | 机构员工个人身份信息 | |
| cooperation_agreement | 是 | 机构和员工合作协议 |
employee_material 说明
| 参数名 | 参数类型 | 是否必须 | 备注 |
|---|---|---|---|
| name | string | 是 | 个人姓名,需要和身份证一致,字符长度限制 2<= len(name) <=30(汉字占2字符) |
| id_number | string | 是 | 身份证号码 |
| expire_time | string | 是 | 身份证有效期 示例:长期有效;2034-01-09 |
| front_path | string | 是 | 身份证正面链接,人像面 |
| back_path | string | 是 | 身份反面链接,国徽面 |
online_qualification、audit_qualification 说明
| 参数名 | 参数类型 | 是否必须 | 备注 |
|---|---|---|---|
| audit_taskid | int | 是 | 资质审核任务ID |
| audit_status | string | 是 | 资质审核状态 1:审核中 2:审核成功 3:审核失败 |
| qualifications | Array | 是 | 资质材料 |
| audit_reason | string | 是 | 审核失败时原因 |
| expire_time | string | 是 | 资质材料中最大的过期时间,示例:2022-10-10 |
certificate_materials、qualifications、cooperation_agreement 、cooperation_case 说明
| 参数名 | 参数类型 | 是否必须 | 备注 |
|---|---|---|---|
| material_type | int | 是 | 资质材料类型,目前支持的类型见上传资料接口 |
| material_expiretime | string | 是 | 资料过期时间,示例:2029-09-10 |
| material_paths | Array | 是 | 资质材料链接,字符串数组 |
curl --location --request POST 'https://developer.toutiao.com/auth/entity/get_class_auth' \
--header 'Aweme-Check-Type;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '// 服务商代老师查询实体类目认证资质
{
"appid": "ttxxxxxxxx",
"access_token": "xxxxxxxx",
"partner_entity_id": "E_7178703725253394476",
"merchant_entity_id": "I_7179078906694139948",
"industry_code": 10000,
"industry_class": {
"first_class": 40000,
"second_class": 40600,
"third_class": 0
},
"industry_role": 1
}
// 机构查询实体类目认证资质
{
"appid": "ttxxxxxxxx",
"access_token": "xxxxxxxx",
"partner_entity_id": "",
"merchant_entity_id": "E_787907892525941398",
"industry_code": 10000,
"industry_class": {
"first_class": 70000,
"second_class": 70500,
"third_class": 0
},
"industry_role": 2
}'{
"class_auths": [
{
"audit_qualification": {},
"industry_class": {
"first_class": 0,
"second_class": 0,
"third_class": 0
},
"industry_code": 0,
"industry_role": 0,
"institution": {},
"online_qualification": {
"audit_reason": "string",
"audit_status": 0,
"audit_taskid": "string",
"expire_time": "string",
"qualifications": [
{
"material_expiretime": "string",
"material_paths": [
"string"
],
"material_type": 0
}
]
},
"partner": {}
}
],
"err": {
"err_code": 0,
"err_msg": "string"
}
}