文档
测试

添加/修改/删除备件供应商

POST
http://[域名]/purchase/opersupplierbaseinfo

接口描述

添加/修改/删除备件供应商

请求参数

参数名
类型
描述
必填
appid
string
系统分配给第三方的接入应用编码,示例:1234567890
必填
token
string
接入签名,示例:45879541235derderedew
必填
timestamp
string
时间戳,格式为:yyyymmddhhmmss,如:20200118122652
必填
opertoken
string
身份操作凭证
必填
opertype
string
操作类型 add:添加 edit:修改 delete:删除
必填
supplierbaseinfo
必填
supplierno
string
设备供应商编号,opertype为add时,可不填写,其余必须填写
可选
suppliername_full
string
设备供应商全称,opertype为add、edit时,必须填写,其余不填写
可选
suppliername_simp
string
设备供应商简称,opertype为add、edit时,必须填写,其余不填写
可选
remarks
string
备注,opertype为add、edit时,可填可不填,其余不填写
可选
contactuser
string
联系人,opertype为add、edit时,可填可不填,其余不填写
必填
contactphone
string
联系电话,opertype为add、edit时,可填可不填,其余不填写
必填
address
string
联系地址,opertype为add、edit时,可填可不填,其余不填写
必填
businesslicencecode
string
营业执照号码,opertype为add、edit时,可填可不填,其余不填写
必填
taxcode
string
税务识别号,opertype为add、edit时,可填可不填,其余不填写
必填
juridicalpersonname
string
法人姓名,opertype为add、edit时,可填可不填,其余不填写
必填
juridicalpersonidcard
string
法人身份证号码,opertype为add、edit时,可填可不填,其余不填写
必填
registaddress
string
营业注册地址,opertype为add、edit时,可填可不填,其余不填写
必填
bankname
string
开户银行,opertype为add、edit时,可填可不填,其余不填写
必填
bankaccountcode
string
银行账户,opertype为add、edit时,可填可不填,其余不填写
必填
bankaccountname
string
开户名称,opertype为add、edit时,可填可不填,其余不填写
必填

请求数据示例

{ "appid":"1234567890", "token":"45879541235derderedew", "timestamp":"20200118122613", "opertoken":"123456eerwdfe", "opertype":"edit", "warehoursebaseinfo":{ "warehourseno":"100", "warehoursecode":"CK001","warehoursename":"备件仓库", "remarks":"备注"} }

响应参数

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

响应成功示例

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

响应失败示例

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