EL OUATINETECHNICIEN OUATINE

EL OUATINE Gateway

A unified API layer over multiple suppliers — one request, automatic failover, normalized statuses for every order.

What is the gateway?

The gateway is a unified software layer between the EL OUATINE platform and service suppliers. Instead of handling each supplier separately, your apps talk to one interface: the same price shapes, the same order shapes, the same statuses (pending / processing / completed / failed / cancelled) no matter which supplier is behind the request.

Automatic failover

When an order is placed, the gateway picks the supplier from the workshop’s priorities and live supplier health. If the first supplier fails, the order is automatically retried with the next one — no lost orders, no manual work.

Endpoints

MethodPathAccessDescription
GET/api/v2/servicesReseller keyService list with prices
GET/api/v2/services/:id/priceReseller keySingle service price
POST/api/v2/ordersReseller keyCreate an order (with idempotency key)
GET/api/v2/orders/:idReseller keyOrder status — with live supplier status
POST/api/gateway/failover-testWorkshopDry run: which supplier would be picked? (no real order)
GET/api/gateway/healthWorkshopAdapter health: latency and state

Code examples

curl -s https://securecelleouatine.com/api/v2/services \
  -H "Authorization: Bearer <redacted>"
// Node.js — create an order through the gateway (failover built in)
const res = await fetch('https://securecelleouatine.com/api/v2/orders', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer <redacted>',
    'Content-Type': 'application/json',
    'Idempotency-Key': 'my-unique-key-123'
  },
  body: JSON.stringify({ service_id: 42, imei: '356938035643809' })
});
const { ok, data } = await res.json();

Normalized statuses

pendingprocessingcompletedfailedcancelled

Reseller API v2 uses the gateway automatically: your existing keys, with automatic failover across suppliers — no code changes needed. Reseller API v2 reference
EL OUATINE — SecureCell Tech by El Ouatine LLC