Connect API

List orders

GET
/orders

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.

Authorization

headerAuthorizationBearer <token>

Pass the API key directly as the token.

Query Parameters

pageToken?string

The page token to continue from.

Length1 <= length <= 255
maxPageSize?integer

The maximum number of orders to return. Defaults to 50 and is capped at 50.

Range1 <= value <= 50
Default50
filter?

Filters narrowing the orders returned.

Response Body

A page of the retailer's orders, newest first.

application/json
  1. 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.

Example Request
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?