You need to enable JavaScript to run this app.
导航

资质相关图片上传接口

最近更新时间2023.08.17 22:02:36

首次发布时间2023.02.28 20:31:39

  • 请求方式:POST

  • 接口地址:https://cloud-vms.volcengineapi.com

1. 请求参数

Header

参数数据类型是否必填示例值描述
X-DateString20201103T104027Z鉴权字段。请参考文档中心-火山引擎

Authorization

String

HMAC-SHA256 Credential***

鉴权字段。请参考文档中心-火山引擎

ServiceNameStringvms服务名称。语音服务的服务名称为vms
RegionStringcn-north-1区域名称。

Content-Type

String

multipart/form-data

指定请求消息体的结构化格式。

Query

参数数据类型是否必填示例值描述
ActionStringUploadQualificationFile接口名称。该接口固定值为UploadQualificationFile。
VersionString2022-01-01接口版本。该接口版本为2022-01-01

Body

字段名英文名类型备注例子
文件类型fileTypeFileTypeLegalRepresentativeFrontIDPhoto
图片文件fileMultipartFile文件0

FileType枚举

字段名英文名

法人身份证

LegalRepresentativeFrontIDPhoto

入网信息:号码申请公函DocOfNumberApplyPhoto
入网信息:入网承诺书CommitmentLetterOfNetAccessPhoto
三证合一时证明文件为营业执照下载URLThreeInOneBusinessLicensePhoto
非三证合一:企业法人营业执照下载URLBusinessLicensePhoto
非三证合一:组织机构代码证下载URLCertificateOfOrganizationCodesPhoto
非三证合一:税务登记证 下载URLCertificateOfTaxationRegistrationPhoto

管理员身份证正面照片下载URL

IdCardFrontPhoto

管理员身份证反面照片下载URLIdCardBackPhoto
管理员手持身份证照片下载URLIdCardPhotoWithPeople
2. 返回参数
参数数据类型描述
ResponseMetadataResponseMetadata响应公共参数。包含的参数说明请参见 ResponseMetadata。
ResultResult响应业务参数。包含的参数说明请参见 Result。

ResponseMetadata

参数数据类型描述
RequestIdString请求 ID。
ActionString请求的接口名称。
VersionString请求的版本号。
ServiceString请求的服务名称。
RegionString请求的区域。
ErrorError错误信息。如果请求没有异常则不会返回错误信息。包含的参数说明请参见 Error。

Result

Tos文件名

Error

参数数据类型描述
CodeString错误码。
MessageString错误信息。
3. 示例

请求示例

curl --location --request POST '[地址]' \
--header 'ServiceName: vms' \
--header 'Region: cn-north-1' \
--header 'X-Date: 20201103T104027Z' \
--header 'Authorization: HMAC-SHA256 Credential=***' \
--form 'Action="UploadQualificationFile"' \
--form 'Version="2022-01-01"' \
--form 'FileType="LegalRepresentativeFrontIDPhoto"' \
--form 'File="xxxx"' \

返回示例

{
    "ResponseMetadata":{
    "RequestId":"20210114163805010225092059070005F4",
    "Action":"UploadQualificationFile",
    "Version":"2022-01-01",
    "Service":"vms",
    "Region":"cn-north-1"
    },
    "Result": "xxxx" //Tos文件名(fileCode)
}