O
Telecomabode
Type to search the docs...

Airtime to Cash

Convert supported network airtime to cash using the Airtime to Cash API.


Request Airtime-to-Cash OTP

Request an OTP for the sender's airtime-to-cash transaction.

POST https://telecomabode.com.ng/airtime2cash/otp

Request Body

Parameter Type Required Description
network String Yes Mobile network. Supported examples: MTN, Glo, 9mobile, Airtel.
senderNumber String Yes The phone number sending the airtime.
curl -X POST "https://telecomabode.com.ng/airtime2cash/otp" \
      -H "Authorization: Token YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "network": "Airtel",
        "senderNumber": "09000000000"
      }'
<?php
$url = 'https://telecomabode.com.ng/airtime2cash/otp';

$payload = [
    'network' => 'Airtel',
    'senderNumber' => '09000000000',
];

$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://telecomabode.com.ng/airtime2cash/otp', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    network: 'Airtel',
    senderNumber: '09000000000'
  })
});

const data = await response.json();
console.log(data);
import requests

url = "https://telecomabode.com.ng/airtime2cash/otp"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json"
}
payload = {
    "network": "Airtel",
    "senderNumber": "09000000000"
}

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

Verify Airtime-to-Cash OTP

Verify the OTP received for the airtime-to-cash transaction.

POST https://telecomabode.com.ng/airtime2cash/verify

Request Body

Parameter Type Required Description
network String Yes Mobile network.
senderNumber String Yes The phone number sending the airtime.
otp String Yes The OTP received by the sender.
curl -X POST "https://telecomabode.com.ng/airtime2cash/verify" \
      -H "Authorization: Token YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "network": "Airtel",
        "senderNumber": "09000000000",
        "otp": "YOUR_OTP"
      }'
<?php
$url = 'https://telecomabode.com.ng/airtime2cash/verify';

$payload = [
    'network' => 'Airtel',
    'senderNumber' => '09000000000',
    'otp' => 'YOUR_OTP',
];

$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://telecomabode.com.ng/airtime2cash/verify', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    network: 'Airtel',
    senderNumber: '09000000000',
    otp: 'YOUR_OTP'
  })
});

const data = await response.json();
console.log(data);
import requests

url = "https://telecomabode.com.ng/airtime2cash/verify"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json"
}
payload = {
    "network": "Airtel",
    "senderNumber": "09000000000",
    "otp": "YOUR_OTP"
}

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

Swap Airtime

Submit the verified airtime-to-cash transaction for swapping.

POST https://telecomabode.com.ng/swap-airtime

Request Body

Parameter Type Required Description
network String Yes Mobile network.
amount String Yes Amount of airtime to swap.
quantity String Yes Quantity for the swap transaction.
swapMethod String Yes Swap method. Example: auto.
senderNumber String Yes The phone number sending the airtime.
otp String Yes Verified transaction OTP.
transferPin String Yes Network transfer PIN.
pin String Yes PIN required by the airtime-to-cash service.
curl -X POST "https://telecomabode.com.ng/swap-airtime" \
      -H "Authorization: Token YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "network": "Airtel",
        "amount": "1000",
        "quantity": "1",
        "swapMethod": "auto",
        "senderNumber": "09000000000",
        "otp": "YOUR_OTP",
        "transferPin": "YOUR_TRANSFER_PIN",
        "pin": "YOUR_PIN"
      }'
<?php
$url = 'https://telecomabode.com.ng/swap-airtime';

$payload = [
    'network' => 'Airtel',
    'amount' => '1000',
    'quantity' => '1',
    'swapMethod' => 'auto',
    'senderNumber' => '09000000000',
    'otp' => 'YOUR_OTP',
    'transferPin' => 'YOUR_TRANSFER_PIN',
    'pin' => 'YOUR_PIN',
];

$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://telecomabode.com.ng/swap-airtime', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    network: 'Airtel',
    amount: '1000',
    quantity: '1',
    swapMethod: 'auto',
    senderNumber: '09000000000',
    otp: 'YOUR_OTP',
    transferPin: 'YOUR_TRANSFER_PIN',
    pin: 'YOUR_PIN'
  })
});

const data = await response.json();
console.log(data);
import requests

url = "https://telecomabode.com.ng/swap-airtime"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json"
}
payload = {
    "network": "Airtel",
    "amount": "1000",
    "quantity": "1",
    "swapMethod": "auto",
    "senderNumber": "09000000000",
    "otp": "YOUR_OTP",
    "transferPin": "YOUR_TRANSFER_PIN",
    "pin": "YOUR_PIN"
}

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