Skip to main content
Skip to Content
Dispatch API

Retrieve an unassigned stop

GET
/unassignedStops/{unassignedStopId}

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 an unassigned stop

Authorization

BasicAuth
headerAuthorizationBasic <token>

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

Path Parameters

unassignedStopId*string

The unassigned stop id

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

Response Body

The requested unassigned stop

application/json
  1. response

The requested unassigned stop

id*string

The id of the unassigned stop, in the format unassignedStops/<id>.

Match^unassignedStops\/[a-zA-Z0-9---_]{1,50}$
depot*string

The depot that this unassigned stop belongs to.

Match^depots\/[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.

notes*|

Notes for the stop.

packageCount*|

The number of packages.

weight*|null
orderInfo*

The order information of the stop.

recipient*

The recipient of the stop.

activity?string
Default"delivery"
Value in"delivery""pickup"
trackingLink*|

The recipient tracking link.

timing*

The timing data of the stop.

optimizationOrder?string
Default"default"
Value in"first""last""default"
paymentOnDelivery*|null
proofOfAttemptRequirements*

The proof of attempt requirements of the stop.

customProperties*|

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

clientId*|

The associated Client ID of the Spoke Connect

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