https://onfleet.com/api/v2/taskOrders/<order_shortid>
Get single orders by order shortId
This endpoint allows the user to get information regarding to an order made from couriers. Both Client API Key and the Courier API key can have access to this information.
An order will return both Pickup and Dropoff component of the order and all of its relevant information such as trackingURL
.
Order ID vs. Task IDEach Order is identified by a unique short ID, which should be used as the query value for this endpoint. While an Order includes two short IDs for its associated Tasks, those Task IDs should not be used with this endpoint.
curl -X GET "https://onfleet.com/api/v2/taskOrders/3ae2dbba" \
-u "cd3b3de84cc1ee040bf06512d233719c:"
{
"id": "DsczkHpn0IyJgMDJRqwIjcrq",
"shortId": "3ae2dbba",
"timeCreated": 1710367869000,
"timeLastModified": 1710367869470,
"source": "api",
"events": [],
"pickupTask": {
"id": "7WWAxDkZAG2QQvcYQDveLFWU",
"timeCreated": 1710367868000,
"timeLastModified": 1728487765332,
"organization": "turZSLp9A6EaksJO3bWZYtdd",
"shortId": "3ae2dbba",
"orderShortId": null,
"trackingURL": "https://onf.lt/3ae2dbba",
"worker": null,
"merchant": "turZSLp9A6EaksJO3bWZYtdd",
"executor": "nYrkNP6jZMSKgBwG9qG7ci3J",
"creator": "jj4cMt7V~DjloxnuCql6nfTE",
"dependencies": [],
"state": 0,
"completeAfter": null,
"completeBefore": null,
"pickupTask": true,
"type": 0,
"notes": "",
"completionDetails": {
"failureNotes": "",
"successNotes": "",
"failureReason": "NONE",
"events": [],
"actions": [],
"time": null,
"signatureUploadId": null,
"photoUploadId": null,
"photoUploadIds": null,
"firstLocation": [],
"lastLocation": [],
"unavailableAttachments": []
},
"feedback": [],
"metadata": [],
"overrides": {},
"quantity": 0,
"additionalQuantities": {
"quantityA": 0,
"quantityB": 0,
"quantityC": 0
},
"serviceTime": 0,
"identity": {
"failedScanCount": 0,
"checksum": null
},
"appearance": {
"triangleColor": null
},
"scanOnlyRequiredBarcodes": false,
"customFields": [],
"container": {
"type": "ORGANIZATION",
"organization": "nYrkNP6jZMSKgBwG9qG7ci3J"
},
"trackingViewed": false,
"recipients": [],
"delayTime": null,
"estimatedCompletionTime": null,
"estimatedArrivalTime": null,
"destination": {
"id": "k4raFo~BLxCP9p3GsY4*mQVv",
"timeCreated": 1710367868000,
"timeLastModified": 1710367868509,
"location": [
-117.8764687,
33.8078476
],
"address": {
"apartment": "",
"state": "California",
"postalCode": "92806",
"number": "2695",
"street": "East Katella Avenue",
"city": "Anaheim",
"country": "United States"
},
"notes": "",
"organization": "turZSLp9A6EaksJO3bWZYtdd",
"wasGeocoded": true,
"createdByLocation": false,
"googlePlaceId": null,
"useGPS": false
}
},
"dropoffTask": {
"id": "RXJGXNTg4z6Q04dpcSJTXpqI",
"timeCreated": 1710367869000,
"timeLastModified": 1728487765332,
"organization": "turZSLp9A6EaksJO3bWZYtdd",
"shortId": "554565a7",
"orderShortId": null,
"trackingURL": "https://onf.lt/554565a7",
"worker": null,
"merchant": "turZSLp9A6EaksJO3bWZYtdd",
"executor": "nYrkNP6jZMSKgBwG9qG7ci3J",
"creator": "jj4cMt7V~DjloxnuCql6nfTE",
"dependencies": [
"7WWAxDkZAG2QQvcYQDveLFWU"
],
"state": 0,
"completeAfter": null,
"completeBefore": null,
"pickupTask": false,
"type": 1,
"notes": "",
"completionDetails": {
"failureNotes": "",
"successNotes": "",
"failureReason": "NONE",
"events": [],
"actions": [],
"time": null,
"signatureUploadId": null,
"photoUploadId": null,
"photoUploadIds": null,
"firstLocation": [],
"lastLocation": [],
"unavailableAttachments": []
},
"feedback": [],
"metadata": [],
"overrides": {},
"quantity": 0,
"additionalQuantities": {
"quantityA": 0,
"quantityB": 0,
"quantityC": 0
},
"serviceTime": 0,
"identity": {
"failedScanCount": 0,
"checksum": null
},
"appearance": {
"triangleColor": null
},
"scanOnlyRequiredBarcodes": false,
"customFields": [],
"container": {
"type": "ORGANIZATION",
"organization": "nYrkNP6jZMSKgBwG9qG7ci3J"
},
"trackingViewed": false,
"recipients": [],
"delayTime": null,
"estimatedCompletionTime": null,
"estimatedArrivalTime": null,
"destination": {
"id": "gHTkfwc4fmCsdgNV7frVTj3k",
"timeCreated": 1710367869000,
"timeLastModified": 1710367869206,
"location": [
-118.4036052,
33.942153
],
"address": {
"apartment": "",
"state": "California",
"postalCode": "90045",
"number": "1",
"street": "World Way",
"city": "Los Angeles",
"country": "United States"
},
"notes": "",
"organization": "turZSLp9A6EaksJO3bWZYtdd",
"wasGeocoded": true,
"createdByLocation": false,
"googlePlaceId": null,
"useGPS": false
}
},
"deliveryService": null,
"deliveryServiceInvoice": null,
"clientId": "turZSLp9A6EaksJO3bWZYtdd",
"courierId": "nYrkNP6jZMSKgBwG9qG7ci3J",
"clientName": "Attorney at Law"
}