153 lines
3.2 KiB
JSON
153 lines
3.2 KiB
JSON
{
|
|
"_id": "cafe1234",
|
|
"date": "2019-02-03T00:00:00.000Z",
|
|
"taskId": "123456789",
|
|
"type": "delivery",
|
|
"by": "beef",
|
|
"contact": {
|
|
"account": "54321",
|
|
"name": null,
|
|
"person": "M. Chuck Norris",
|
|
"phone": "33800772424",
|
|
"language": "fr"
|
|
},
|
|
"instructions": "Third floor",
|
|
"items": [
|
|
{
|
|
"damaged": {
|
|
"confirmed": false,
|
|
"pictures": []
|
|
},
|
|
"status": "DELIVERED",
|
|
"quantity": 1,
|
|
"labels": [],
|
|
"skills": [],
|
|
"_id": "cafe1",
|
|
"type": "COFFEE",
|
|
"barcode": "133742133742",
|
|
"barcodeEncoding": "upc",
|
|
"dimensions": {
|
|
"weight": 19.01,
|
|
"cardboard": 2
|
|
},
|
|
"log": [
|
|
{
|
|
"by": null,
|
|
"when": "2019-02-02T10:32:27.621Z",
|
|
"to": "ARRIVED"
|
|
},
|
|
{
|
|
"by": "dead",
|
|
"when": "2019-02-03T07:08:32.107Z",
|
|
"to": "DEPARTED"
|
|
},
|
|
{
|
|
"_id": "106",
|
|
"by": "c0fe",
|
|
"when": "2019-02-03T07:56:47.814Z",
|
|
"to": "DELIVERED"
|
|
}
|
|
],
|
|
"metadata": {
|
|
"packageNumber": null,
|
|
"quantity": 0,
|
|
"orderIdExt": "5255887",
|
|
"newClient": "No"
|
|
}
|
|
}
|
|
],
|
|
"location": {
|
|
"location": {
|
|
"type": "Point",
|
|
"geometry": [
|
|
2.21154054884875,
|
|
42.18906577220902
|
|
]
|
|
},
|
|
"addressLines": [
|
|
"Baker Street",
|
|
"742",
|
|
"GU16 7HF",
|
|
"Nowhere",
|
|
"UK"
|
|
],
|
|
"geocodeScore": 98,
|
|
"cleanScore": 0,
|
|
"number": "742",
|
|
"street": "Baker Street",
|
|
"city": "Nowhere",
|
|
"zip": "GU16 7HF",
|
|
"country": "UK",
|
|
"origin": "ARCGIS",
|
|
"precision": "point"
|
|
},
|
|
"log": [
|
|
{
|
|
"to": "GEOCODED",
|
|
"when": "2019-02-01T23:07:22.997Z",
|
|
"by": null
|
|
},
|
|
{
|
|
"by": "65dc8",
|
|
"when": "2019-02-02T05:16:22.557Z",
|
|
"to": "ASSIGNED"
|
|
},
|
|
{
|
|
"by": "f3251c86513d",
|
|
"when": "2019-02-03T07:08:32.107Z",
|
|
"to": "ONGOING"
|
|
},
|
|
{
|
|
"_id": "5416a321",
|
|
"by": "6513d54e",
|
|
"when": "2019-02-03T07:56:47.814Z",
|
|
"to": "COMPLETED"
|
|
}
|
|
],
|
|
"platform": "934",
|
|
"progress": "COMPLETED",
|
|
"serviceTime": 13,
|
|
"status": "DELIVERED",
|
|
"timeWindow": {
|
|
"start": "2019-02-03T08:00:00.000Z",
|
|
"stop": "2019-02-03T10:00:00.000Z"
|
|
},
|
|
"when": "2019-02-01T23:07:16.734Z",
|
|
"arriveTime": "2019-02-03T06:45:07.000Z",
|
|
"driver": "987654e",
|
|
"round": "552bc6f",
|
|
"position": [
|
|
0.1234567,
|
|
32.2135467
|
|
],
|
|
"template": {
|
|
"mapAvailability": 60,
|
|
"enabled": true,
|
|
"email": "contact@example.com",
|
|
"phone": "0999999999",
|
|
"backgroundColor": "rgba(50, 40, 20, 0.95)",
|
|
"primaryColor": "#ffffff",
|
|
"secondaryColor": "#731246",
|
|
"backgroundPicture": "bg.png",
|
|
"logo": "logo.png",
|
|
"imagePath": "https://backend.urbantz.com/pictures/platforms/934/",
|
|
"name": "Something",
|
|
"icon": "icon.png"
|
|
},
|
|
"features": {
|
|
"driverRoundResequence": true,
|
|
"driverRatings": true,
|
|
"consumerModifyInstructions": false,
|
|
"allowVirtualFleet": true,
|
|
"cancelOptimization": false
|
|
},
|
|
"eta": {
|
|
"margin": 20,
|
|
"rounding": 5
|
|
},
|
|
"theme": {
|
|
"primary": "#efefef",
|
|
"secondary": "rgb(30, 40, 50)"
|
|
}
|
|
}
|