Programmatic access to the ZeroStock marketplace. Search products, create orders, manage your store inventory — all via REST API.
All requests require the X-Api-Key header.
X-Api-Key: zs_your_api_key_hereAuth HeaderInclude this header in every request. Generate keys in Dashboard → API.
Browse and search products in the marketplace.
/api/v1/productsList ProductsSearch products with filters.
Query Parameters:
searchcategoryIdminPricemaxPriceformatpagelimitExample:
curl -H "X-Api-Key: zs_xxx" "https://your-domain.com/api/v1/products?search=telegram&minPrice=5&maxPrice=50&page=1&limit=20"
/api/v1/products/:idGet ProductGet product details (price, stock, description, guarantee).
Example:
curl -H "X-Api-Key: zs_xxx" "https://your-domain.com/api/v1/products/uuid-here"
Get the full category tree.
/api/v1/categoriesList CategoriesReturns nested category tree (parent → children).
Example:
curl -H "X-Api-Key: zs_xxx" "https://your-domain.com/api/v1/categories"
View store information.
/api/v1/stores/:idGet StoreStore details with products list, rating, and tier.
Example:
curl -H "X-Api-Key: zs_xxx" "https://your-domain.com/api/v1/stores/uuid-here"
Create orders and check status.
/api/v1/ordersCreate OrderPurchase a product. Payment deducted from wallet balance.
Example:
curl -X POST -H "X-Api-Key: zs_xxx" -H "Content-Type: application/json" -d '{"productId":"uuid","quantity":1}' "https://your-domain.com/api/v1/orders"/api/v1/orders/:idGet OrderOrder status + decrypted goods (if completed).
Example:
curl -H "X-Api-Key: zs_xxx" "https://your-domain.com/api/v1/orders/uuid-here"
/api/v1/balanceGet BalanceCheck wallet balance (available + held).
Example:
curl -H "X-Api-Key: zs_xxx" "https://your-domain.com/api/v1/balance"
Manage your store products, stock, and orders.
/api/v1/store/productsList My ProductsAll products in your store (with status).
Example:
curl -H "X-Api-Key: zs_xxx" "https://your-domain.com/api/v1/store/products"
/api/v1/store/productsCreate ProductAdd a new product (goes to PENDING moderation).
Example:
curl -X POST -H "X-Api-Key: zs_xxx" -H "Content-Type: application/json" -d '{"storeId":"uuid","categoryId":1,"title":{"en":"Product Name"},"priceUsdt":10}' "https://your-domain.com/api/v1/store/products"/api/v1/store/products/:idUpdate ProductUpdate title, price, format, status.
Example:
curl -X PUT -H "X-Api-Key: zs_xxx" -H "Content-Type: application/json" -d '{"priceUsdt":15,"isActive":true}' "https://your-domain.com/api/v1/store/products/uuid"/api/v1/store/products/:id/stockUpload StockUpload stock items (one per line). Items are encrypted on the server.
Example:
curl -X POST -H "X-Api-Key: zs_xxx" -H "Content-Type: application/json" -d '{"items":["account1:pass1","account2:pass2"]}' "https://your-domain.com/api/v1/store/products/uuid/stock"/api/v1/store/products/:id/stock-countGet Stock CountCheck available stock for a product.
Example:
curl -H "X-Api-Key: zs_xxx" "https://your-domain.com/api/v1/store/products/uuid/stock-count"
/api/v1/store/statsStore StatsOverview: balance, sales count, revenue, rating.
Example:
curl -H "X-Api-Key: zs_xxx" "https://your-domain.com/api/v1/store/stats"
/api/v1/store/ordersStore OrdersPaginated list of orders placed at your store.
Example:
curl -H "X-Api-Key: zs_xxx" "https://your-domain.com/api/v1/store/orders?page=1&limit=20"
All responses are JSON. List endpoints return paginated results:
{
"data": [...],
"meta": {
"total": 150,
"page": 1,
"limit": 20,
"lastPage": 8
}
}401 — Unauthorized403 — Forbidden404 — Not Found400 — Bad Request429 — Rate Limited500 — Server Error