Connect API

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:

ResourceWhat it isWhere
OrderA 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
CourierA courier your retailer account is connected to, and that you can submit orders to.Read-only, /couriers
PickupLocationOne of your own locations a courier can collect from, referenced by an order's deliveryInstructions.handOffInfo.pickupLocationId.Read-only, /pickupLocations
OrderShippingLabelsA 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?