Start a session on a user's MTN line
curl --request POST \
--url https://api.onepanel.ng/api/v1/airtime-cash/sessions \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"msisdn": "08031234567",
"consent": true,
"consent_ref": "consent-2026-11-09-8841"
}
'import requests
url = "https://api.onepanel.ng/api/v1/airtime-cash/sessions"
payload = {
"msisdn": "08031234567",
"consent": True,
"consent_ref": "consent-2026-11-09-8841"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({msisdn: '08031234567', consent: true, consent_ref: 'consent-2026-11-09-8841'})
};
fetch('https://api.onepanel.ng/api/v1/airtime-cash/sessions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.onepanel.ng/api/v1/airtime-cash/sessions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'msisdn' => '08031234567',
'consent' => true,
'consent_ref' => 'consent-2026-11-09-8841'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.onepanel.ng/api/v1/airtime-cash/sessions"
payload := strings.NewReader("{\n \"msisdn\": \"08031234567\",\n \"consent\": true,\n \"consent_ref\": \"consent-2026-11-09-8841\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.onepanel.ng/api/v1/airtime-cash/sessions")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"msisdn\": \"08031234567\",\n \"consent\": true,\n \"consent_ref\": \"consent-2026-11-09-8841\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.onepanel.ng/api/v1/airtime-cash/sessions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"msisdn\": \"08031234567\",\n \"consent\": true,\n \"consent_ref\": \"consent-2026-11-09-8841\"\n}"
response = http.request(request)
puts response.read_body{
"session_id": "3f1c2a9e-5b1d-4f0e-9a58-1d2b7c6e8a10",
"status": "pending",
"msisdn": "2348031234567",
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Airtime Cash
Start a session on a user's MTN line
Sends an OTP by SMS to the user’s MTN number. Only call this after the user has agreed to let your business move airtime from their line. Verify the code with /airtime-cash/sessions/{id}/verify.
POST
/
airtime-cash
/
sessions
Start a session on a user's MTN line
curl --request POST \
--url https://api.onepanel.ng/api/v1/airtime-cash/sessions \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"msisdn": "08031234567",
"consent": true,
"consent_ref": "consent-2026-11-09-8841"
}
'import requests
url = "https://api.onepanel.ng/api/v1/airtime-cash/sessions"
payload = {
"msisdn": "08031234567",
"consent": True,
"consent_ref": "consent-2026-11-09-8841"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({msisdn: '08031234567', consent: true, consent_ref: 'consent-2026-11-09-8841'})
};
fetch('https://api.onepanel.ng/api/v1/airtime-cash/sessions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.onepanel.ng/api/v1/airtime-cash/sessions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'msisdn' => '08031234567',
'consent' => true,
'consent_ref' => 'consent-2026-11-09-8841'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.onepanel.ng/api/v1/airtime-cash/sessions"
payload := strings.NewReader("{\n \"msisdn\": \"08031234567\",\n \"consent\": true,\n \"consent_ref\": \"consent-2026-11-09-8841\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.onepanel.ng/api/v1/airtime-cash/sessions")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"msisdn\": \"08031234567\",\n \"consent\": true,\n \"consent_ref\": \"consent-2026-11-09-8841\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.onepanel.ng/api/v1/airtime-cash/sessions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"msisdn\": \"08031234567\",\n \"consent\": true,\n \"consent_ref\": \"consent-2026-11-09-8841\"\n}"
response = http.request(request)
puts response.read_body{
"session_id": "3f1c2a9e-5b1d-4f0e-9a58-1d2b7c6e8a10",
"status": "pending",
"msisdn": "2348031234567",
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Body
application/json

