{
"uid": "string",
"externalId": "string",
"reference": "ORDER-132",
"type": 0,
"date": 20240430,
"dateRange": {
"startDate": "string",
"endDate": "string"
},
"allowedWeekDays": [
true
],
"frequency": 1,
"frequencyDateRange": {
"startDate": "string",
"endDate": "string"
},
"timeWindows": [
{
"start": 0,
"end": 0
}
],
"pickup": {
"location": {
"type": 0,
"uid": "string",
"name": "string",
"address": "string",
"addressLine2": "string",
"postCode": "string",
"city": "string",
"country": "string",
"what3words": "string",
"contactName": "string",
"contactPhone": "string",
"contactEmail": "string",
"setupDuration": 10,
"serviceDuration": 10,
"customerId": "string",
"customerUID": "string",
"coordinates": [
-0.095146,
51.5156469
],
"meta": {}
},
"timeWindows": [
{
"start": 0,
"end": 0
}
],
"setupDuration": 10,
"serviceDuration": 10,
"configuration": {
"actions": {
"identityCode": 39493,
"code": "11-22323-2333",
"actionList": [
{
"type": 0,
"typeText": "string",
"required": false,
"meta": {}
}
],
"failedActionList": [
{
"type": 0,
"typeText": "string",
"required": false,
"meta": {}
}
]
},
"failedActions": {
"identityCode": 39493,
"code": "11-22323-2333",
"actionList": [
{
"type": 0,
"typeText": "string",
"required": false,
"meta": {}
}
],
"failedActionList": [
{
"type": 0,
"typeText": "string",
"required": false,
"meta": {}
}
]
}
},
"actions": [
{
"uid": "string",
"type": 0,
"typeText": "string",
"required": false,
"state": 0,
"meta": {},
"issue": false
}
],
"actionsState": {},
"instructions": "Pick up at loading bay",
"rating": {
"rate": 0,
"comment": "string",
"timestamp": "2019-08-24"
},
"estimates": {
"enRoute": 0,
"enRouteDate": "string",
"enRouteISO": "2019-08-24",
"travel": 0,
"waiting": 0,
"arrived": 0,
"date": "string",
"arrivedISO": "2019-08-24",
"setupDuration": 0,
"serviceDuration": 0,
"completed": 0,
"completedDate": "string",
"completedISO": "2019-08-24",
"timeWindowEndTimestamp": 0,
"lateness": 0,
"distance": 0,
"load": {},
"currentLoad": {},
"cost": {},
"liveETAUpdatedAt": "2019-08-24"
},
"actuals": {
"enRoute": 0,
"enRouteDate": "string",
"enRouteISO": "2019-08-24",
"travel": 0,
"waiting": 0,
"arrived": 0,
"date": "string",
"arrivedISO": "2019-08-24",
"setupDuration": 0,
"serviceDuration": 0,
"completed": 0,
"completedDate": "string",
"completedISO": "2019-08-24",
"timeWindowEndTimestamp": 0,
"lateness": 0,
"distance": 0,
"load": {},
"currentLoad": {},
"cost": {},
"liveETAUpdatedAt": "2019-08-24",
"created": 0,
"finalized": 0,
"finalizedDate": "string",
"failed": 0
}
},
"location": {
"type": 0,
"uid": "string",
"name": "string",
"address": "string",
"addressLine2": "string",
"postCode": "string",
"city": "string",
"country": "string",
"what3words": "string",
"contactName": "string",
"contactPhone": "string",
"contactEmail": "string",
"setupDuration": 10,
"serviceDuration": 10,
"customerId": "string",
"customerUID": "string",
"coordinates": [
-0.095146,
51.5156469
],
"meta": {}
},
"size": {
"weight": 100,
"volume": 150
},
"flags": {
"isReturning": true,
"isBillable": true,
"isPartiallyCompleted": true,
"rescheduledByCustomerCount": 0,
"addressEditedByCustomerCount": 0,
"failedAttempts": 0
},
"items": [
{
"uid": "string",
"id": "1",
"description": "string",
"code": "string",
"instructions": "string",
"configuration": {
"actions": {
"pickup": [
{
"type": 0,
"typeText": "string",
"required": false,
"meta": {}
}
],
"delivery": [
{
"type": 0,
"typeText": "string",
"required": false,
"meta": {}
}
],
"warehouse": [
{
"type": 0,
"typeText": "string",
"required": false,
"meta": {}
}
],
"applyItemActionsToTaskWhenNoItems": true
}
},
"state": 0,
"customData": {
"externalId": 12345567890
},
"warehouseOperations": {
"state": "string",
"workflows": {
"string": {
"assignee": "string",
"assigneeName": "string",
"assignedBay": "string",
"actions": [
{
"uid": "string",
"type": "string",
"state": "string",
"parent": "string",
"code": "string",
"label": "string",
"taskId": "string",
"itemUID": "string",
"workflow": "string",
"workflowName": "string"
}
]
}
},
"history": [
{
"data": {},
"actor": {
"userId": "string",
"userLevel": "string",
"actorId": "string",
"deviceId": "string",
"geolocation": {},
"action": "string",
"email": "string",
"event": "string"
},
"timestamp": 1714408041836,
"receivedAt": "2019-08-24"
}
]
},
"meta": {}
}
],
"customer": {
"_id": "string",
"uid": "string",
"reference": "string",
"externalId": "string",
"info": {}
},
"inherited": {},
"skills": [
"skill1",
"skill2"
],
"capabilities": [
"capability1",
"capability2"
],
"tags": [
"tag1",
"tag2"
],
"teams": [
"string"
],
"zones": [
"string"
],
"assignment": {
"state": 0,
"assignee": {
"model": "Driver",
"_id": "string",
"info": {}
},
"route": "string",
"routeUID": "string",
"unviableReasons": [
"string"
]
},
"state": -30,
"stateText": "En route",
"stateTimestamp": 0,
"stateTimestamps": {},
"setupDuration": 10,
"serviceDuration": 10,
"orderValue": 300,
"productCode": "111-2222000000-333",
"priority": 0,
"configuration": {
"actions": {
"identityCode": 39493,
"code": "11-22323-2333",
"actionList": [
{
"type": 0,
"typeText": "string",
"required": false,
"meta": {}
}
],
"failedActionList": [
{
"type": 0,
"typeText": "string",
"required": false,
"meta": {}
}
]
},
"failedActions": {
"identityCode": 39493,
"code": "11-22323-2333",
"actionList": [
{
"type": 0,
"typeText": "string",
"required": false,
"meta": {}
}
],
"failedActionList": [
{
"type": 0,
"typeText": "string",
"required": false,
"meta": {}
}
]
},
"issues": {
"contactSupport": {
"enabled": true,
"usePhone": true,
"useMessage": true
},
"contactDirect": {
"enabled": true,
"callPickupContact": true,
"callDeliveryContact": true
},
"safePlace": {
"enabled": true,
"instructions": "string"
},
"failTask": {
"enabled": true,
"pickup": true,
"delivery": true,
"failedReasons": {
"pickup": [
"string"
],
"delivery": [
"string"
]
},
"customReason": {
"pickup": true,
"delivery": true
}
},
"reattempts": {
"enabled": true,
"endOfRoute": true,
"timeWindows": true
},
"return": {
"enabled": true,
"autoCreateReturnTask": {
"taskFail": true,
"reattemptFail": true,
"dateChange": true
},
"returnLocation": "pickup",
"locationInfo": {},
"actions": "string",
"customActions": {
"pickup": [
{
"type": 0,
"typeText": "string",
"required": false,
"meta": {}
}
],
"delivery": [
{
"type": 0,
"typeText": "string",
"required": false,
"meta": {}
}
]
}
}
},
"notifications": {
"delivery": {},
"pickup": {},
"depot": {}
},
"skipWebhooks": true,
"support": {
"companyName": "string",
"customerPhone": "string",
"customerEmail": "string",
"alphanumericSenderID": "string"
}
},
"actions": [
{
"uid": "string",
"type": 0,
"typeText": "string",
"required": false,
"state": 0,
"meta": {},
"issue": false
}
],
"actionsState": {},
"instructions": "Please call upon arrival",
"notes": [
"string"
],
"locked": true,
"rating": {
"rate": 0,
"comment": "string",
"timestamp": "2019-08-24"
},
"customData": {
"externalId": 12345567890
},
"estimates": {
"enRoute": 0,
"enRouteDate": "string",
"enRouteISO": "2019-08-24",
"travel": 0,
"waiting": 0,
"arrived": 0,
"date": "string",
"arrivedISO": "2019-08-24",
"setupDuration": 0,
"serviceDuration": 0,
"completed": 0,
"completedDate": "string",
"completedISO": "2019-08-24",
"timeWindowEndTimestamp": 0,
"lateness": 0,
"distance": 0,
"load": {},
"currentLoad": {},
"cost": {},
"liveETAUpdatedAt": "2019-08-24",
"totalCost": {}
},
"actuals": {
"enRoute": 0,
"enRouteDate": "string",
"enRouteISO": "2019-08-24",
"travel": 0,
"waiting": 0,
"arrived": 0,
"date": "string",
"arrivedISO": "2019-08-24",
"setupDuration": 0,
"serviceDuration": 0,
"completed": 0,
"completedDate": "string",
"completedISO": "2019-08-24",
"timeWindowEndTimestamp": 0,
"lateness": 0,
"distance": 0,
"load": {},
"currentLoad": {},
"cost": {},
"liveETAUpdatedAt": "2019-08-24",
"totalCost": {},
"created": 0,
"createdISO": "2019-08-24",
"createdDate": "string",
"finalized": 0,
"finalizedISO": "2019-08-24",
"finalizedDate": "string",
"failed": 0,
"cancelled": 0
},
"history": [
{
"data": {},
"actor": {
"userId": "string",
"userLevel": "string",
"actorId": "string",
"deviceId": "string",
"geolocation": {},
"action": "string",
"email": "string",
"event": "string"
},
"timestamp": 1714408042051,
"receivedAt": "2019-08-24"
}
],
"failedReason": "string",
"internalComment": "string",
"display": {
"backgroundColor": "string",
"borderColor": "string",
"routeTimelineColor": "string"
},
"earlinessTolerance": 0,
"latenessTolerance": 0,
"warehouseOperations": {
"state": "string",
"workflows": {
"string": {
"assignee": "string",
"assigneeName": "string",
"assignedBay": "string",
"actions": [
{
"uid": "string",
"type": "string",
"state": "string",
"parent": "string",
"code": "string",
"label": "string",
"taskId": "string",
"itemUID": "string",
"workflow": "string",
"workflowName": "string"
}
]
}
},
"history": [
{
"data": {},
"actor": {
"userId": "string",
"userLevel": "string",
"actorId": "string",
"deviceId": "string",
"geolocation": {},
"action": "string",
"email": "string",
"event": "string"
},
"timestamp": 1714408041836,
"receivedAt": "2019-08-24"
}
]
}
}