List orders
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.
List the authenticated retailer's orders, newest first. Supports cursor pagination and an exact-match filter on packageInfo.externalId.
header
AuthorizationBearer <token>Pass the API key directly as the token.
pageToken?stringThe page token to continue from.
Length
1 <= length <= 255maxPageSize?integerThe maximum number of orders to return. Defaults to 50 and is capped at 50.
Range
1 <= value <= 50Default
50filter?Filters narrowing the orders returned.
A page of the retailer's orders, newest first.
application/json- response
A page of the retailer's orders, newest first.
orders*array<>The page of orders.
nextPageToken*|Opaque token for the next page. null on the last page.
curl -X GET 'https://api.spoke.com/connect/v1/orders'Example Response
{ "orders": [ { "id": "string", "createdAt": 0, "recipient": { "name": "string", "email": "string", "phone": "string", "externalId": "string" }, "packageInfo": { "products": [ "string" ], "packageCount": 0, "weight": { "amount": 0, "unit": "kilogram" }, "packageLoadAmount": 0, "externalId": "string" }, "address": { "address": "string", "addressLineOne": "string", "addressLineTwo": "string", "latitude": 0, "longitude": 0, "placeId": "string", "placeTypes": [ "string" ] }, "deliveryInstructions": { "notes": "string", "expectedDeliveryDate": { "day": 1, "month": 1, "year": 2000 }, "proofOfAttemptRequirements": { "enabled": true }, "handOffInfo": { "handOffType": "ship_to_courier", "pickupLocationId": "string" } }, "courier": "string", "submitted": true, "submittedAt": 0, "progress": { "trackingLink": "string", "eta": { "status": "available", "value": { "estimatedArrivalAt": 0, "estimatedEarliestArrivalAt": 0, "estimatedLatestArrivalAt": 0 } }, "attempted": true, "attemptedAt": 0, "state": "delivered_to_recipient", "routeStartDate": { "day": 1, "month": 1, "year": 2000 }, "routeStarted": true, "succeeded": true, "photoUrls": [ "string" ], "signatureUrl": "string", "signeeName": "string", "driverProvidedRecipientNotes": "string" }, "readOnly": true, "source": "retailer", "barcodes": [ "string" ] } ], "nextPageToken": null}Was this page helpful?