创建开放平台检测单

背景介绍

进入检测流程的第一步,需要首先创建开放平台的检测单

请求地址

环境

HTTPS请求地址

国内沙盒环境

https://cnopenapi.autox3.com/openapi/api-v1/rest

国内生产环境

https://cnopengateway.autox3.com/openapi/api-v1/rest

其他国家环境

请求参数

名称

子项

是否必填

长度

类型

说明

实例值

method

64

String

方法名

autox3.order.detection.create

content

--

String

请求接口内容字符串JSON

licensePlate

64

String

车牌号

京AC8901

externalInspectionOrderId

64

String

第三方检测单Id

N202107261009123

sn

64

String

开放平台中的检测项目id

128803090101010305

vehicleInfo

Object

车辆信息和技师信息封装对象

车辆信息和技师信息封装对象,请参考如下:

名称

是否必填

长度

类型

说明

实例值

manufacturerUrl

64

String

车品牌图标

https://a.com/1.jpg

manufacturer

String

请求接口内容字符串JSON

车品牌

宝马

series

64

String

车系

3系

model

64

String

车款

320LI

vin

64

String

车辆vin码

128803090101010305

vehicleUrl

255

String

车辆缩略图url

https://a.com/b.jpg

productionDate

64

String

车牌出厂日期(yyyy-MM)

2020-01

currentMileage

64

Integer

车辆当前里程(公里/KM)

15000

firstName

64

String

车主名

lastName

64

String

车主姓

customerUrl

255

String

车主图像

https://a.com/b.jpg

gender

64

String

车主性别(MALE/FEMALE)

MALE

salutation

64

String

车主称呼

先生

technicianId

64

String

检测人员ID

8922332

technicianUrl

255

String

检测人员图像

https://a.com/b.jpg

technicianName

64

String

检测姓名

技师张

technicianMobile

64

String

检测人员手机号

13609889990

请求命令(以curl命令为例)示例如下:

curl 'http://127.0.0.1:28084/openapi/api-v1/rest' \
-H "accept: */*"  \
-H "Authorization: eyJhbGciOiJIUzUxMiJ9.eyJpc09wZW5BcGkiOnRydWUsInN1YiI6IkFLNTg3OEE3QUI4NEZCNDM0MCIsImV4cCI6MTYyOTEwMzY5MCwiY3JlYXRlZCI6MTYyODIzOTY5MDY0NiwiYnJhbmRJZCI6MTY3fQ.2JD6CikHmff2oikqrEuVfu3iy_S_cAM66hlBbRzJ7nx30qtnDB1c0Q9zsPXVPyhdq1rS3SJ-73Q5dPwV8St63A" \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'External-Store-Id: 6009R001' \
--data-raw '{"method": "autox3.order.detection.create",
"content":"{\"licensePlate\":\"云202026\",\"sn\":\"167_210804233715CX\",\"externalInspectionOrderId\":\"380900000001\",\"vehicleInfo\":{\"manufacturerUrl\":\"https://cbu01.alicdn.com/img/ibank/2014/435/807/1727708534_1244807327.jpg\",\"manufacturer\":\"独轮车\",\"series\":\"独一系\",\"model\":\"1500GRT\",\"vin\":\"1500GRT009292929\",\"productionDate\":\"2020-01-01\",\"currentMileage\":1000000,\"firstName\":\"阿发\",\"lastName\":\"真\",\"gender\":\"MALE\",\"salutation\":\"真先生\",\"technicianId\":\"100000111\",\"technicianName\":\"技师森\",\"technicianMobile\":\"13813131313\"}}"}' \
--compressed          

应答参数

名称

子项

是否必填

长度

类型

说明

示例值

status

--

Integer

请参考本页"公共参数-->错误编码"部分

0

errorInfo

--

String

错误信息

network error

data

--

Object

应答信息封装

inspectionOrderId

64

String

开放平台检测单Id

35890

应答示例如下:

{
	"data":
		{
      "inspectionOrderId":"35890"                
		}
	,
	"errorInfo":null,
	"status":0
}  

最后更新于

这有帮助吗?