请求方式:
POST
请求地址:
https://api.eshouhou.cn/open/v2/WorkOrder/CreateWorkOrder?access_token=eXNoNTRkZDRmOGFyaW5meCY2YTgyNTFiYS1jZTY0LTQ2YjctYTUwNS1hNGU1NjAwMzI3MDYmMTIw
请求参数:
参数 | 类型 | 必填 | 名称 | 备注 |
ServiceSpaceId | string | 是 | 服务空间id | |
ServiceNetworkId | string | 是 | 服务网点id | |
ServiceNetworkType | int | 是 | 网点类型 | 网点类型(1总部,2网点);默认1 |
CustomerID | string | 是 | 客户id | |
ServiceStaffID | string | 是 | 账号id | |
ServiceCategoryID | string | 是 | 工单类型id | |
CustomFields | Array | 是 | 字段集合 | 例如: [ { |
返回参数:
参数 | 类型 | 必填 | 名称 |
ResultCode | String | 是 | 返回编码 |
ErrorMsg | String | 否 | 返回信息 |
Post请求示例:
{
"ServiceCategoryName":"cccc",
"ServiceSpaceID":"6a8251ba-ce64-46b7-a505-a4e560032706",
"CustomerID":"dc540ce7-5bc5-4275-b8fa-2004eb5839e3",
"ServiceNetworkType":"1",
"ServiceStaffID":"6f80db83-a791-4d96-a5cc-0c89ed51cdb1",
"ServiceNetworkID":"bd7fc093-0ccf-4335-9daf-10931b4e7c7d",
"ServiceCategoryID":"3107",
"CustomFields":[
{
"key":"CustomerID",
"value":"dc540ce7-5bc5-4275-b8fa-2004eb5839e3"
},
{
"key":"SerialNumber",
"value":"11111"
},
{
"Key":"ContactID",
"Value":"0f0197e3-eaef-4f8e-9e23-558b58f2f76c"
},
{
"Key":"Longitude",
"Value":0
},
{
"Key":"Latitude",
"Value":0
}
]
}
返回成功示例:
{ "ResultCode": 0, "ErrorMsg": "" } |