O
Sureapi
Type to search the docs...

Airtime Swap API

Convert excess mobile airtime back into wallet cash balance instantly.


Get Swap Rate & Admin Phone

Retrieve current conversion percentage rates and destination phone numbers for airtime transfer.

GET https://sureapi.ng/api/airtime-swap/details?network={network_id}

Submit Airtime Swap Request

Submit details after sending airtime to the designated admin phone number to credit your wallet.

POST https://sureapi.ng/api/airtime-swap

Request Parameters

Parameter Type Required Description
network Integer Required Network ID (1 for MTN, 2 for GLO, 3 for Airtel, 4 for 9mobile).
amount Numeric Required Amount of airtime transferred (e.g. 1000).
phone String Required Phone number airtime was transferred from.
curl -X POST "https://sureapi.ng/api/airtime-swap" \
  -H "Authorization: Token YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "network": 1,
    "amount": 2000,
    "phone": "08012345678"
  }'
<?php
$url = 'https://sureapi.ng/api/airtime-swap';
$payload = [
    'network' => 1,
    'amount' => 2000,
    'phone' => '08012345678'
];

$ch = curl_init($url);
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POST => true,
    CURLOPT_POSTFIELDS => json_encode($payload),
    CURLOPT_HTTPHEADER => [
        'Authorization: Token YOUR_API_KEY',
        'Content-Type: application/json',
    ]
]);
$response = curl_exec($ch);
curl_close($ch);
print_r(json_decode($response, true));
?>
const response = await fetch('https://sureapi.ng/api/airtime-swap', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    network: 1,
    amount: 2000,
    phone: "08012345678"
  })
});
const data = await response.json();
console.log(data);
import requests

url = "https://sureapi.ng/api/airtime-swap"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json"
}
payload = {
    "network": 1,
    "amount": 2000,
    "phone": "08012345678"
}

response = requests.post(url, json=payload, headers=headers)
print(response.json())

Response Example

{
  "status": "success",
  "message": "Airtime swap request received and processing",
  "reference": "SWAP-8723648"
}