Skip to content
Developers

Build on Unlyx.

A Dhru-compatible Reseller API, signed webhooks and per-key result callbacks. If you have built for Dhru Fusion before, you already know most of this.

14-day free trial Dhru-compatible API Your own domain
POST /api/index.php — placeimeiorder
// reply
{
  "SUCCESS": [{
    "MESSAGE": "Order received",
    "REFERENCEID": "48214"
  }]
}

// later, your callback URL receives
status=COMPLETED&reply=UNLOCKED
X-CF-Signature ✓

Pick a guide

Verify a webhook in four lines

Developer hub
php
$body = file_get_contents('php://input');
$expected = 'sha256=' . hash_hmac('sha256', $body, getenv('UNLYX_WEBHOOK_SECRET'));
if (! hash_equals($expected, $_SERVER['HTTP_X_CF_SIGNATURE'] ?? '')) { http_response_code(401); exit; }
$event = json_decode($body, true); // $_SERVER['HTTP_X_CF_EVENT'] === 'order.completed'