Skip to main content
Skip to Content
Dispatch API

List route stops

GET
/routes/{routeId}/stops

The playground uses your live account

Requests are sent with your real API key, so creating, updating or deleting here changes your production data.

Authorization

BasicAuth
headerAuthorizationBasic <token>

Use the API key as the username and leave the password empty.

Path Parameters

routeId*string

The route id

Match^[a-zA-Z0-9---_]{1,50}$

Query Parameters

pageToken?string

The page token, if any.

Length1 <= length <= 255
maxPageSize?number

The max page size.

Range1 <= value <= 10
Default10
filter?

The filter to apply to the list of stops. The filter params are passed like this: ?filter[externalId]=foo or like this: ?filter.externalId=foo

Response Body

Success

application/json
  1. response

Success

stops*array<>

The stops list.

nextPageToken*|

The next page token.

Example Request
curl -X GET 'https://api.spoke.com/public/v1/routes/string/stops'
Example Response
{  "stops": [    {      "id": "string",      "address": {        "address": "string",        "addressLineOne": "string",        "addressLineTwo": "string",        "latitude": -90,        "longitude": -180,        "placeId": null,        "placeTypes": [          "string"        ]      },      "barcodes": [        "string"      ],      "allowedDrivers": [        "string"      ],      "estimatedTravelDuration": null,      "estimatedTravelDistance": null,      "notes": null,      "packageCount": null,      "weight": {        "amount": 0,        "unit": "kilogram"      },      "type": "start",      "packageLabel": null,      "stopPosition": null,      "trackingLink": null,      "webAppLink": "string",      "orderInfo": {        "products": [          "string"        ],        "invoiceNumber": null,        "sellerName": null,        "sellerOrderId": null,        "sellerWebsite": null      },      "placeInVehicle": {        "x": "left",        "y": "front",        "z": "floor"      },      "recipient": {        "name": null,        "email": null,        "phone": null,        "externalId": null      },      "activity": "delivery",      "deliveryInfo": {        "attempted": true,        "attemptedAt": 0,        "timeAtStopInfo": {          "status": "available",          "value": {            "arrivedAt": 0,            "departedAt": 0,            "isEstimated": true          }        },        "attemptedLocation": {          "latitude": 0,          "longitude": 0        },        "driverProvidedInternalNotes": "string",        "driverProvidedRecipientNotes": "string",        "photoUrls": [          "string"        ],        "recipientProvidedNotes": "string",        "signatureUrl": "string",        "signeeName": "string",        "succeeded": true,        "state": "delivered_to_recipient"      },      "paymentOnDelivery": {        "amount": 0,        "currency": "string"      },      "proofOfAttemptRequirements": {        "enabled": null      },      "plan": "string",      "route": {        "id": "string",        "title": "string",        "stopCount": 0,        "driver": "string",        "state": {          "completed": true,          "completedAt": 0,          "distributed": true,          "distributedAt": 0,          "notifiedRecipients": true,          "notifiedRecipientsAt": 0,          "started": true,          "startedAt": 0        },        "plan": "string"      },      "eta": {        "status": "available",        "value": {          "estimatedArrivalAt": 0,          "estimatedLatestArrivalAt": 0,          "estimatedEarliestArrivalAt": 0        }      },      "timing": {        "timeWindows": [          {            "earliestAttemptTime": {              "hour": 0,              "minute": 0            },            "latestAttemptTime": {              "hour": 0,              "minute": 0            }          }        ],        "estimatedAttemptDuration": null,        "earliestAttemptTime": {          "hour": 0,          "minute": 0        },        "latestAttemptTime": {          "hour": 0,          "minute": 0        }      },      "optimizationOrder": "first",      "customProperties": {        "property1": "string",        "property2": "string"      },      "clientId": null,      "serviceInfo": {        "status": "available",        "value": {          "identifier": "string",          "name": "string",          "slaStartsAt": 0,          "slaDueDate": {            "day": 1,            "month": 1,            "year": 2000          },          "slaDueTime": {            "hour": 0,            "minute": 0          },          "deliveryHorizon": {            "unit": "days",            "value": 0          },          "price": {            "value": 0,            "currency": "AED"          },          "hasPaymentOnDelivery": true,          "definedAt": 0        }      }    }  ],  "nextPageToken": null}