On resource types
The four resources the API returns, and which of them you can write.
Every response from the Connect API is a JSON object, and every request that
carries a body must send it as JSON with the Content-Type: application/json
header.
The API exposes four resource types:
| Resource | What it is | Where |
|---|---|---|
Order | A package, or set of packages, you are sending to a recipient through a courier. Everything else in the API exists to describe or act on an order. | Read and write, /orders |
Courier | A courier your retailer account is connected to, and that you can submit orders to. | Read-only, /couriers |
PickupLocation | One of your own locations a courier can collect from, referenced by an order's deliveryInstructions.handOffInfo.pickupLocationId. | Read-only, /pickupLocations |
OrderShippingLabels | A short-lived signed link to an order's printable labels, rendered as a single PDF. | Read-only, /orders/{id}/shippingLabels |
Couriers and pickup locations are managed in the Spoke Connect app, not through this API. The API reads them so you can reference them by id when you create and submit orders.
What every field on these resources means is documented on the Models pages.
Was this page helpful?