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 unassigned 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.
pageToken?stringThe page token to continue from.
Length
1 <= length <= 255maxPageSize?numberThe maximum number of unassigned stops to return per page.
Range
1 <= value <= 20Default
20filter?The filter to apply to the list of unassigned stops.
Success
application/json- response
Success
unassignedStops*array<>The unassignedStops.
nextPageToken*|The next page token.
curl -X GET 'https://api.spoke.com/public/v0.2b/unassignedStops'Example Response
{ "unassignedStops": [ { "id": "string", "depot": "string", "address": { "address": "string", "addressLineOne": "string", "addressLineTwo": "string", "latitude": -90, "longitude": -180, "placeId": null, "placeTypes": [ "string" ] }, "barcodes": [ "string" ], "allowedDriversIdentifiers": [ "string" ], "notes": null, "packageCount": null, "weight": { "amount": 0, "unit": "kilogram" }, "orderInfo": { "products": [ "string" ], "sellerName": null, "sellerOrderId": null, "sellerWebsite": null }, "recipient": { "name": null, "email": null, "phone": null, "externalId": null }, "activity": "delivery", "trackingLink": null, "timing": { "estimatedAttemptDuration": null, "earliestAttemptTime": { "hour": 0, "minute": 0 }, "latestAttemptTime": { "hour": 0, "minute": 0 } }, "optimizationOrder": "first", "paymentOnDelivery": { "amount": 0, "currency": "string" }, "proofOfAttemptRequirements": { "enabled": null }, "customProperties": { "property1": "string", "property2": "string" }, "circuitClientId": null } ], "nextPageToken": null}