Getting started with the Zoey API

Connect to your store's REST API in three steps - create an OAuth 2.0 client, get a token, make your first call.

Every Zoey store has its own REST API. You can read and update orders, quotes, invoices, customers, accounts, products, inventory and more, with the same permissions model as the Zoey Admin.

Base URL

All endpoints live under your store's domain:

https://{your-store-domain}/api/rest

For example https://yourstore.zoeysite.com/api/rest/sales2/orders. Use the domain your admins use to sign in (your custom domain or your zoeysite.com address). On any endpoint page here, enter your domain once under Base URL and the examples and Try It use it.

Connect in three steps

  1. Create an OAuth 2.0 client in the Zoey Admin: Settings > APIs, then Manage on Zoey REST API - oAuth 2, then Add New. See Authentication for which grant types to pick.
  2. Get credentials: either an access token from the client's Token URL, or use the client's secret directly as an API key.
  3. Make your first call: check the connection with the Health Check, then call any endpoint with the Authorization: Bearer <token> or Api-Key: <secret> header.
curl https://yourstore.zoeysite.com/api/rest/sales2/orders?limit=5 \
  -H "Accept: application/json" \
  -H "Api-Key: YOUR_CLIENT_SECRET"

Next