Topic: Error when creating route with SDK
Hi
We have achieved to:
- create orders (and save its uid and id)
- optimice orders (and save the logical order optimiced)
But we are having problems for create the route with the order optimization defined. We receive error 4 WRONG PARAMS but I have checked and I am not capable to see the error.
This is our code we are using as params:
{
"itemId": 13635918,
"orders": [{
"uid": 2755,
"id": 604,
"n": "A1",
"p": {
"pr": "",
"n": "CENTRE+VET.+BERGUEDA+SL",
"p": "938220052",
"e": "",
"a": "",
"v": "1",
"w": "0",
"c": "0",
"d": "Tipo+documento%3A+ZRES.+Horario+cliente%3A+9%3A00+-14%3A00+%2F%2F+16%3A00+-20%3A00.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364005.+Tipo+documento+%3A+ZRES.+Total+bultos%3A+1.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+0.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+0+kg.",
"uic": "81364005"
},
"f": 2,
"tf": 1519790400,
"tt": 1519889767,
"r": 150,
"y": 42.101124,
"x": 1.846267,
"u": 16067629,
"s": 0,
"sf": 0,
"trt": 5,
"st": 0,
"cnm": 0,
"rp": "",
"ej": {},
"callMode": "update"
}, {
"uid": 2756,
"id": 605,
"n": "A1",
"p": {
"pr": "",
"n": "CABALL+TORRUELLA%2C+EVA",
"p": "973481503",
"e": "",
"a": "",
"v": "1",
"w": "1.32",
"c": "0",
"d": "Tipo+documento%3A+ZTAX.+Horario+cliente%3A+9%3A00+-13%3A00+%2F%2F+17%3A00+-20%3A00.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364018.+Tipo+documento+%3A+ZTAX.+Total+bultos%3A+1.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+0.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+1.32+kg.",
"uic": "81364018"
},
"f": 2,
"tf": 1519790400,
"tt": 1519889767,
"r": 150,
"y": 41.9939,
"x": 1.524735,
"u": 16067629,
"s": 0,
"sf": 0,
"trt": 5,
"st": 0,
"cnm": 0,
"rp": "",
"ej": {},
"callMode": "update"
}, {
"uid": 2757,
"id": 606,
"n": "A1",
"p": {
"pr": "99",
"n": "COMAS+CANAL%2C+JOSEP+MARIA",
"p": "973299371",
"e": "",
"a": "",
"v": "1",
"w": "0.47",
"c": "0",
"d": "Tipo+documento%3A+ZINS.+Horario+cliente%3A+.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364089.+Tipo+documento+%3A+ZINS.+Total+bultos%3A+1.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+0.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+0.47+kg.",
"uic": "81364089"
},
"f": 2,
"tf": 1519790400,
"tt": 1519808400,
"r": 150,
"y": 41.827736,
"x": 1.542548,
"u": 16067629,
"s": 0,
"sf": 0,
"trt": 5,
"st": 0,
"cnm": 0,
"rp": "",
"ej": {},
"callMode": "update"
}, {
"uid": 2758,
"id": 607,
"n": "A1",
"p": {
"pr": "99",
"n": "%2B%26%26%26GRANJA+GAIA+-MANEL+PUIG+CA",
"p": "938880032%2F938...",
"e": "",
"a": "",
"v": "1",
"w": "0.76",
"c": "0",
"d": "Tipo+documento%3A+ZINS.+Horario+cliente%3A+7.00-8.00+MATI.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364090.+Tipo+documento+%3A+ZINS.+Total+bultos%3A+1.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+0.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+0.76+kg.",
"uic": "81364090"
},
"f": 2,
"tf": 1519790400,
"tt": 1519808400,
"r": 150,
"y": 37.3897285461,
"x": -4.11177015305,
"u": 16067629,
"s": 0,
"sf": 0,
"trt": 5,
"st": 0,
"cnm": 0,
"rp": "",
"ej": {},
"callMode": "update"
}, {
"uid": 2759,
"id": 609,
"n": "A1",
"p": {
"pr": "99",
"n": "%2B786%3AAE++GJA.+CABANA+NEGRA",
"p": "973482635",
"e": "",
"a": "",
"v": "1",
"w": "0.69",
"c": "0",
"d": "Tipo+documento%3A+ZINS.+Horario+cliente%3A+.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364091.+Tipo+documento+%3A+ZINS.+Total+bultos%3A+1.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+0.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+0.69+kg.",
"uic": "81364091"
},
"f": 2,
"tf": 1519790400,
"tt": 1519808400,
"r": 150,
"y": 40.6483306885,
"x": -4.70399999619,
"u": 16067629,
"s": 0,
"sf": 0,
"trt": 5,
"st": 0,
"cnm": 0,
"rp": "",
"ej": {},
"callMode": "update"
}, {
"uid": 2760,
"id": 610,
"n": "A1",
"p": {
"pr": "",
"n": "CABALL+TORRUELLA%2C+EVA",
"p": "973481503",
"e": "",
"a": "",
"v": "3",
"w": "3.7",
"c": "0",
"d": "Tipo+documento%3A+ZLF.+Horario+cliente%3A+9%3A00+-13%3A00+%2F%2F+17%3A00+-20%3A00.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364135.+Tipo+documento+%3A+ZLF.+Total+bultos%3A+3.+Bultos+M%3A+2.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+1.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+3.7+kg.",
"uic": "81364135"
},
"f": 2,
"tf": 1519790400,
"tt": 1519889768,
"r": 150,
"y": 41.9939,
"x": 1.524735,
"u": 16067629,
"s": 0,
"sf": 0,
"trt": 5,
"st": 0,
"cnm": 0,
"rp": "",
"ej": {},
"callMode": "update"
}, {
"uid": 2761,
"id": 614,
"n": "A1",
"p": {
"pr": "",
"n": "FERES+VETERINARIS+S.L.P",
"p": "938742798",
"e": "",
"a": "",
"v": "4",
"w": "43",
"c": "0",
"d": "Tipo+documento%3A+ZLF.+Horario+cliente%3A+24+hores.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364136.+Tipo+documento+%3A+ZLF.+Total+bultos%3A+4.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+3.+Bultos+N%3A+0.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+43+kg.",
"uic": "81364136"
},
"f": 2,
"tf": 1519790400,
"tt": 1519889769,
"r": 150,
"y": 39.8645591736,
"x": 3.12765002251,
"u": 16067629,
"s": 0,
"sf": 0,
"trt": 5,
"st": 0,
"cnm": 0,
"rp": "",
"ej": {},
"callMode": "update"
}, {
"uid": 2762,
"id": 615,
"n": "A1",
"p": {
"pr": "",
"n": "TUNEU+BAYONA%2C+SARA+%28PINSO%29",
"p": "938788063%2F615...",
"e": "",
"a": "",
"v": "2",
"w": "1.87",
"c": "0",
"d": "Tipo+documento%3A+ZLF.+Horario+cliente%3A+9.30-13H+%2F+16.30-20H.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364137.+Tipo+documento+%3A+ZLF.+Total+bultos%3A+2.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+1.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+1.87+kg.",
"uic": "81364137"
},
"f": 2,
"tf": 1519790400,
"tt": 1519889769,
"r": 150,
"y": 41.750709,
"x": 1.873567,
"u": 16067629,
"s": 0,
"sf": 0,
"trt": 5,
"st": 0,
"cnm": 0,
"rp": "",
"ej": {},
"callMode": "update"
}, {
"uid": 2763,
"id": 616,
"n": "A1",
"p": {
"pr": "",
"n": "VETERINARIS+DE+CARDONA+%28BOTIGA",
"p": "938682024%2F%2F93...",
"e": "",
"a": "",
"v": "2",
"w": "1.85",
"c": "0",
"d": "Tipo+documento%3A+ZLF.+Horario+cliente%3A+10%3A30-13%3A00%2F%2F17%3A00-20%3A00.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364138.+Tipo+documento+%3A+ZLF.+Total+bultos%3A+2.+Bultos+M%3A+2.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+0.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+1.85+kg.",
"uic": "81364138"
},
"f": 2,
"tf": 1519790400,
"tt": 1519889770,
"r": 150,
"y": 41.8298068,
"x": 1.7503423,
"u": 16067629,
"s": 0,
"sf": 0,
"trt": 5,
"st": 0,
"cnm": 0,
"rp": "",
"ej": {},
"callMode": "update"
}, {
"uid": 2764,
"id": 617,
"n": "A1",
"p": {
"pr": "",
"n": "VETERINARIS+DE+CARDONA+%28CLINIC",
"p": "938682024%2F%2F93...",
"e": "",
"a": "",
"v": "1",
"w": "0.03",
"c": "0",
"d": "Tipo+documento%3A+ZLF.+Horario+cliente%3A+10%3A30-13%3A00%2F%2F17%3A30-20%3A00.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364139.+Tipo+documento+%3A+ZLF.+Total+bultos%3A+1.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+0.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+0.03+kg.",
"uic": "81364139"
},
"f": 2,
"tf": 1519790400,
"tt": 1519889770,
"r": 150,
"y": 41.8298068,
"x": 1.7503423,
"u": 16067629,
"s": 0,
"sf": 0,
"trt": 5,
"st": 0,
"cnm": 0,
"rp": "",
"ej": {},
"callMode": "update"
}, {
"uid": 2765,
"id": 618,
"n": "A1",
"p": {
"pr": "",
"n": "%2AVETER+BAGES+S.L.",
"p": "938746057",
"e": "",
"a": "",
"v": "2",
"w": "2.05",
"c": "0",
"d": "Tipo+documento%3A+ZLF.+Horario+cliente%3A+OBERT+24+HORES.+Cobrar+en+efectivo+0+%E2%82%AC%3B.+Num+documento%3A+81364140.+Tipo+documento+%3A+ZLF.+Total+bultos%3A+2.+Bultos+M%3A+1.+Bultos+P%3A+0.+Bultos+G%3A+0.+Bultos+N%3A+1.+Palets%3A+0.+Palets+Gurb%3A+0.+Peso%3A+2.05+kg.",
"uic": "81364140"
},
"f": 2,
"tf": 1519790400,
"tt": 1519889770,
"r": 150,
"y": 41.720978,
"x": 1.846465,
"u": 16067629,
"s": 0,
"sf": 0,
"trt": 5,
"st": 0,
"cnm": 0,
"rp": "",
"ej": {},
"callMode": "update"
}],
"routeId": 1519803372,
"callMode": "create"
}
Could you please check it?
We have been 2 hours checking all and we dont know what to do already,