Compatibility

Dhru API Compatibility

Use the Dhru-compatible endpoint for IMEI service lists, order placement, account info, and order status checks.

Modified at Apr 28, 2026, 05:38 AM UTC

Cek Ceir includes a Dhru-compatible form endpoint for legacy IMEI integrations.

Base endpoints:

POST /api/dhruPOST /api/dhru/index.phpPOST /api/index.php

/api/dhru/index.php and /api/index.php redirect to /api/dhru.

Authentication

Dhru requests use form fields instead of JSON headers.

FieldTypeRequiredDescription
usernameform stringYesShort security ID or username. Aliases: api_username, user.
apiaccesskeyform stringYesAPI key secret. Aliases: key, api_key, apikey, accesskey.

The API key is built as:

<username>.<apiaccesskey>

If either field already contains the full dotted key, the API accepts it.

The Dhru endpoint creates orders with the API key owner account.

Request Format

POST/api/dhruorder.create

Accepts Dhru-compatible form requests and returns account, service, order, or status data.

Send application/x-www-form-urlencoded or multipart/form-data.

Request

Loading cURL...

Request Fields

FieldTypeRequiredDescription
usernameform stringYesShort security ID or username.
apiaccesskeyform stringYesAPI key secret.
requestformatform stringNoUse JSON for JSON output or XML for XML output.
actionform stringYesDhru action to execute.
parametersform JSON or XML stringNoAction-specific parameters for order placement.
orderidform string or numberNoOrder ID for status checks.

requestformat=XML returns XML. Any other value returns JSON.

Supported Actions

ActionAlias acceptedPurpose
accountinfononeReturn balance, email, currency, and username.
imeiservicelistservicelistReturn eligible IMEI services.
placeimeiorderplaceorderPlace one IMEI order.
placeimeiorderbulkplaceorderbulkPlace multiple IMEI orders.
orderstatusgetimeiorder, getserverorderReturn one order status.
orderstatusbulkgetimeiorderbulk, getserverorderbulkReturn multiple order statuses.

Place One Order

parameters may be JSON or a simple XML parameter block. The service ID can be a numeric service ID or a service code.

POST/api/dhruorder.create

Places one IMEI order through the Dhru-compatible action placeimeiorder.

Request

Loading cURL...

Request Fields

FieldTypeRequiredDescription
usernameform stringYesShort security ID or username.
apiaccesskeyform stringYesAPI key secret.
requestformatform stringNoUse JSON for JSON output.
actionform stringYesUse placeimeiorder or alias placeorder.
parameters.IDstring or numberYesNumeric service ID or service code.
parameters.IMEIstringYesIMEI value sent to the selected service.

Success Response

{  "SUCCESS": [    {      "MESSAGE": "Order Placed Successfully",      "REFERENCEID": "321"    }  ],  "apiversion": "8.2"}

Response Fields

FieldTypeRequiredDescription
SUCCESSarrayYesSuccess envelope in Dhru format.
SUCCESS[].MESSAGEstringYesHuman-readable success message.
SUCCESS[].REFERENCEIDstringYesOrder ID in Dhru response format.
apiversionstringYesDhru compatibility API version.

Check Order Status

POST/api/dhruorder.create

Returns one order status through the Dhru-compatible action orderstatus.

Request

Loading cURL...

Request Fields

FieldTypeRequiredDescription
usernameform stringYesShort security ID or username.
apiaccesskeyform stringYesAPI key secret.
requestformatform stringNoUse JSON for JSON output.
actionform stringYesUse orderstatus, getimeiorder, or getserverorder.
orderidform string or numberYesOrder ID returned as REFERENCEID.

Success Response

{  "SUCCESS": [    {      "STATUS": "4",      "CODE": "completed",      "REFERENCEID": "321",      "MESSAGE": "Order completed"    }  ],  "apiversion": "8.2"}

Response Fields

FieldTypeRequiredDescription
SUCCESSarrayYesSuccess envelope in Dhru format.
SUCCESS[].STATUSstringYesDhru status code.
SUCCESS[].CODEstringNoAPI-readable status label when available.
SUCCESS[].REFERENCEIDstringYesOrder ID in Dhru response format.
SUCCESS[].MESSAGEstringNoStatus message when available.
apiversionstringYesDhru compatibility API version.

Dhru status codes:

CodeMeaning
0New or pending.
1Processing.
3Failed, cancelled, or rejected.
4Success, completed, or partial.

Errors are returned with HTTP 200 in Dhru format:

{  "ERROR": [    {      "MESSAGE": "Invalid request",      "FULL_DESCRIPTION": "payload_required"    }  ],  "apiversion": "8.2"}