Stop Search
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.
See the Stops Search docs for more information on formatting the filter string. The following fields are filterable:
planId- The ID of the plan stop is linked to in PlanId format (e.g.plans/{planId})routeId- The ID of the route stop is linked to in RouteId format (e.g.routes/{routeId})type- The type of the stop (e.g.start,stop,end)activity- The activity performed at the stop (deliveryorpickup)notes- Notes associated with the stoporderInfo.sellerOrderId- The order ID from the sellerorderInfo.invoiceNumber- The invoice number of the orderorderInfo.sellerWebsite- The website URL of the selleraddress.address- The full address of the stopaddress.addressLineOne- The first line of the stop addressaddress.addressLineTwo- The second line of the stop addressaddress.latitude- The latitude of the stop address in decimal degreesaddress.longitude- The longitude of the stop address in decimal degreesaddress.placeId- The Google Places identifier for the addressaddress.countryCode- The ISO country code for the addresscreatedAt- The timestamp when the stop was created (ISO 8601)arrivalAt- The timestamp of the (estimated) arrival at the stop (ISO 8601)packageCount- The number of packages to be delivered or picked upestimatedTravelDuration- The estimated travel time to this stop from the previous one, in secondsestimatedTravelDistance- The estimated travel distance to this stop from the previous one, in meterstiming.estimatedAttemptDuration- The estimated time spent at the stop to perform the activity, in secondsrecipient.name- The name of the recipient at the stoprecipient.email- The email address of the recipientrecipient.phone- The phone number of the recipientrecipient.externalId- An external identifier for the recipientdeliveryInfo.state- The current state of the delivery. See DeliveryState for all supported values.deliveryInfo.attempted- Whether a delivery attempt has been madedeliveryInfo.succeeded- Whether the delivery was successfuldeliveryInfo.recipientProvidedNotes- Notes provided by the recipient for the driverdeliveryInfo.driverProvidedInternalNotes- Internal notes provided by the driverdeliveryInfo.driverProvidedRecipientNotes- Notes for the recipient provided by the driverdeliveryInfo.signeeName- The name of the person who signed for the deliverydeliveryInfo.attemptedAt- The timestamp when the delivery was attempted (ISO 8601)orderInfo.products- The list of products included in the orderorderInfo.sellerName- The name of the sellerpaymentOnDelivery.amount- The amount to be collected on delivery, in original unitsbarcodes- The list of barcodes associated with the stopallowedDrivers- The drivers allowed to be assigned to the stop in DriverId format (e.g.drivers/{driverId})packageLabel- The label applied to the package(s)customProperties.*- A custom property of the stop. Replace*with the custom property ID.
The following fields are sortable:
address.latitudeaddress.longitudecreatedAtarrivalAtpackageCountestimatedTravelDurationestimatedTravelDistancetiming.estimatedAttemptDurationdeliveryInfo.attemptedAtpaymentOnDelivery.amount
BasicAuthheader
AuthorizationBasic <token>Use the API key as the username and leave the password empty.
keyword?stringKeywords to include in the search. These will be applied to all applicable text fields using a fuzzy matching.
Length
1 <= length <= 255filter?stringThe filter to apply. This is used to include/exclude stops form the search.
Length
1 <= length <= 2048pageToken?stringThe page token.
maxPageSize?integerThe max page size.
Range
1 < value < 20Default
20sortField?stringThe sort field.
sortOrder?stringThe sort direction.
Default
"asc"Value in
"asc""desc"Success
application/json- response
Success
stops*array<|>The stops list.
nextPageToken*|The next page token.
curl -X GET 'https://api.spoke.com/public/v1/stops:search'Example Response
{ "stops": [ { "type": "stop", "stop": { "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 } } } } ], "nextPageToken": null}