Reseller API
Buy any product automatically from your own website, app or bot. Orders are paid from your Zylux wallet deposit balance (bonus balance can't be used via API).
1. Get your key
Go to Profile → API access and tap Create API key. Copy it — it's shown only once. You can regenerate (old key stops instantly) or revoke it any time. Top up your wallet first; minimum top-up Rs 100.
2. Authenticate
Base URL:
https://zyluxstore.com/api/public/v1Send your key in the X-API-Key header on every request:
curl https://zyluxstore.com/api/public/v1/me \
-H "X-API-Key: zx_live_xxxxxxxx"/meYour UID, name and wallet balances (PKR).
{ "uid": 1042, "name": "Ali", "balance_pkr": 1500, "bonus_pkr": 12, "currency": "PKR" }/productsAll available products with your PKR price and stock.
{ "rate_usd_pkr": 285, "count": 40, "products": [ { "service_id": "gpt-plus-1m", "name": "ChatGPT Plus 1 Month", "price_pkr": 1300, "discount_percent": 0, "in_stock": true, "stock": 12 } ] }/products/{service_id}One product.
{ "service_id": "gpt-plus-1m", "price_pkr": 1300, "in_stock": true }/orderBuy a product. The price is deducted from your deposit balance immediately; refunded automatically if the supplier fails.
{ "service_id": "gpt-plus-1m", "quantity": 1, "max_price_pkr": 1400 }{ "order_id": "uuid", "status": "completed", "delivery": "...", "charged_pkr": 1300, "balance_pkr": 200 }/order/{order_id}Status and delivery of one of your orders (includes full supplier response once completed).
{ "order_id": "uuid", "status": "completed", "delivery": "...", "supplier_response": "..." }/orders?limit=50Your latest orders (max 100).
{ "count": 2, "orders": [ ... ] }/transactionsYour last 100 wallet transactions (deposits, purchases, refunds).
{ "transactions": [ { "amount": -1300, "kind": "order", "note": "API: ChatGPT Plus" } ] }Example: place an order
curl -X POST https://zyluxstore.com/api/public/v1/order \
-H "X-API-Key: zx_live_xxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"service_id":"gpt-plus-1m","quantity":1,"max_price_pkr":1400}'Tip: send max_price_pkr so the order is refused if the price changed (exchange rate moves).
Errors
Errors return { "error": "message", "status": 402 }.
400Invalid body or parameter401Missing, invalid or revoked API key402Insufficient balance403Account blocked or order stopped by safety checks404Unknown endpoint, product or order409Sold out, or price above max_price_pkr429Rate limit hit502Supplier failed (balance refunded)Limits & rules
- 60 requests per minute per key; 10 orders per 10 minutes.
- Max quantity 20 per order. Prices are calculated by our server — you're always charged the live price shown in /products.
- Keep your key secret. Never put it in browser or app code that others can see. If leaked, regenerate it immediately.
- Abuse, scraping or fraud leads to key revocation and account block. Every call is logged.
- We're not responsible for activation links that stop working after 24 hours — see Terms.
