文档
测试

添加/修改/删除商品

POST
http://[域名]/equ/opermanubaseinfo

接口描述

添加/修改/删除设备厂商

请求参数

参数名
类型
描述
必填
appid
string
系统分配给第三方的接入应用编码,示例:1234567890
必填
token
string
接入签名,示例:45879541235derderedew
必填
timestamp
string
时间戳,格式为:yyyymmddhhmmss,如:20200118122652
必填
opertoken
string
身份操作凭证
必填
opertype
string
操作类型 add:添加 edit:修改 delete:删除
必填
merchbaseinfo
必填
merchid
string
商品ID,opertype为add时,不填写,为edit、delete时,必须填写
必填
merchcode
string
商品编码,opertype为add、edit,必须填写,其它不填写
必填
merchname_simp
string
商品简称,opertype为add、edit,必须填写,其它不填写
必填
merchname_full
string
商品全称,opertype为add、edit,必须填写,其它不填写
必填
merchbrandid
string
商品品牌编码,opertype为add、edit,可填可不填,其它不填写
可选
merchtypeid
string
商品类型编码,opertype为add、edit,可填可不填,其它不填写
可选
packagetypeid
string
包装形式编码,opertype为add、edit,可填可不填,其它不填写
可选
merchunitid
string
商品单位编码,opertype为add、edit,可填可不填,其它不填写
可选
specifications
string
规格型号,opertype为add、edit,可填可不填,其它不填写
可选
comment
string
说明,opertype为add、edit,可填可不填,其它不填写
可选
purchaseprice
string
进货价格,opertype为add、edit,可填可不填,其它不填写
可选
sellprice
string
销售价格,opertype为add、edit,可填可不填,其它不填写
可选
supplierid
string
供应商ID,opertype为add、edit,可填可不填,其它不填写
可选

请求数据示例

{ "appid":"1234567890", "token":"45879541235derderedew", "timestamp":"20200118122613", "opertoken":"123456eerwdfe", "opertype":"edit", "manubaseinfo":{ "manufacturerid":"100","manufacturername_simp":"金盛", "manufacturername_full":"湖南金盛制造有限公司"} }

响应参数

参数名
类型
描述
必填
errcode
string
错误代码,示例:0
必填
errmsg
string
错误信息,示例:成功
必填

响应成功示例

{ "errcode":"0", "errmsg":"成功" }

响应失败示例

{ "errcode":"1", "errmsg":"参数无效" }