Skip to content
Reference

Webhooks

Add an endpoint in Admin → Webhooks, pick the events, and Unlyx posts signed JSON to it.

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 ✓

Order events

EventSent when
order.placedA new order is created
order.completedThe result is in
order.rejectedThe supplier refused it
order.heldFraud checks put it on hold
order.cancelledIt was cancelled
order.refundedIt was refunded to the wallet

Headers

HeaderValue
X-Cf-EventThe event name
X-Cf-DeliveryDelivery id (use it to ignore repeats)
X-Cf-Signaturesha256= HMAC of the raw body with your endpoint secret

Delivery

Retries

30 s, 2 min, 10 min, 1 h, 6 h, 24 h — then marked failed.

Delivery log

Status code and error for every attempt, in the admin.

Test button

Send a test.ping to check your endpoint.

Public hosts only

Endpoints on private networks are refused.

Keep exploring