Topic: Trying to create a new route (order/route_update)
Hi, i'm trying to create a new route in gurtam with the request order/route_update in the following link of the gurtam api docs https://sdk.wialon.com/wiki/en/sidebar/ … ute_update which has the next parameters
svc=order/route_update¶ms={ "itemId":<long>,
"orders":\[\],
"routeId":<long>,
"callMode":<text>}
i Send the parameters with PHP like this
$paramsRoute = '{"itemId":15884440,
"orders":[6,12],
"routeId":0,
"callMode":"create"}';
$arregloRoutes = $wialon_api->order_route_update($paramsRoute."&sid=".$sid."");
where orders means the orders asignet to a specific unit, what i want to do is create a route with those orders in the array of the params orders in the request but in the response of the server i get the error: {"error":3} which means Invalid result
Any ideas of what i'm Doing wrong to get that error in the response ??
the final goal is to create a route whit many orders asigned to a unit in logistics.
Hope you can help me guys, Thanks !