接口文档· 更新于 2026-11-26
营业执照识别
POST
/openapi/qxb/external/robot/business/license/discern.do启信宝外部服务转发接口;上游原始路径:/robot/business/license/discern.do;来源 Controller:RobotController
请求地址
生产环境
https://open.gch168.com/openapi/qxb/external/robot/business/license/discern.do- 请求方式
- POST
- 内容类型
- multipart/form-data
- 传输安全
- TLS 1.2 及以上
支持的鉴权方式
查看接入认证说明 →以下任一鉴权方式通过即可调用,签名细节与凭证获取请查看接入说明。
Header 签名(普通开放接口)API_KEY
通过 ApiKey、客户号或企业号识别租户,并对时间戳、随机串进行 MD5 签名校验,适用于绝大多数普通开放接口。
Sign = MD5(secretKey + timestamp + nonceStr),签名比较忽略大小写
请求头
公共请求头 →| 请求头 | 必填 | 类型 | 示例值 | 说明 |
|---|---|---|---|---|
| appKey | 必填 | string | 2cf51b5009db4d29b00b038c8cc3a6d6 | 调用方启信宝转发应用密钥 |
| timestamp | 必填 | string | 1716345600 | 请求时间戳,支持秒级或毫秒级 |
| sign | 必填 | string | md5-sign |
请求参数
| 参数名 | 位置 | 类型 | 必填 | 示例值 | 说明 |
|---|---|---|---|---|---|
appKey | QUERY | string | 必填 | upstream-app-key | ncloud-external controller parameter: appKey |
timestamp | QUERY | string | 必填 | 2026-05-27 12:00:00 | ncloud-external controller parameter: timestamp |
orgId | QUERY | integer | 选填 | 1001 | ncloud-external controller parameter: orgId |
orgName | QUERY | string | 选填 | orgNameValue | ncloud-external controller parameter: orgName |
image | BODY | file | 必填 | image.png | ncloud-external controller parameter: image |
image | BODY | file | 必填 | image.png | ncloud-external controller parameter: image |
响应参数
业务成功时返回 code = 200,其余状态码见下方接口状态码与全局状态码。
| 字段名 | 类型 | 示例值 | 说明 |
|---|---|---|---|
errorCode | integer | 200 | ncloud-external 业务响应码 |
errorMessage | string | 获取成功 | ncloud-external 响应消息 |
data | object | {} | 识别结果包装对象 |
success | string | true | 识别是否成功 |
data | object | {} | 营业执照识别字段 |
bizLicenseIsCopy | string | 否 | 是否为副本 |
bizLicenseCreditCode | string | 913300001429120970 | 统一社会信用代码 |
bizLicenseRegistrationCode | string | 330000000000001 | 注册号 |
bizLicenseSerialNumber | string | NO001 | 证照编号 |
bizLicenseCompanyName | string | 浙江新中大科技股份有限公司 | 企业名称 |
bizLicenseCompanyType | string | 股份有限公司 | 企业类型 |
bizLicenseAddress | string | 浙江省杭州市 | 经营场所 |
bizLicenseComposingForm | string | 个人经营 | 组成形式 |
bizLicenseOwnerName | string | 张三 | 经营者 |
bizLicenseRegCapital | string | 1000万人民币 | 注册资本 |
bizLicensePaidInCapital | string | 1000万人民币 | 实收资本 |
bizLicenseStartTime | string | 1993-01-01 | 注册日期 |
bizLicenseOperatingPeriod | string | 1993-01-01至长期 | 营业期限 |
bizLicenseScope | string | 软件开发 | 经营范围 |
bizLicenseRegistrationDate | string | 1993-01-01 | 登记日期 |
状态码
全局状态码 →| 状态码 | 说明 |
|---|---|
| 200 | 请求成功 |
| 5001 | 接口服务未开通、请求过期或用量校验失败 |
| 5002 | 启信宝转发鉴权参数或签名校验失败 |
请求与响应示例
请求示例
请求示例
multipart/form-data; image=image.png响应示例
响应示例
{
"errorCode": 200,
"errorMessage": "识别成功",
"data": {
"success": "true",
"data": {
"bizLicenseIsCopy": "否",
"bizLicenseCreditCode": "913300001429120970",
"bizLicenseRegistrationCode": "330000000000001",
"bizLicenseSerialNumber": "NO001",
"bizLicenseCompanyName": "浙江新中大科技股份有限公司",
"bizLicenseCompanyType": "股份有限公司",
"bizLicenseAddress": "浙江省杭州市",
"bizLicenseComposingForm": "个人经营",
"bizLicenseOwnerName": "张三",
"bizLicenseRegCapital": "1000万人民币",
"bizLicensePaidInCapital": "1000万人民币",
"bizLicenseStartTime": "1993-01-01",
"bizLicenseOperatingPeriod": "1993-01-01至长期",
"bizLicenseScope": "软件开发",
"bizLicenseRegistrationDate": "1993-01-01"
}
}
}