Reference
Reseller API
Every store answers on its own domain at /api/index.php. Requests are form posts; replies are JSON.
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 ✓
Authentication
| Field | What to send |
|---|---|
| username | The API username shown with the key |
| apiaccesskey | The key itself (keep it on your server) |
| action | One of the actions below |
| requestformat | JSON |
| parameters | Base64 of a JSON object with the action's fields (flat form fields also work) |
Actions
| Action | Does |
|---|---|
| accountinfo | Balance, currency, email |
| imeiservicelist | IMEI services with your prices and required fields |
| serverservicelist | Server services |
| fileservicelist | File services |
| placeimeiorder | Place an order (ID = service id, IMEI and any extra fields) |
| getimeiorder | One order's status and result (ID = order reference) |
| imeiorderlist | Recent orders |
Order statuses
| Status | Meaning |
|---|---|
| PENDING / PROCESSING | Accepted and on its way |
| COMPLETED | Done — the result is in the reply |
| REJECTED | The supplier refused; the store may refund your wallet |
| CANCELLED / REFUNDED | Closed and refunded |
Keep exploring