Introduction
This store offers two programming interfaces:
- The Supplier API, compatible with Dhru Fusion and GSM Theme (API Standards V6.1). Resellers add this store as a supplier in their own website: their panel syncs the catalogue at their customer-group prices, places orders paid from their wallet here, and reads the results.
- The REST API for store owners and their integrations: list services and place or read orders as JSON, with scoped keys and idempotent order creation. Owners can also receive webhooks when orders are created or change status.
All amounts are returned in the currency of the account's wallet. Every order placed through an API is charged to the same wallet as orders placed on the website.
API keys
Create keys in your customer area: Profile → API Settings → + API Access.
- A key is 256 characters long (letters A–Z and digits 2–9). It is shown only once, right after it is created: copy it into your panel immediately.
- You can hold up to 20 active keys, each with a label (for example the name of the website that uses it). Creating a new key never stops the others.
- Each key works until you revoke it. Revoking one key does not affect your other keys.
- Each key can be limited to a list of allowed IP addresses. Leave the list empty to allow any address.
Connect your panel
Dhru Fusion
- In your Dhru Fusion admin, open Settings → API Settings → Add API.
- API type: Dhru Fusion. URL:
https://your-store.com - Username: the e-mail address of your account in this store. API access key: your key.
- Save, then Sync services and link the services you want to sell to your own products.
GSM Theme
- In your GSM Theme admin, add a new API server / supplier.
- URL:
https://your-store.com(GSM Theme calls/public/api/index.php, which is supported). - Username: your e-mail. API key: your key. Sync the service list and link the services you resell.
Supplier API (Dhru Fusion compatible)
Endpoint and authentication
Every request is an HTTP POST (form-encoded) to:
https://your-store.com/api/index.php
https://your-store.com/public/api/index.php (GSM Theme)| Field | Required | Description |
|---|---|---|
username | Yes | The e-mail address of your account in this store (not case-sensitive). |
apiaccesskey | Yes | One of your API keys (not case-sensitive). |
action | Yes | One of accountinfo, imeiservicelist, placeimeiorder, placeimeiorderbulk, placebulkorder, getimeiorder, getimeiorderbulk. |
requestformat | No | Use JSON. Responses are always JSON. |
parameters | Depends | For orders: XML (<PARAMETERS>…</PARAMETERS>, as sent by Dhru Fusion), base64-encoded JSON, or plain JSON. Bulk actions use base64 JSON. |
Responses follow API Standards V6.1: {"SUCCESS": [...]} or {"ERROR": [{"MESSAGE": "..."}]}, always with HTTP status 200 and an apiversion field.
accountinfo
Returns your balance and currency.
curl -X POST https://your-store.com/api/index.php \
-d username=you@example.com \
-d apiaccesskey=YOUR_API_KEY \
-d action=accountinfo \
-d requestformat=JSON{
"SUCCESS": [{
"message": "Your Account Info",
"AccoutInfo": { "credit": 120.5, "mail": "you@example.com", "currency": "USD" },
"AccountInfo": { "credit": "120.50 USD", "creditraw": 120.5, "mail": "you@example.com", "currency": "USD" }
}],
"apiversion": "6.1"
}AccoutInfo (historical spelling read by Dhru Fusion) and AccountInfo (read by GSM Theme) carry the same balance.
imeiservicelist
Returns every service you can order, grouped by category, with your price (your customer group's price when you have one) in your wallet currency.
{
"SUCCESS": [{
"MESSAGE": "IMEI Service List",
"LIST": {
"Apple": {
"GROUPNAME": "Apple",
"GROUPTYPE": "IMEI",
"SERVICES": {
"1042": {
"SERVICEID": 1042,
"SERVICETYPE": "IMEI",
"SERVER": 0,
"SERVICENAME": "iPhone Carrier + SIM-Lock Check",
"CREDIT": 0.09,
"TIME": "1-5 Minutes",
"INFO": "",
"QNT": 0, "MINQNT": "", "MAXQNT": ""
},
"1077": {
"SERVICEID": 1077,
"SERVICETYPE": "SERVER",
"SERVER": 1,
"SERVICENAME": "UnlockTool 1 Year",
"CREDIT": 30,
"Requires.Custom": [
{ "type": "serviceimei", "fieldname": "Username", "fieldtype": "text", "fieldoptions": "", "required": 1 }
]
}
}
}
},
"ACCOUNTINFO": { "credit": "120.50 USD", "creditraw": 120.5, "mail": "you@example.com", "currency": "USD" }
}],
"apiversion": "6.1"
}| Field | Meaning |
|---|---|
SERVICEID | Numeric id to send when ordering. Re-sync your list if a service is replaced. |
SERVICETYPE | IMEI, SERVER or REMOTE (SERVER = 0, 1 or 2 respectively). |
CREDIT | Unit price in your wallet currency. |
QNT / MINQNT / MAXQNT | QNT: 1 when the service takes a quantity, with its bounds. |
Requires.Custom | Extra fields to send with the order (name, type, options, required). |
placeimeiorder
Places one order. The price is taken from your wallet when the order is accepted.
| Parameter | Description |
|---|---|
ID | The SERVICEID from the service list. |
IMEI | Required for IMEI services (15 digits). |
QNT | Quantity, for services that take one. |
CUSTOMFIELD | Base64 JSON (or plain JSON) of the extra fields, keyed by field name, for example {"Username":"john"}. |
MODEL, NETWORK, SN… | Classic Dhru fields are accepted as their own parameters too. |
PARAMS=$(printf '%s' '{"ID":1042,"IMEI":"353170668171147"}' | base64)
curl -X POST https://your-store.com/api/index.php \
-d username=you@example.com \
-d apiaccesskey=YOUR_API_KEY \
-d action=placeimeiorder \
-d requestformat=JSON \
--data-urlencode "parameters=$PARAMS"{ "SUCCESS": [{ "MESSAGE": "Order received", "REFERENCEID": 58213 }], "apiversion": "6.1" }Keep REFERENCEID: you need it to read the result with getimeiorder.
Bulk orders
placeimeiorderbulk (Dhru Fusion) and placebulkorder (GSM Theme) take up to 100 orders per request: parameters is base64 JSON of an object whose keys are your own request ids and whose values are the order parameters.
{
"a1": { "ID": 1042, "IMEI": "353170668171147" },
"a2": { "ID": 1042, "IMEI": "353170667831881" }
}getimeiorderbulk reads up to 500 orders at once: {"r1": {"ID": 58214}, "r2": {"ID": 58215}}.
getimeiorder
Reads the state and result of an order. Send {"ID": 58213} (the REFERENCEID) as parameters.
{ "SUCCESS": [{ "STATUS": 4, "CODE": "Model: iPhone 17 Pro Max 256GB<br>Activation Status: <font color=\"green\">Activated</font>" }], "apiversion": "6.1" }Poll no more than once a minute per order; results usually arrive within the service's delivery time.
Order statuses
| STATUS | Meaning | CODE |
|---|---|---|
| 0 | New, waiting to be processed | Empty |
| 1 | In process with the supplier | Empty |
| 3 | Rejected. The charge is returned to your wallet. | The reason |
| 4 | Success | The result (code, report, credentials). May contain simple HTML such as line breaks and colours. |
Errors
| MESSAGE | What to do |
|---|---|
| Authentication Failed | Check the username (your e-mail) and the key. A revoked key returns this. |
| API access is not enabled for this store | The store has turned the API off. Contact the store. |
| Your IP address is not allowed to use this API key | Add your server IP to the key in API Settings, or empty its list. |
| Invalid Action | Check the action name. |
| Invalid service ID. Please sync the service list again. | The service was removed or replaced: re-sync. |
| IMEI is required. / <Field> is required. | Send the missing field. |
| Not enough credits | Add funds to your wallet in the store. |
| Order ID not found | The REFERENCEID does not belong to your account. |
| At most 100 orders per bulk request. | Split the bulk request. |
Rate limits and IP lists
- 120 requests per minute per account and IP, and 600 per minute per IP. Above that, requests are refused until the minute ends.
- Each key can be limited to allowed IP addresses (API Settings → edit the key).
REST API for store owners
For the store owner's own integrations (ERP, bots, automations). Keys are created by the owner in the dashboard (Integrations → API clients), with only the scopes they need.
Authentication and scopes
Authorization: Bearer cxr_live_<20 characters>.<64 characters>
Accept: application/json| Scope | Allows |
|---|---|
catalog:read | List active services with prices and fields. |
orders:read | List and read orders placed by this API client. |
orders:write | Place orders (requires an Idempotency-Key header). |
Base URL: https://api.coreserverx.com/api/reseller/v1. Limit: 120 requests per minute per API client.
List services
curl https://api.coreserverx.com/api/reseller/v1/services?per_page=50 \
-H "Authorization: Bearer $COREX_API_KEY" \
-H "Accept: application/json"Place and read orders
curl -X POST https://api.coreserverx.com/api/reseller/v1/orders \
-H "Authorization: Bearer $COREX_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: 6f1c2a90-order-0001" \
-d '{"service_id":"9b2f…","quantity":1,"custom_fields":{"username":"john"}}'Statuses: pending, processing, success, failed, refunded. result is filled on success, failure_reason on failure or refund.
Webhooks
Store owners can register HTTPS endpoints (Integrations → Webhooks) for order.created and order.status_changed. Each delivery is a JSON POST:
X-Corex-Event: order.status_changed
X-Corex-Delivery: 7d3c…
X-Corex-Timestamp: 1764321123
X-Corex-Signature: v1=<hex HMAC-SHA256>Verify every delivery: compute HMAC-SHA256 of timestamp + "." + raw body with your endpoint secret, compare it to the signature in constant time, and reject timestamps older than 5 minutes.
import crypto from 'node:crypto';
export function verify(rawBody, headers, secret) {
const ts = headers['x-corex-timestamp'];
const sig = (headers['x-corex-signature'] || '').replace(/^v1=/, '');
if (Math.abs(Date.now() / 1000 - Number(ts)) > 300) return false;
const expected = crypto.createHmac('sha256', secret).update(`${ts}.${rawBody}`).digest('hex');
return sig.length === expected.length && crypto.timingSafeEqual(Buffer.from(sig), Buffer.from(expected));
}Answer with any 2xx status within 10 seconds. Failed deliveries are retried up to 5 times with growing delays (30 s, 1 min, 2 min, 4 min…, at most 1 hour). Use X-Corex-Delivery to ignore duplicates.
Security best practices
- Keep keys on your server only (environment variables or a secrets manager). Never put a key in a browser, a mobile app or a public repository.
- Use one key per website or server, with a clear label, so you can revoke one without stopping the others.
- Restrict each key to your server's IP addresses.
- Revoke a key at once if you think it leaked, then create a new one.
- Always call the API over HTTPS and verify webhook signatures.
Changelog
Every platform release is listed in the changelog. Recent API changes:
- November 28, 2026: several labelled API keys per account, 256-character keys, per-key IP lists, per-key revocation; existing keys keep working as "Main key".
- November 28, 2026: order history carries the real service type.
- October 10, 2026: Dhru Fusion and GSM Theme compatible supplier API, customer-group prices.