Run in Apifox
This policy applies to ordering the same data plan for a batch of devices in the same enterprise. This interface is a synchronization interface. If a device does not meet the ordering requirements, the ordering cannot be executed.
Request Body Params application/json
{
"access_code" : "P000270" ,
"deviceList" : [
"89852022018041800192" ,
"89852022018041800193"
] ,
"global_order" : "0" ,
"is_open" : "0" ,
"order_period" : "1" ,
"package_code" : "DP20190726001274" ,
"package_name" : "C_M_0_P_中国20M不限速月套餐" ,
"package_type" : "2" ,
"pay_amount" : "0" ,
"pay_rst" : "2" ,
"pay_type" : "1" ,
"test_flow" : "0" ,
"test_flow_flag" : "0" ,
"timestamp" : "1643253530" ,
"version" : "2.0" ,
"sign" : "5+o5RzScCv2TuJ1Yb/aehTH0GLU="
}
Request Code Samples
curl --location --request POST 'http://127.0.0.1/package/batchOrderPackages' \
--header 'Accept-Language: zh-CN' \
--header 'Content-Type: application/json' \
--data-raw '{
"access_code": "P000270",
"deviceList": [
"89852022018041800192",
"89852022018041800193"
],
"global_order": "0",
"is_open": "0",
"order_period": "1",
"package_code": "DP20190726001274",
"package_name": "C_M_0_P_中国20M不限速月套餐",
"package_type": "2",
"pay_amount": "0",
"pay_rst": "2",
"pay_type": "1",
"test_flow": "0",
"test_flow_flag": "0",
"timestamp": "1643253530",
"version": "2.0",
"sign":"5+o5RzScCv2TuJ1Yb/aehTH0GLU="
}'
Responses application/json Generate Code
{
"code" : "0000" ,
"data" : {
"device_order" : [
{
"error" : "0000" ,
"errorMsg" : "success" ,
"order_id" : "ORDER_47454030993031168" ,
"device_id" : "89852022018041800192" ,
"order_start_date" : null ,
"order_expire_date" : null
} ,
{
"error" : "0000" ,
"errorMsg" : "success" ,
"order_id" : "ORDER_47453927590854656" ,
"device_id" : "89852022018041800193" ,
"order_start_date" : null ,
"order_expire_date" : null
}
]
} ,
"message" : "成功" ,
"success" : true
}
Modified at 2022-10-05 06:24:44