Developers

Developer documentation

A versioned REST API under /api/v1 to read and change your shop's products, orders, customers, stock and returns, authenticated with a per-shop API key or an app's access token.

Authentication

Create a key at Dashboard → Integrations, choose its scopes, and send it as a bearer token: Authorization: Bearer <key>. The key is shown once; the platform stores only its hash. Requests are limited per key per minute.

Changing data

A request that changes data needs a write scope and an Idempotency-Key header, so a retried request is applied only once. Writes follow the same rules as the dashboard and are recorded in the shop's activity log.

Base address

https://zhopwe.com/api/v1

Your first request
curl https://zhopwe.com/api/v1/products?per_page=5 \
  -H "Authorization: Bearer <key>"

curl -X POST https://zhopwe.com/api/v1/products \
  -H "Authorization: Bearer <key>" \
  -H "Idempotency-Key: <uuid>" \
  -H "Content-Type: application/json" \
  -d '{"title": "…", "price": "1500.00"}'

Scopes

  • products:read Read

    Read products

    Read your products, their variants, prices and stock levels.

  • products:write Changes data

    Create and change products

    Create products and change their price, stock, status and details.

  • orders:read Read

    Read orders

    Read your orders and their lines, including the customer's name, email and phone.

  • orders:write Changes data

    Record payments, fulfil and cancel orders

    Record payments (including part-payments) against orders, mark orders sent, and cancel unsent orders.

  • customers:read Read

    Read customers

    Read your customers: name, email, phone, marketing consent and order totals.

  • customers:write Changes data

    Create and change customers

    Create customer records and change their details or disable them.

  • inventory:read Read

    Read stock levels

    Read stock on hand, reserved and available for every variant.

  • inventory:write Changes data

    Change stock levels

    Change stock levels.

  • returns:read Read

    Read returns

    Read return requests and their lines.

Endpoints

Endpoints
Method Path What it returns Scope
GET /api/v1/me The key or token in use, its scopes and its shop None
GET /api/v1/products List products, newest first Query parameters: page, per_page, status=draft|active|archived products:read
GET /api/v1/products/{id} One product with its variants products:read
POST /api/v1/products Create a product products:write
PATCH /api/v1/products/{id} Change a product's price, stock, status or details products:write
GET /api/v1/orders List orders, newest first Query parameters: page, per_page, payment_status=pending|authorized|paid|partially_refunded|refunded|failed|canceled|expired orders:read
GET /api/v1/orders/{id} One order with its lines orders:read
GET /api/v1/orders/{id}/payment-proofs/{proof} One payment screenshot of an order, once staff have verified the payment orders:read
POST /api/v1/orders/{id}/payments Record a payment against an order orders:write
POST /api/v1/orders/{id}/fulfillments Mark items as sent, with courier and tracking number orders:write
POST /api/v1/orders/{id}/cancel Cancel an order that has not been sent orders:write
GET /api/v1/customers List customers, newest first Query parameters: page, per_page, email customers:read
GET /api/v1/customers/{id} One customer customers:read
POST /api/v1/customers Create a customer customers:write
PATCH /api/v1/customers/{id} Change a customer's details or status customers:write
GET /api/v1/inventory Stock on hand, reserved and available, per variant Query parameters: page, per_page inventory:read
GET /api/v1/inventory/{id} Stock for one variant inventory:read
POST /api/v1/inventory/{id}/adjustments Adjust a variant's stock, with a reason inventory:write
GET /api/v1/returns List return requests, newest first Query parameters: page, per_page, status returns:read
GET /api/v1/returns/{id} One return request with its lines returns:read
GET /api/v1/openapi.json The OpenAPI document for this API None
POST /api/v1/inbound/{integration} Receive a signed event from your own system None

List endpoints take page and per_page and return data plus a meta block with the total. per_page ≤ 100.

Errors are JSON with error, message and request_id. 401 = missing or revoked key, 403 = key lacks the scope, 404 = not in this shop, 429 = rate limit.

Start with a free trial

14 days, no card needed. Cancel from your billing page before the trial ends and nothing is owed.