Skip to main content
Skip to Content
Dispatch API

Retrieve a stop

GET
/plans/{planId}/stops/{stopId}

The playground uses your live account

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

Retrieve a stop

Authorization

BasicAuth
headerAuthorizationBasic <token>

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

Path Parameters

planId*string

The plan id

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

The stop id

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

Response Body

The requested stop

application/json
  1. response

The requested stop

id*string

The id of the stop, in the format plans/<id>/stops/<id>.

Match^plans\/[a-zA-Z0-9---_]{1,50}\/stops\/[a-zA-Z0-9---_]{1,50}$
address*

The address of the stop.

barcodes*array<string>

List of Barcode IDs associated with the stop.

allowedDrivers*array<>

The driver IDs that can be assigned to this stop

estimatedTravelDuration*|

Estimated time that the driver will take to arrive at this stop from the previous stop in seconds.

estimatedTravelDistance*|

The distance in meters between the previous stop and this stop.

notes*|

Notes for the stop.

packageCount*|

The number of packages.

weight*|null
type*string

The type of the stop. start is the first stop of the route, stop is a stop in the middle of the route, and end is the last stop of the route.

Value in"start""stop""end"
packageLabel*|

The label of the package.

stopPosition*|

The position of the stop in the route.

trackingLink*|

The recipient tracking link.

webAppLink*string

The web app link.

orderInfo*

The order information of the stop.

placeInVehicle*|null
recipient*

The recipient of the stop.

activity?string
Default"delivery"
Value in"delivery""pickup"
deliveryInfo*|null
paymentOnDelivery*|null
proofOfAttemptRequirements*

The proof of attempt requirements of the stop.

plan*string

The id of the plan, in the format plans/<id>.

Match^plans\/[a-zA-Z0-9---_]{1,50}$
route*|

The route of the stop, if any.

eta*||
timing*

The timing data of the stop.

optimizationOrder?string
Default"default"
Value in"first""last""default"
customProperties*|

Custom properties of the stop, can be used to store additional information.

clientId*|

The associated Client ID of the Spoke Connect

serviceInfo*||

Service offering data for this stop.

Example Request
curl -X GET 'https://api.spoke.com/public/v1/plans/string/stops/string'
Example Response
{  "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    }  }}