Skip to main content
Skip to Content
Dispatch API

List unassigned stops

GET
/unassignedStops

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.

Query Parameters

pageToken?string

The page token to continue from.

Length1 <= length <= 255
maxPageSize?number

The maximum number of unassigned stops to return per page.

Range1 <= value <= 20
Default20
filter?

The filter to apply to the list of unassigned stops.

Response Body

Success

application/json
  1. response

Success

unassignedStops*array<>

The unassignedStops.

nextPageToken*|

The next page token.

Example Request
curl -X GET 'https://api.spoke.com/public/v1/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"      ],      "allowedDrivers": [        "string"      ],      "notes": null,      "packageCount": null,      "weight": {        "amount": 0,        "unit": "kilogram"      },      "orderInfo": {        "products": [          "string"        ],        "invoiceNumber": null,        "sellerName": null,        "sellerOrderId": null,        "sellerWebsite": null      },      "recipient": {        "name": null,        "email": null,        "phone": null,        "externalId": null      },      "activity": "delivery",      "trackingLink": null,      "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",      "paymentOnDelivery": {        "amount": 0,        "currency": "string"      },      "proofOfAttemptRequirements": {        "enabled": null      },      "customProperties": {        "property1": "string",        "property2": "string"      },      "clientId": null    }  ],  "nextPageToken": null}