1

Create orders

Topic: Create orders

Hello,

I am using the code below to create multiple orders and place them into the route section of the Logistics portal.
When I sent it I am getting the error message:
{"error":4, "reason":"VALIDATE_PARAMS_ERROR: {itemId: long, callMode: text}"}

'https://hst-api.wialon.com/wialon/ajax.html?svc=order/route_update&sid=026d15c2b58ed41ab2c08778d2d8c7e1&params={"ItemId":17640076,"Orders":[{"uid":0,"id":0,"n":"Load No. 9032021","p":{"a":%2210462 Islington Avenue Toronto, ON M8Z 4R3", "c":100,"cid":"17185N","d":"Order 9830211 Inv. Z820219", "e":"rpeel@kleinburgpharm.ca","n":"Kleinburg%20Pharmacy","ntf":0,"p":"19056602711", "p2":"", "t":"","tags":[],"ut":600, "v":400, "w":25, "r":{"id":1611780091127,"vt":1611830091,"i":1, "m":0,"t":1611830091}}, "rp":"","f":1,"tf":1611780091,"tt":1611860091,"trt":3600,"r":110, "y":43.77214, "x":79.54666, "u":22191249, "ej":{},"st":1611660170, "cf":{"Logpro_Template":"TA 374"},"callMode":"create"},
{"uid":0,"id":0,"n":"Load No. 90420214", "p":{"a":"10462 Islington Avenue Toronto, ON M8Z 4R3","c":100,"cid":"17185N","d":"Order 9840211 Inv.  Z820219","e":"rpeel@kleinburgpharm.ca","n":"Kleinburg Pharmacy","ntf":0, "p":"19056602711","p2":"","t":"","tags":[],"ut":600, "v":400, "w":25, "r":{"id":1611780091127, "vt":1611830091, "i":2, "m":0, "t":1611830091}}, "rp":"","f":1,"tf":1611780091,"tt":1611860091,"trt":3600,"r":110, "y":43.77214,"x":79.54666,"u":22191249,"ej":{},"st":1611660170, "cf":{"Logpro_Template":"TA 374"},"callMode":"create"}], "uid":1611780091127, "n":"Julio Route 4","CallMode":"create","flags":0}'

Please let me know what this error means and what is incorrect in this code.

Thanks,

Julio

2

Create orders

Re: Create orders

hello jflores
please, see the steps for route creation in this topic - https://forum.gurtam.com/viewtopic.php? … 14#p186814
try to create orders using order/update , then execute order/optimize to get all parameters for route

"itemId: long, callMode: text" error suggests the correct name for CallMode and ItemId parameters

Support