Ao atribuir a rota a um operador, a API da RoutEasy irá enviar individualmente um evento informando que o serviço foi criado e está em espera (status on_hold).
{
"company":"5f34589c02c3962193524663",
"site":"5f297a09853b3d7055abcc1f",
"current": {
"_id": "5f1f1fb99db11278e2a9e948",
"entity": {
"id": "5f1f1fa19db11278e2a9e842",
"status": "on_hold",
"type": "task"
},
"eventType": "action",
"action": "create",
"sender": "55f753f68b0eb0bd25abf98b",
"user": "55f753f68b0eb0bd25abf98b",
"values": {},
"created": "2020-07-27T18:40:57.193Z",
"date": "2020-07-27T18:40:57.193Z",
"__v": 0,
"hash": "3accbcfce8ead49c7d72a90665fbc85c6eece56443e4b932e81e4dc5b99f9b74afe033299653f23e933d683e9d527192a34fe4a401a8f76680f9ba640aab4fb139516fcc6eeeaf6a0b099360dcdff604f0951933062a7101d19257dfd6d8b1fa",
"trackingHash": "a1616e8bc6b85d6a13391f39748064e96505939acf5660cc1ecdf04bab0b5433f7ce33e17d0a61822ef7ca2f0b46cac8434d063184eeeeecee5213e8f12efada5f880c5f3fe435a567353c714100ef17",
"tracking": "http://localhost:3000/tracking?hash=a1616e8bc6b85d6a13391f39748064e96505939acf5660cc1ecdf04bab0b5433f7ce33e17d0a61822ef7ca2f0b46cac8434d063184eeeeecee5213e8f12efada5f880c5f3fe435a567353c714100ef17",
"status": "on_hold",
"services": [
{
"name": "GRACIANI & PAULINO LTDA - ME",
"code": "ABC0000005",
"invoice_number": "728332",
"order_number": "728332",
"shipment_number": null,
"email": "[email protected]",
"phone": "11910203040"
},
{
"name": "GRACIANI & PAULINO LTDA - ME",
"code": "ABC0000005",
"invoice_number": "728333",
"order_number": "728333",
"shipment_number": null,
"email": "[email protected]",
"phone": "11910203040"
}
],
"job": {
"id": "5f1f1fb89db11278e2a9e935",
"due_date": 1595844000000,
"routing": "5f1f1fa19db11278e2a9e811",
"route": {
"id": "5f1f1fa59db11278e2a9e8d8",
"name": "Rota 1"
},
"operator": {
"displayName": "Tyler Durden",
"documentNumber": "1154845444884",
"license_plate": "FIG1557",
"phone": [
"(11) 99241-1224"
]
}
}
},
"previous": null
}