API v1 · HTTPS · JSON
Build on your commerce data.
Use a show-once API key to read the Shopify stores your account owns. Requests are isolated by account and cached for five minutes.
# Every request
Authorization: Bearer sk_live_…
# Base URL
https://www.shopifyhub.work/api/v1
Interactive endpoint reference
Choose an endpoint to generate a ready-to-run example.
curl "https://www.shopifyhub.work/api/v1/stats?storeId=STORE_ID" -H "Authorization: Bearer sk_live_your_key"| Parameter | Endpoints | Description |
|---|---|---|
| storeId | All | Required store identifier |
| limit / cursor | Orders, products, customers | 1–100 records and opaque next cursor |
| days | Orders | 1–365 day creation window |
| query | Products, customers | Shopify search syntax |
Event webhooks
Register an HTTPS endpoint in Settings → Webhooks. Shopify Hub delivers order, product, customer, cart, campaign, and capital events. Failed deliveries retry with exponential backoff.
Verify the signature
const signed = timestamp + "." + rawBody;
const expected = hmacSha256(webhookSecret, signed);
timingSafeEqual("v1=" + expected, signature);Delivery headers
- X-Shopify-Hub-Event
- X-Shopify-Hub-Delivery
- X-Shopify-Hub-Timestamp
- X-Shopify-Hub-Signature: v1=…
Return any 2xx status within five seconds. Keep your signing secret private and reject timestamps older than five minutes.
400 · VALIDATION
Missing or invalid parameters
401 · UNAUTHORIZED
Missing, revoked, or expired key
403 · FORBIDDEN
Store is outside the key owner account