Introduction

This page contains guide to buy datacard PIN on ruggedtelecom.com.ng.

https://ruggedtelecom.com.ng/api/data_card/

ENDPOINT -- URL

Buy DataCard

Send a post request to the below endpoint, You can use the PHP integration code below....

$curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://ruggedtelecom.com.ng/api/data_card/', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_POSTFIELDS =>'
{
'network' : 1,
'plan_type' : 4,
'name_on_card' : Ncwallet,
'quantity' : 1
}',
CURLOPT_HTTPHEADER => array( 'Content-Type: application/json', 'Authorization: Token [PIN][APIKEY]' ), )); $response = curl_exec($curl); curl_close($curl); echo $response;

REQUEST TYPE -- POST Note: Please enter your correct four-digit Transaction PIN before your API key. Your PIN should be entered first, followed by the API key together.

Send a post request to the below endpoint.


Expected response:

{
"status" = "success",
"network" = "MTN",
"quantity" = "1",
"pin" = 2541455678", for more than 1PIN, the PINs & S/N are seperated with comma.
"serial" = "5434556787_90",
"load_pin" = "*460*6*1#",
"price" = 220",
"Amount" = 220",
"oldbal" = 500",
"newbal" = 280",
"plan_type" = 1",
"plan_name" = GB",
}

REQUEST TYPE -- POST