GET
/api/v1/me
The key or token in use, its scopes and its shop
Scope:
any valid credential
Developers
A store-scoped REST API for your own integrations and for approved apps. Generated from the code that serves it.
Download the OpenAPI 3.1 document (openapi.json) Developer documentation
GET
/api/v1/me
The key or token in use, its scopes and its shop
Scope:
any valid credential
GET
/api/v1/products
List products, newest first
Scope:
products:read
Query parameters
GET
/api/v1/products/{id}
One product with its variants
Scope:
products:read
POST
/api/v1/products
Create a product
Scope:
products:write
· requires Idempotency-Key
JSON body
PATCH
/api/v1/products/{id}
Change a product's price, stock, status or details
Scope:
products:write
· requires Idempotency-Key
JSON body
GET
/api/v1/orders
List orders, newest first
Scope:
orders:read
Query parameters
GET
/api/v1/orders/{id}
One order with its lines
Scope:
orders:read
GET
/api/v1/orders/{id}/payment-proofs/{proof}
One payment screenshot of an order, once staff have verified the payment
Scope:
orders:read
POST
/api/v1/orders/{id}/payments
Record a payment against an order
Scope:
orders:write
· requires Idempotency-Key
JSON body
POST
/api/v1/orders/{id}/fulfillments
Mark items as sent, with courier and tracking number
Scope:
orders:write
· requires Idempotency-Key
JSON body
POST
/api/v1/orders/{id}/cancel
Cancel an order that has not been sent
Scope:
orders:write
· requires Idempotency-Key
JSON body
GET
/api/v1/customers
List customers, newest first
Scope:
customers:read
Query parameters
GET
/api/v1/customers/{id}
One customer
Scope:
customers:read
POST
/api/v1/customers
Create a customer
Scope:
customers:write
· requires Idempotency-Key
JSON body
PATCH
/api/v1/customers/{id}
Change a customer's details or status
Scope:
customers:write
· requires Idempotency-Key
JSON body
GET
/api/v1/inventory
Stock on hand, reserved and available, per variant
Scope:
inventory:read
Query parameters
GET
/api/v1/inventory/{id}
Stock for one variant
Scope:
inventory:read
POST
/api/v1/inventory/{id}/adjustments
Adjust a variant's stock, with a reason
Scope:
inventory:write
· requires Idempotency-Key
JSON body
GET
/api/v1/returns
List return requests, newest first
Scope:
returns:read
Query parameters
GET
/api/v1/returns/{id}
One return request with its lines
Scope:
returns:read
Subscribe an HTTPS endpoint in Dashboard → Integrations. Each delivery is signed with your endpoint secret; the payload carries event, payload_version, occurred_at, store and data.
Create an inbound endpoint in Dashboard → Integrations. POST JSON {"action": …, "data": {…}} to its URL with headers X-Zhopwe-Event-Id, X-Zhopwe-Timestamp (unix seconds, within 5 minutes) and X-Zhopwe-Signature: v1=hex(HMAC-SHA256(secret, timestamp + "." + body)). Each event id is processed once. Actions: inventory.set, inventory.adjust, order.payment.
Approved apps use the authorization-code flow with PKCE (S256): send the merchant to https://zhopwe.com/oauth/authorize?client_id=…&redirect_uri=…&scope=…&state=…&code_challenge=…&code_challenge_method=S256, then POST to https://zhopwe.com/oauth/token. Access tokens last one hour; refresh tokens rotate on every use.