劳务-注册承包商

更新时间:2022-11-03 15:29:04

接口说明

劳务-注册承包商 唯一条件third_code+code

使用接口前请先阅读下文,超链接文档 劳务接入指引文档 sign生成规则

基本信息

请求方式: POST

请求路径:

https://prod.open-api.mysre.cn/aiot/open/labour/contractor

请求参数

参数名 参数位置 参数类型 必填 默认值 示例 描述
tenant_code query string
third_code body string aiot 第三方code
code body string 承包商统一社会信用代码
contractor_name body string 承包商名称
contractor_type_id body string 承包商类型id
contractor_linkman body string 承包商联系人
contractor_linkman_mobile body string 承包商联系电话
contractor_remark body string 承包商备注
third_contractor_id body string 第三方承包商唯一id
timestamp body number 10位时间戳
sign body string 签名

请求示例

/aiot/open/labour/contractor?tenant_code=zjfunctest

返回成功示例

{
  "errcode":0,
  "errmsg":"",
  "data":{
    "contractor_id":"3a071ff2-c79f-0a91-8b08-82b86ab7d164",
    "update":false
  }
}

返回参数说明(成功)

参数名 参数类型 描述
errcode number 状态
errmsg string 错误信息
data object
data.contractor_id string 承包商明源ID
data.update bool 当前操作行为false为新增true修改

失败返回示例

{
  "errcode": -1,
  "errmsg": "xxx 是必须的"
}

返回参数说明(失败)

参数名 参数类型 描述
errcode number 状态
errmsg string 错误信息

results matching ""

    No results matching ""