Developers

Connect your shop to anything that speaks HTTP

Resellers order through your API. Your shop orders from your suppliers. A page of your own can answer an order by printing a line. All of it is plain HTTP you can read in a minute.

  • No SDK to install
  • Dhru Fusion compatible
  • Any language
order.sh
curl -X POST https://your-shop.com/api/index.php \
  -d "username=client@example.com" \
  -d "apiaccesskey=ABC-DEF-GHI-JKL-MNO-PQR-STU-VWX" \
  -d "requestformat=JSON" \
  -d "action=placeimeiorder" \
  --data-urlencode "parameters=<PARAMETERS><ID>42</ID>
      <IMEI>352099001761481</IMEI></PARAMETERS>"
Your shop · Order #5874Waiting

Order #5874 placed by your reseller’s site

The APIs

Three ways to connect. No SDK.

Each one is a request or two you could send from a terminal.

One URL, four actions

Every shop answers on the same endpoint in the Dhru Fusion format the trade already uses. A reseller who buys from someone else today changes a URL and a key — nothing else.

  • Account balance, service list, place order, order status
  • Each key belongs to one customer and one IP address
  • Prices are the ones that customer’s group pays
POST /api/index.php
curl -X POST https://your-shop.com/api/index.php \
  -d "username=client@example.com" \
  -d "apiaccesskey=ABC-DEF-GHI-JKL-MNO-PQR-STU-VWX" \
  -d "requestformat=JSON" \
  -d "action=placeimeiorder" \
  --data-urlencode "parameters=<PARAMETERS><ID>42</ID>
      <IMEI>352099001761481</IMEI></PARAMETERS>"
Response200
{
  "SUCCESS": [
    { "MESSAGE": "Order received", "REFERENCEID": 5874 }
  ]
}
Works withDhru FusionDhru Fusion ProGSM ThemeGSM X ToolOther scriptsSimple link

Under the hood

The parts you don’t have to build

An integration is the easy half. This is the half that usually goes wrong.

Keys and addresses

A key is issued per customer from the admin panel and ties itself to the first server that uses it. Clear the address or issue a new key in a click.

The right price for each client

The service list a reseller pulls carries their own group’s prices, so their site marks up from what they really pay.

Catalogue sync

New services, price changes, fields and delivery times are pulled from each supplier every time its cron runs.

Refunds on rejection

When a supplier turns an order down, the customer’s balance is restored and a statement line is written. Nobody has to notice.

Told as it happens

A new API connection, a supplier error, a finished order — each reaches Telegram, WhatsApp or email on its own.

A log of every call

What was sent to a supplier and what it answered is kept in the API log, so a failed order explains itself.

Start here

Begin with something that works

Pick the one that matches what you are connecting.

Dhru Fusion module

Running Fusion? This module is the ready-made way to connect it to a GSM X Tool shop.

Download .zip

API reference

The endpoint, the four actions, the order parameters and the shape every error takes.

Read the reference

Try it on the demo

See where keys are issued, suppliers are added and every API call is logged — before you buy.

Open the live demo

FAQ

Before you write a line

The Dhru Fusion one: a POST with username, apiaccesskey, requestformat and action, answered in JSON under SUCCESS or ERROR. Software written for a Dhru Fusion supplier connects without changes.

Ready to connect something?

Every licence includes the reseller API, every supplier standard and the Dhru Fusion module.