EL OUATINE — Reseller API
واجهة 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
| Method | Path | Description |
|---|---|---|
| GET | /api/reseller/services | Active services with reseller prices (USD) |
| POST | /api/reseller/orders | Place an order — charged to your wallet |
| GET | /api/reseller/orders | List your orders (paginated, newest first) |
| GET | /api/reseller/orders/:id | Order status (your orders only) |
| GET | /api/reseller/balance | Your 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
| HTTP | error | Meaning |
|---|---|---|
| 400 | service_id_invalid / service_on_request | Bad request or service has no fixed price |
| 401 | api_key_required / api_key_invalid | Missing, wrong or revoked key |
| 402 | insufficient_balance | Top up your wallet and retry |
| 404 | service_not_found / order_not_found | Unknown id (orders are scoped to your key) |
| 409 | service_off | Service temporarily unavailable |
| 429 | rate_limited | Slow 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.