上传执照或客服二维码,不会因此发布介绍
POST/api/v1/merchant/profile/images
| 认证 | 请求头 Authorization: Bearer <访问令牌>,访问令牌用设备码换取,不要向用户要密码、短信验证码或 API Key |
|---|---|
| 权限 | 商家,需要 product:write 才能修改商品、图片或店铺介绍 |
请求体
multipart/form-data
上传后即可按地址读取,但不会发布介绍
filebinary必填执照或客服二维码
purposeenum<string>必填用途
可选值: licensecontact_qr
请求示例
file: <file>
purpose: license响应
201
application/json
成功时 code 为 200,资源在 data
idstring必填图片 ID
urlstring必填本站 /media/{id} 的绝对地址
content_typestring必填图片类型
byte_sizeinteger必填字节数
purposeenum<string>必填上传用途
可选值: licensecontact_qr
响应示例
{
"id": "id_example",
"url": "string",
"content_type": "string",
"byte_size": 1,
"purpose": "license"
}