Skip to main content

Usage Examples

Worked examples of the flows a retailer integration needs, roughly in the order you will build them. Every request and response on these pages is the shape the API accepts and returns.

The examples use curl and the Bearer scheme. Replace <api-key> with a key from your Connect settings. Ids come back as collection/resourceId and go straight onto the base address, so the order orders/W3kJpzQm9q4LV2BdH7sNuT is fetched at https://api.spoke.com/connect/v1/orders/W3kJpzQm9q4LV2BdH7sNuT.

info

For every endpoint, field, and error code, see the API reference. For what each resource and field means, see the Models pages.