Zylux Store logoZylux Store Instant digital delivery

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/v1

Send 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"
GET/me

Your UID, name and wallet balances (PKR).

Response
{ "uid": 1042, "name": "Ali", "balance_pkr": 1500, "bonus_pkr": 12, "currency": "PKR" }
GET/products

All available products with your PKR price and stock.

Response
{ "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 } ] }
GET/products/{service_id}

One product.

Response
{ "service_id": "gpt-plus-1m", "price_pkr": 1300, "in_stock": true }
POST/order

Buy a product. The price is deducted from your deposit balance immediately; refunded automatically if the supplier fails.

Body (JSON)
{ "service_id": "gpt-plus-1m", "quantity": 1, "max_price_pkr": 1400 }
Response
{ "order_id": "uuid", "status": "completed", "delivery": "...", "charged_pkr": 1300, "balance_pkr": 200 }
GET/order/{order_id}

Status and delivery of one of your orders (includes full supplier response once completed).

Response
{ "order_id": "uuid", "status": "completed", "delivery": "...", "supplier_response": "..." }
GET/orders?limit=50

Your latest orders (max 100).

Response
{ "count": 2, "orders": [ ... ] }
GET/transactions

Your last 100 wallet transactions (deposits, purchases, refunds).

Response
{ "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 parameter
401Missing, invalid or revoked API key
402Insufficient balance
403Account blocked or order stopped by safety checks
404Unknown endpoint, product or order
409Sold out, or price above max_price_pkr
429Rate limit hit
502Supplier failed (balance refunded)

Limits & rules