Fetch order

Retrieve details about your order from Routific's workspace

A GET request to the /orders endpoint with an orderUuidin the request url allows you to query the current details of an order within Routific.

Note that the orderUuid required to fetch an order is generated by Routific and is originally returned in the response body of creating orders.

Request URL


Request Payload

//none

Sample Response Payload

{
    "name": "Metro",
    "email": "[email protected]",
    "phone": "16043215582",
    "load": 1,
    "duration": 600, //in seconds
    "instructions": "Deliver at loading bay at the back of the building.",
    "createdOn": "2023-06-13T23:50:54.758Z",
    "uuid": "9a3e5d87-a448-4125-a165-2b8a689322ab",
    "customerOrderNumber": "external-1",
    "routificOrderNumber": "ORD-1655",
    "timeWindows": [
        {
            "startTime": "09:00",
            "endTime": "10:00"
        }
    ],
    "locations": [
        {
            "address": "510 W 8th Ave, Vancouver, BC V5Z 1C5, Canada",
            "latitude": 49.26413,
            "longitude": -123.11499,
            "timezone": "America/Vancouver",
            "status": "Validated"
        }
    ],
    "workspaceId": 1,
    "status": "missed",
    "deliveryMissedReason": "nobody home!",
    "deliveryTime": "2023-06-14T23:50:54.758Z",
    "proofOfDelivery": {
        "signature": "iVBORw0KGgoAAAANSUhEUgAAAfYAAABxCAYAAAAnKYFoAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAACAA....",
        "photos": [
            "/v1/orders/a09d0e3b-4a3a-4598-9f8f-5fb5350faae5/photos/57c7387e-5daa-4f17-8924-b53ab41e6"
        ]
    }
}

Here's a description of payload attributes returned in the response:

FieldsTypeDescription
nameStringCustomer name for the order
locationsLocation objectAddress and coordinates of the delivery address. If the lat/lng was adjusted on the Routific UI, this will fetch the latest pin location.
phoneStringPhone number of the customer
emailStringEmail of the customer
durationNumberExpected time spend at location in seconds. This is the input, not the actual time spent. For actual durations, you can Fetch route timelines.
loadNumberA number used to account for how much of a route's capacity is utilized by the order
instructionsStringDelivery instructions for the order, such buzzer number, etc.
timeWindowsTimeWindow objectA time range within which the order must of serviced.
createdOnStringDateTime field of when the order was created in Routific's system
workspaceIdIntegerThe ID of the workspace associated with the order.
uuidStringAn internal ID used to identify an order within Routific's system
customerOrderNumberStringThe external ID or customer order number.
routificOrderNumberStringThe internal Routific order number (as displayed in the UI).
statusStringThe current status of the order. Possible values: not_scheduled, scheduled, delivered, missed.
deliveryMissedReasonStringThe reason why the delivery was missed (if applicable).
deliveryTimeStringThe timestamp of the delivery attempt or completion.
proofOfDeliveryProofOfDelivery objectProofOfDelivery object contains data related to any signatures or photos captured as delivery proof
signatureStringA base64 encoded string of signature captured for the delivery in PNG format.
photosArrayAll photos captured as delivery proof are returned as an array of urls to download each image using the Fetch photos endpoint.