This is the documentation for Dispatch API v0.2b, which is no longer actively maintained. For up-to-date documentation, see the latest version (v1.0).
List stops
GET
The playground uses your live account
Requests are sent with your real API key, so creating, updating or deleting here changes your production data.
BasicAuthheader
AuthorizationBasic <token>Use the API key as the username and leave the password empty.
planId*stringThe plan id
Match
^[a-zA-Z0-9---_]{1,50}$pageToken?stringThe page token, if any.
Length
1 <= length <= 255maxPageSize?numberThe max page size.
Range
1 <= value <= 10Default
10filter?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
Success
application/json- response
Success
stops*array<>The stops list.
nextPageToken*|The next page token.
curl -X GET 'https://api.spoke.com/public/v0.2b/plans/string/stops'Example Response
{ "stops": [ { "id": "string", "address": { "address": "string", "addressLineOne": "string", "addressLineTwo": "string", "latitude": -90, "longitude": -180, "placeId": null, "placeTypes": [ "string" ] }, "barcodes": [ "string" ], "driverIdentifier": null, "allowedDriversIdentifiers": [ "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" ], "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, "arrivedAt": 0, "timeAtStopInfo": { "arrivedAt": 0, "departedAt": 0, "isEstimated": true }, "timeAtStopInfoNullReason": { "reason": "subscription_not_supported", "message": "string", "url": "string" }, "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": { "estimatedArrivalAt": 0, "estimatedLatestArrivalAt": 0, "estimatedEarliestArrivalAt": 0 }, "etaNullReason": { "reason": "not_optimized", "message": "string", "url": "string" }, "timing": { "estimatedAttemptDuration": null, "earliestAttemptTime": { "hour": 0, "minute": 0 }, "latestAttemptTime": { "hour": 0, "minute": 0 } }, "optimizationOrder": "first", "customProperties": { "property1": "string", "property2": "string" }, "circuitClientId": null } ], "nextPageToken": null}