Set your spending limits
curl --request PUT \
--url https://api.onepanel.ng/api/v1/airtime-cash/settings \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"max_per_transfer": 5000,
"max_daily_per_sim": 20000,
"max_daily_total": 200000,
"session_expiry_days": 30
}
'import requests
url = "https://api.onepanel.ng/api/v1/airtime-cash/settings"
payload = {
"max_per_transfer": 5000,
"max_daily_per_sim": 20000,
"max_daily_total": 200000,
"session_expiry_days": 30
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
max_per_transfer: 5000,
max_daily_per_sim: 20000,
max_daily_total: 200000,
session_expiry_days: 30
})
};
fetch('https://api.onepanel.ng/api/v1/airtime-cash/settings', 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/settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'max_per_transfer' => 5000,
'max_daily_per_sim' => 20000,
'max_daily_total' => 200000,
'session_expiry_days' => 30
]),
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/settings"
payload := strings.NewReader("{\n \"max_per_transfer\": 5000,\n \"max_daily_per_sim\": 20000,\n \"max_daily_total\": 200000,\n \"session_expiry_days\": 30\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.onepanel.ng/api/v1/airtime-cash/settings")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"max_per_transfer\": 5000,\n \"max_daily_per_sim\": 20000,\n \"max_daily_total\": 200000,\n \"session_expiry_days\": 30\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.onepanel.ng/api/v1/airtime-cash/settings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"max_per_transfer\": 5000,\n \"max_daily_per_sim\": 20000,\n \"max_daily_total\": 200000,\n \"session_expiry_days\": 30\n}"
response = http.request(request)
puts response.read_body{
"max_per_transfer": 5000,
"max_daily_per_sim": 20000,
"max_daily_total": 200000,
"session_expiry_days": 30,
"limits": {
"min_transfer": 50,
"max_per_transfer": 50000,
"max_daily_per_sim": 100000,
"max_daily_total": 1000000,
"max_session_expiry_days": 90
}
}{
"message": "<string>"
}Airtime Cash
Set your spending limits
Limits can also be set on the Airtime Cash page of the dashboard. Daily limits reset at midnight Nigerian time.
PUT
/
airtime-cash
/
settings
Set your spending limits
curl --request PUT \
--url https://api.onepanel.ng/api/v1/airtime-cash/settings \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"max_per_transfer": 5000,
"max_daily_per_sim": 20000,
"max_daily_total": 200000,
"session_expiry_days": 30
}
'import requests
url = "https://api.onepanel.ng/api/v1/airtime-cash/settings"
payload = {
"max_per_transfer": 5000,
"max_daily_per_sim": 20000,
"max_daily_total": 200000,
"session_expiry_days": 30
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
max_per_transfer: 5000,
max_daily_per_sim: 20000,
max_daily_total: 200000,
session_expiry_days: 30
})
};
fetch('https://api.onepanel.ng/api/v1/airtime-cash/settings', 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/settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'max_per_transfer' => 5000,
'max_daily_per_sim' => 20000,
'max_daily_total' => 200000,
'session_expiry_days' => 30
]),
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/settings"
payload := strings.NewReader("{\n \"max_per_transfer\": 5000,\n \"max_daily_per_sim\": 20000,\n \"max_daily_total\": 200000,\n \"session_expiry_days\": 30\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.onepanel.ng/api/v1/airtime-cash/settings")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"max_per_transfer\": 5000,\n \"max_daily_per_sim\": 20000,\n \"max_daily_total\": 200000,\n \"session_expiry_days\": 30\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.onepanel.ng/api/v1/airtime-cash/settings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"max_per_transfer\": 5000,\n \"max_daily_per_sim\": 20000,\n \"max_daily_total\": 200000,\n \"session_expiry_days\": 30\n}"
response = http.request(request)
puts response.read_body{
"max_per_transfer": 5000,
"max_daily_per_sim": 20000,
"max_daily_total": 200000,
"session_expiry_days": 30,
"limits": {
"min_transfer": 50,
"max_per_transfer": 50000,
"max_daily_per_sim": 100000,
"max_daily_total": 1000000,
"max_session_expiry_days": 90
}
}{
"message": "<string>"
}Body
application/json

