Introduction

This page contains guide to buy airtime on hyronicwallet.com.

https://hyronicwallet.com/api/topup/

ENDPOINT -- URL

Buy Data

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://hyronicwallet.com/api/topup/', 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 ,
'phone' : buy_phone_number,
'plan_type' : network_type,
'bypass' : true,
'request-id' : referrence,
'amount' : buy_amount'
}',
CURLOPT_HTTPHEADER => array( 'Content-Type: application/json', 'Authorization: Token {{Access Code}}' ), )); $response = curl_exec($curl); curl_close($curl); echo $response;

REQUEST TYPE -- POST

Send a post request to the below endpoint.


Expected response:

{
"status" = "success",
"network" = "mtn",
"plan_type" = "GIFTING",
"request-id" = AIRTIME_123444,
"Amount" = 300,
"oldbal" = 500,
"newbal" = 200
}

REQUEST TYPE -- POST