EL OUATINE — Reseller API

New: Reseller API v2 — Bearer auth, per-key scopes, key management from your account, and signed order-status webhooks. Read the v2 docs →

واجهة API للموزعين: بمفتاحك الخاص تقدر تجيب قائمة الخدمات بأسعارها، تطلب خدمة لزبونك مباشرة، وتتابع حالة الطلب — والرصيد يتخصم من محفظة حسابك في الموقع. عَبِّي رصيدك من صفحة حسابك كيما العادة (RedotPay).

Authentication

Every request must carry your API key in the X-API-Key header. Without a valid key the API answers 401. Keep your key secret — it is shown once when created in the workshop panel.

curl -H "X-API-Key: YOUR_KEY" https://securecelleouatine.com/api/reseller/balance

Endpoints

MethodPathDescription
GET/api/reseller/servicesActive services with reseller prices (USD)
POST/api/reseller/ordersPlace an order — charged to your wallet
GET/api/reseller/ordersList your orders (paginated, newest first)
GET/api/reseller/orders/:idOrder status (your orders only)
GET/api/reseller/balanceYour wallet balance

List services

curl -H "X-API-Key: YOUR_KEY" \
  https://securecelleouatine.com/api/reseller/services
{
  "ok": true,
  "services": [
    { "id": 873, "name": "iPhone Network Unlock", "category": "Apple",
      "price": 12.5, "currency": "USD", "delivery_time": "1-24h" }
  ]
}

Place an order

Send service_id and the imei. The price is deducted from your wallet instantly. A service that is temporarily unavailable answers 409 service_off; an empty wallet answers 402 insufficient_balance.

curl -X POST -H "X-API-Key: YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"service_id": 873, "imei": "356938035643809"}' \
  https://securecelleouatine.com/api/reseller/orders
{
  "ok": true,
  "order": { "id": 1024, "service_name": "iPhone Network Unlock",
             "price": 12.5, "currency": "USD", "status": "paid", ... }
}

List orders

Query params: limit (default 50, max 200), offset (default 0), status (optional filter, e.g. paid).

curl -H "X-API-Key: " \
  "https://securecelleouatine.com/api/reseller/orders?limit=20&status=paid"
{
  "ok": true, "total": 132, "limit": 20, "offset": 0,
  "orders": [ { "id": 1024, "service_name": "iPhone Network Unlock",
                "price": 12.5, "currency": "USD", "status": "paid", ... } ]
}

Check an order

curl -H "X-API-Key: YOUR_KEY" \
  https://securecelleouatine.com/api/reseller/orders/1024

Check balance

curl -H "X-API-Key: YOUR_KEY" \
  https://securecelleouatine.com/api/reseller/balance
{ "ok": true, "balance": 87.5, "currency": "USD" }

Errors

HTTPerrorMeaning
400service_id_invalid / service_on_requestBad request or service has no fixed price
401api_key_required / api_key_invalidMissing, wrong or revoked key
402insufficient_balanceTop up your wallet and retry
404service_not_found / order_not_foundUnknown id (orders are scoped to your key)
409service_offService temporarily unavailable
429rate_limitedSlow down — 120 requests/minute max

Wallet top-up

Top up from your site account page as usual (RedotPay, USD). The API uses the same wallet — no separate payment setup needed.