Skip to content

GETDATAPLUG API Documentation

Integrate GETDATAPLUG with your website, app or system using our REST API. Generate your API key below

GENERATE API KEY


Base URL

https://getdataplug.online/wp-json/getdataplug/v1/

Endpoint

POST https://getdataplug.online/wp-json/getdataplug/v1/place

Headers

X-API-KEY: YOUR_API_KEY
Content-Type: application/json

Request Body

{
  "network": "MTN | AT | TEL | BIG",
  "volume": "1",
  "customer_number": "0541234567",
  "externalref": "optional"
}

Success Response

{
  "status": 1,
  "message": "Order created",
  "order_id": 3124,
  "amount": "6.00",
  "network": "MTN",
  "volume": "1",
  "number": "0541234567",
  "txref": "api_45_17311234",
  "wc_status": "processing"
}

Sample Code

cURL

curl -X POST "https://getdataplug.online/wp-json/getdataplug/v1/place" \
  -H "X-API-KEY: YOUR_KEY_HERE" \
  -H "Content-Type: application/json" \
  -d '{"network":"MTN","volume":"1","customer_number":"0541234567"}'

PHP

$payload = [
  "network" => "MTN",
  "volume" => "1",
  "customer_number" => "0541234567"
];

$ch = curl_init("https://getdataplug.online/wp-json/getdataplug/v1/place");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
  "X-API-KEY: YOUR_KEY_HERE",
  "Content-Type: application/json"
]);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

echo $response;

JavaScript (Fetch)

fetch("https://getdataplug.online/wp-json/getdataplug/v1/place", {
  method: "POST",
  headers: {
    "X-API-KEY": "YOUR_KEY_HERE",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    network: "MTN",
    volume: "1",
    customer_number: "0541234567"
  })
})
.then(res => res.json())
.then(console.log);

Error Responses

{
  "status": 0,
  "message": "Invalid API key"
}
{
  "status": 0,
  "message": "Insufficient wallet balance."
}
{
  "status": 0,
  "message": "Package not available for this network/volume."
}

© 2026 LexTeck Networks — GETDATAPLUG API