接口文档 / 商品接口

修改供应商

PUT/api/v2/open-agency/products/suppliers/{id}在线调试

请求参数

名称说明类型
Path 参数
id必填

id

string
Body 参数
name必填

供应商名称

string
status必填

供应商状态 0:禁用 1:启用

示例:1

范围:0 ~ 9223372036854776000

integer
licenseId可选

供应商许可证号

string
contact可选

供应商联系人

string
mobile可选

供应商联系方式

string
mark可选

供应商备注

string
operatorId必填

操作人ID

示例:00000000000000000000000000000000

string

请求示例

json
{
  "name": "string",
  "status": 1,
  "licenseId": "string",
  "contact": "string",
  "mobile": "string",
  "mark": "string",
  "operatorId": "00000000000000000000000000000000"
}

响应参数

名称说明类型
Body 参数
data可选

数据

object
id可选

供应商ID

string
name可选

供应商名称

string
status可选

供应商状态 0:禁用 1:启用

integer
licenseId可选

供应商许可证号

string
contact可选

供应商联系人

string
mobile可选

供应商联系方式

string
mark可选

供应商备注

string

响应示例

json
{
  "data": {
    "id": "string",
    "name": "string",
    "status": 0,
    "licenseId": "string",
    "contact": "string",
    "mobile": "string",
    "mark": "string"
  },
  "error": null
}

业务失败包装示意

json
{
  "data": null,
  "error": {
    "code": 11003,
    "message": "不支持的授权类型{grantType}"
  }
}

查看 HTTP 状态与业务码排查

ABC 开放平台 · 诊所管家

如有疑问,请扫码加入企业微信群咨询。

企业微信群二维码
没有匹配结果

诊所管家