Connect your storefront to Restock
This guide covers what’s available today for external integrations: authenticating, reading live stock levels, creating outbound orders with a single JSON request, and receiving webhooks when stock changes or those orders move through the warehouse.
Base URLs
Section titled “Base URLs”| Environment | Base URL |
|---|---|
| Production | https://api.wms.restock.tech |
| Staging | https://dev.api.wms.revota.id |
Build and test against staging, then switch to production when you go live. Examples in these docs use production — e.g. https://api.wms.restock.tech/auth/login. Requests and responses are JSON unless noted otherwise.
Two credential types
Section titled “Two credential types”- Bearer token from Log in — used by Get stock.
x-access-key/x-secret-keypair provisioned by Restock — used by every/api/web/*order endpoint, and the secret signs webhooks.
Response envelope
Section titled “Response envelope”Every endpoint returns the same wrapper. Check success before reading data.
{ "success": true, "data": { /* endpoint payload */ }, "message": null, "code": 200}Error responses use the same envelope with success: false — see Errors.