PayonetimeDevelopers
Sign inGet API keys

Quick start

Make a test sale in a few minutes.

  1. Create an account and verify your email and phone.
  2. Create test keys under API keys. The secret key is shown once: keep it on your server as PAYONETIME_SECRET.
  3. Send a purchase with the sample below, then read the state in the reply.

Base URL: https://api.developers.payonetime.ng/v1

curl -X POST "https://api.developers.payonetime.ng/v1/airtime" \
  -H "Authorization: Bearer $PAYONETIME_SECRET" \
  -H "Content-Type: application/json" \
  -d '{"reference":"order-10001","network":"mtn","phone":"08031234567","amount":100000}'
$response = Http::withToken(env('PAYONETIME_SECRET'))
    ->timeout(60)
    ->post('https://api.developers.payonetime.ng/v1/airtime', [
        'reference' => 'order-10001',
        'network' => 'mtn',
        'phone' => '08031234567',
        'amount' => 100000,
    ]);

$data = $response->json('data');
const response = await fetch('https://api.developers.payonetime.ng/v1/airtime', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.PAYONETIME_SECRET}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    reference: 'order-10001',
    network: 'mtn',
    phone: '08031234567',
    amount: 100000,
  }),
});
const { data, error } = await response.json();
import os, requests

response = requests.post(
    "https://api.developers.payonetime.ng/v1/airtime",
    headers={"Authorization": f"Bearer {os.environ['PAYONETIME_SECRET']}"},
    json={
        "reference": "order-10001",
        "network": "mtn",
        "phone": "08031234567",
        "amount": 100000,
    },
    timeout=60,
)
data = response.json()
// Call from your server. Never put a secret key inside a mobile app.
final response = await http.post(
  Uri.parse('https://api.developers.payonetime.ng/v1/airtime'),
  headers: {'Authorization': 'Bearer $secret', 'Content-Type': 'application/json'},
  body: jsonEncode({
    'reference': 'order-10001',
    'network': 'mtn',
    'phone': '08031234567',
    'amount': 100000,
  }),
);

Authentication

Send Authorization: Bearer YOUR_KEY. A secret key can do everything and belongs only on your server. A public key can only read the catalogue. Live secret keys also require your server’s address to be on your allowed list.

Test mode

Test keys never reach a real company. Your test wallet starts with pretend money. The last four digits of the phone, meter or smartcard choose what happens:

0001 Fails at once
0002 Pending, then succeeds
0003 Pending, then fails
0004 Connection times out, then succeeds
0005 Stays pending (goes to manual review)
0009 Meter or smartcard not found (verify only)
other Succeeds at once

Pending and retries

Pending is not failed. Never send the sale again with a new reference. Wait for the webhook, or call GET /transactions/{reference}.

If your request times out, send it again with the same reference: you get the original result and are never charged twice. Money stays on hold until there is a definite answer.

Ping

GET /ping Public key allowed

Check your key.

curl -X GET "https://api.developers.payonetime.ng/v1/ping" \
  -H "Authorization: Bearer $PAYONETIME_SECRET"
$response = Http::withToken(env('PAYONETIME_SECRET'))
    ->timeout(60)
    ->get('https://api.developers.payonetime.ng/v1/ping');

$data = $response->json('data');
const response = await fetch('https://api.developers.payonetime.ng/v1/ping', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.PAYONETIME_SECRET}`,
  },
});
const { data, error } = await response.json();
import os, requests

response = requests.get(
    "https://api.developers.payonetime.ng/v1/ping",
    headers={"Authorization": f"Bearer {os.environ['PAYONETIME_SECRET']}"},
    timeout=60,
)
data = response.json()
// Call from your server. Never put a secret key inside a mobile app.
final response = await http.get(
  Uri.parse('https://api.developers.payonetime.ng/v1/ping'),
  headers: {'Authorization': 'Bearer $secret'},
);

Services

GET /services Public key allowed

Services and whether each is available.

curl -X GET "https://api.developers.payonetime.ng/v1/services" \
  -H "Authorization: Bearer $PAYONETIME_SECRET"
$response = Http::withToken(env('PAYONETIME_SECRET'))
    ->timeout(60)
    ->get('https://api.developers.payonetime.ng/v1/services');

$data = $response->json('data');
const response = await fetch('https://api.developers.payonetime.ng/v1/services', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.PAYONETIME_SECRET}`,
  },
});
const { data, error } = await response.json();
import os, requests

response = requests.get(
    "https://api.developers.payonetime.ng/v1/services",
    headers={"Authorization": f"Bearer {os.environ['PAYONETIME_SECRET']}"},
    timeout=60,
)
data = response.json()
// Call from your server. Never put a secret key inside a mobile app.
final response = await http.get(
  Uri.parse('https://api.developers.payonetime.ng/v1/services'),
  headers: {'Authorization': 'Bearer $secret'},
);

Data plans

GET /data/plans Public key allowed

Data plans and prices. With a secret key, your commission too.

networkstring · query

mtn, airtel, glo or 9mobile

typestring · query

standard or saver

curl -X GET "https://api.developers.payonetime.ng/v1/data/plans" \
  -H "Authorization: Bearer $PAYONETIME_SECRET"
$response = Http::withToken(env('PAYONETIME_SECRET'))
    ->timeout(60)
    ->get('https://api.developers.payonetime.ng/v1/data/plans');

$data = $response->json('data');
const response = await fetch('https://api.developers.payonetime.ng/v1/data/plans', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.PAYONETIME_SECRET}`,
  },
});
const { data, error } = await response.json();
import os, requests

response = requests.get(
    "https://api.developers.payonetime.ng/v1/data/plans",
    headers={"Authorization": f"Bearer {os.environ['PAYONETIME_SECRET']}"},
    timeout=60,
)
data = response.json()
// Call from your server. Never put a secret key inside a mobile app.
final response = await http.get(
  Uri.parse('https://api.developers.payonetime.ng/v1/data/plans'),
  headers: {'Authorization': 'Bearer $secret'},
);

TV packages

GET /tv/packages Public key allowed

TV packages and prices.

providerstring · query

dstv, gotv or startimes

curl -X GET "https://api.developers.payonetime.ng/v1/tv/packages" \
  -H "Authorization: Bearer $PAYONETIME_SECRET"
$response = Http::withToken(env('PAYONETIME_SECRET'))
    ->timeout(60)
    ->get('https://api.developers.payonetime.ng/v1/tv/packages');

$data = $response->json('data');
const response = await fetch('https://api.developers.payonetime.ng/v1/tv/packages', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.PAYONETIME_SECRET}`,
  },
});
const { data, error } = await response.json();
import os, requests

response = requests.get(
    "https://api.developers.payonetime.ng/v1/tv/packages",
    headers={"Authorization": f"Bearer {os.environ['PAYONETIME_SECRET']}"},
    timeout=60,
)
data = response.json()
// Call from your server. Never put a secret key inside a mobile app.
final response = await http.get(
  Uri.parse('https://api.developers.payonetime.ng/v1/tv/packages'),
  headers: {'Authorization': 'Bearer $secret'},
);

Electricity companies

GET /electricity/companies Public key allowed

Electricity companies and limits.

curl -X GET "https://api.developers.payonetime.ng/v1/electricity/companies" \
  -H "Authorization: Bearer $PAYONETIME_SECRET"
$response = Http::withToken(env('PAYONETIME_SECRET'))
    ->timeout(60)
    ->get('https://api.developers.payonetime.ng/v1/electricity/companies');

$data = $response->json('data');
const response = await fetch('https://api.developers.payonetime.ng/v1/electricity/companies', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.PAYONETIME_SECRET}`,
  },
});
const { data, error } = await response.json();
import os, requests

response = requests.get(
    "https://api.developers.payonetime.ng/v1/electricity/companies",
    headers={"Authorization": f"Bearer {os.environ['PAYONETIME_SECRET']}"},
    timeout=60,
)
data = response.json()
// Call from your server. Never put a secret key inside a mobile app.
final response = await http.get(
  Uri.parse('https://api.developers.payonetime.ng/v1/electricity/companies'),
  headers: {'Authorization': 'Bearer $secret'},
);

Verify meter

POST /verify/meter

Name on an electricity meter.

companystring · bodyRequired

Company ID.

meter_typestring · bodyRequired

Meter type. One of: prepaid, postpaid.

meterstring · bodyRequired

Meter number. In test mode the last four digits choose the outcome.

curl -X POST "https://api.developers.payonetime.ng/v1/verify/meter" \
  -H "Authorization: Bearer $PAYONETIME_SECRET" \
  -H "Content-Type: application/json" \
  -d '{"company":"ikeja","meter_type":"prepaid","meter":"45012345678"}'
$response = Http::withToken(env('PAYONETIME_SECRET'))
    ->timeout(60)
    ->post('https://api.developers.payonetime.ng/v1/verify/meter', [
        'company' => 'ikeja',
        'meter_type' => 'prepaid',
        'meter' => '45012345678',
    ]);

$data = $response->json('data');
const response = await fetch('https://api.developers.payonetime.ng/v1/verify/meter', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.PAYONETIME_SECRET}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    company: 'ikeja',
    meter_type: 'prepaid',
    meter: '45012345678',
  }),
});
const { data, error } = await response.json();
import os, requests

response = requests.post(
    "https://api.developers.payonetime.ng/v1/verify/meter",
    headers={"Authorization": f"Bearer {os.environ['PAYONETIME_SECRET']}"},
    json={
        "company": "ikeja",
        "meter_type": "prepaid",
        "meter": "45012345678",
    },
    timeout=60,
)
data = response.json()
// Call from your server. Never put a secret key inside a mobile app.
final response = await http.post(
  Uri.parse('https://api.developers.payonetime.ng/v1/verify/meter'),
  headers: {'Authorization': 'Bearer $secret', 'Content-Type': 'application/json'},
  body: jsonEncode({
    'company': 'ikeja',
    'meter_type': 'prepaid',
    'meter': '45012345678',
  }),
);

Verify smartcard

POST /verify/smartcard

Name on a TV smartcard.

providerstring · bodyRequired

TV provider.

smartcardstring · bodyRequired

Smartcard number. In test mode the last four digits choose the outcome.

curl -X POST "https://api.developers.payonetime.ng/v1/verify/smartcard" \
  -H "Authorization: Bearer $PAYONETIME_SECRET" \
  -H "Content-Type: application/json" \
  -d '{"provider":"dstv","smartcard":"7027000111"}'
$response = Http::withToken(env('PAYONETIME_SECRET'))
    ->timeout(60)
    ->post('https://api.developers.payonetime.ng/v1/verify/smartcard', [
        'provider' => 'dstv',
        'smartcard' => '7027000111',
    ]);

$data = $response->json('data');
const response = await fetch('https://api.developers.payonetime.ng/v1/verify/smartcard', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.PAYONETIME_SECRET}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    provider: 'dstv',
    smartcard: '7027000111',
  }),
});
const { data, error } = await response.json();
import os, requests

response = requests.post(
    "https://api.developers.payonetime.ng/v1/verify/smartcard",
    headers={"Authorization": f"Bearer {os.environ['PAYONETIME_SECRET']}"},
    json={
        "provider": "dstv",
        "smartcard": "7027000111",
    },
    timeout=60,
)
data = response.json()
// Call from your server. Never put a secret key inside a mobile app.
final response = await http.post(
  Uri.parse('https://api.developers.payonetime.ng/v1/verify/smartcard'),
  headers: {'Authorization': 'Bearer $secret', 'Content-Type': 'application/json'},
  body: jsonEncode({
    'provider': 'dstv',
    'smartcard': '7027000111',
  }),
);

Airtime

POST /airtime

Buy airtime.

referencestring · bodyRequired

Your own unique ID for this sale (4 to 64 letters, numbers, . _ -). Sending it again returns the first result and never charges twice.

networkstring · bodyRequired

Network. One of: mtn, airtel, glo, 9mobile.

phonestring · bodyRequired

Nigerian mobile number.

amountinteger · bodyRequired

Amount in kobo as a whole number (100000 is ₦1,000).

allow_duplicateboolean · body

Optional. Send true to buy the same number and amount again within the duplicate guard window (live only).

curl -X POST "https://api.developers.payonetime.ng/v1/airtime" \
  -H "Authorization: Bearer $PAYONETIME_SECRET" \
  -H "Content-Type: application/json" \
  -d '{"reference":"order-10001","network":"mtn","phone":"08031234567","amount":100000}'
$response = Http::withToken(env('PAYONETIME_SECRET'))
    ->timeout(60)
    ->post('https://api.developers.payonetime.ng/v1/airtime', [
        'reference' => 'order-10001',
        'network' => 'mtn',
        'phone' => '08031234567',
        'amount' => 100000,
    ]);

$data = $response->json('data');
const response = await fetch('https://api.developers.payonetime.ng/v1/airtime', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.PAYONETIME_SECRET}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    reference: 'order-10001',
    network: 'mtn',
    phone: '08031234567',
    amount: 100000,
  }),
});
const { data, error } = await response.json();
import os, requests

response = requests.post(
    "https://api.developers.payonetime.ng/v1/airtime",
    headers={"Authorization": f"Bearer {os.environ['PAYONETIME_SECRET']}"},
    json={
        "reference": "order-10001",
        "network": "mtn",
        "phone": "08031234567",
        "amount": 100000,
    },
    timeout=60,
)
data = response.json()
// Call from your server. Never put a secret key inside a mobile app.
final response = await http.post(
  Uri.parse('https://api.developers.payonetime.ng/v1/airtime'),
  headers: {'Authorization': 'Bearer $secret', 'Content-Type': 'application/json'},
  body: jsonEncode({
    'reference': 'order-10001',
    'network': 'mtn',
    'phone': '08031234567',
    'amount': 100000,
  }),
);

Data

POST /data

Buy a data plan. The plan decides whether it is Standard or Saver.

referencestring · bodyRequired

Your own unique ID for this sale (4 to 64 letters, numbers, . _ -). Sending it again returns the first result and never charges twice.

phonestring · bodyRequired

Nigerian mobile number.

plan_idstring · bodyRequired

From GET /data/plans.

allow_duplicateboolean · body

Optional. Send true to buy the same number and amount again within the duplicate guard window (live only).

curl -X POST "https://api.developers.payonetime.ng/v1/data" \
  -H "Authorization: Bearer $PAYONETIME_SECRET" \
  -H "Content-Type: application/json" \
  -d '{"reference":"order-10001","phone":"08031234567","plan_id":"dp_mtn_sv_1gb"}'
$response = Http::withToken(env('PAYONETIME_SECRET'))
    ->timeout(60)
    ->post('https://api.developers.payonetime.ng/v1/data', [
        'reference' => 'order-10001',
        'phone' => '08031234567',
        'plan_id' => 'dp_mtn_sv_1gb',
    ]);

$data = $response->json('data');
const response = await fetch('https://api.developers.payonetime.ng/v1/data', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.PAYONETIME_SECRET}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    reference: 'order-10001',
    phone: '08031234567',
    plan_id: 'dp_mtn_sv_1gb',
  }),
});
const { data, error } = await response.json();
import os, requests

response = requests.post(
    "https://api.developers.payonetime.ng/v1/data",
    headers={"Authorization": f"Bearer {os.environ['PAYONETIME_SECRET']}"},
    json={
        "reference": "order-10001",
        "phone": "08031234567",
        "plan_id": "dp_mtn_sv_1gb",
    },
    timeout=60,
)
data = response.json()
// Call from your server. Never put a secret key inside a mobile app.
final response = await http.post(
  Uri.parse('https://api.developers.payonetime.ng/v1/data'),
  headers: {'Authorization': 'Bearer $secret', 'Content-Type': 'application/json'},
  body: jsonEncode({
    'reference': 'order-10001',
    'phone': '08031234567',
    'plan_id': 'dp_mtn_sv_1gb',
  }),
);

Electricity

POST /electricity

Pay electricity. Prepaid returns a token.

referencestring · bodyRequired

Your own unique ID for this sale (4 to 64 letters, numbers, . _ -). Sending it again returns the first result and never charges twice.

companystring · bodyRequired

Company ID.

meter_typestring · bodyRequired

Meter type. One of: prepaid, postpaid.

meterstring · bodyRequired

Meter number. In test mode the last four digits choose the outcome.

amountinteger · bodyRequired

Amount in kobo as a whole number (100000 is ₦1,000).

phonestring · bodyRequired

Nigerian mobile number.

allow_duplicateboolean · body

Optional. Send true to buy the same number and amount again within the duplicate guard window (live only).

curl -X POST "https://api.developers.payonetime.ng/v1/electricity" \
  -H "Authorization: Bearer $PAYONETIME_SECRET" \
  -H "Content-Type: application/json" \
  -d '{"reference":"order-10001","company":"ikeja","meter_type":"prepaid","meter":"45012345678","amount":500000,"phone":"08031234567"}'
$response = Http::withToken(env('PAYONETIME_SECRET'))
    ->timeout(60)
    ->post('https://api.developers.payonetime.ng/v1/electricity', [
        'reference' => 'order-10001',
        'company' => 'ikeja',
        'meter_type' => 'prepaid',
        'meter' => '45012345678',
        'amount' => 500000,
        'phone' => '08031234567',
    ]);

$data = $response->json('data');
const response = await fetch('https://api.developers.payonetime.ng/v1/electricity', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.PAYONETIME_SECRET}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    reference: 'order-10001',
    company: 'ikeja',
    meter_type: 'prepaid',
    meter: '45012345678',
    amount: 500000,
    phone: '08031234567',
  }),
});
const { data, error } = await response.json();
import os, requests

response = requests.post(
    "https://api.developers.payonetime.ng/v1/electricity",
    headers={"Authorization": f"Bearer {os.environ['PAYONETIME_SECRET']}"},
    json={
        "reference": "order-10001",
        "company": "ikeja",
        "meter_type": "prepaid",
        "meter": "45012345678",
        "amount": 500000,
        "phone": "08031234567",
    },
    timeout=60,
)
data = response.json()
// Call from your server. Never put a secret key inside a mobile app.
final response = await http.post(
  Uri.parse('https://api.developers.payonetime.ng/v1/electricity'),
  headers: {'Authorization': 'Bearer $secret', 'Content-Type': 'application/json'},
  body: jsonEncode({
    'reference': 'order-10001',
    'company': 'ikeja',
    'meter_type': 'prepaid',
    'meter': '45012345678',
    'amount': 500000,
    'phone': '08031234567',
  }),
);

TV

POST /tv

Renew a TV subscription.

referencestring · bodyRequired

Your own unique ID for this sale (4 to 64 letters, numbers, . _ -). Sending it again returns the first result and never charges twice.

package_idstring · bodyRequired

From GET /tv/packages.

smartcardstring · bodyRequired

Smartcard number. In test mode the last four digits choose the outcome.

phonestring · bodyRequired

Nigerian mobile number.

allow_duplicateboolean · body

Optional. Send true to buy the same number and amount again within the duplicate guard window (live only).

curl -X POST "https://api.developers.payonetime.ng/v1/tv" \
  -H "Authorization: Bearer $PAYONETIME_SECRET" \
  -H "Content-Type: application/json" \
  -d '{"reference":"order-10001","package_id":"tv_dstv_compact","smartcard":"7027000111","phone":"08031234567"}'
$response = Http::withToken(env('PAYONETIME_SECRET'))
    ->timeout(60)
    ->post('https://api.developers.payonetime.ng/v1/tv', [
        'reference' => 'order-10001',
        'package_id' => 'tv_dstv_compact',
        'smartcard' => '7027000111',
        'phone' => '08031234567',
    ]);

$data = $response->json('data');
const response = await fetch('https://api.developers.payonetime.ng/v1/tv', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.PAYONETIME_SECRET}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    reference: 'order-10001',
    package_id: 'tv_dstv_compact',
    smartcard: '7027000111',
    phone: '08031234567',
  }),
});
const { data, error } = await response.json();
import os, requests

response = requests.post(
    "https://api.developers.payonetime.ng/v1/tv",
    headers={"Authorization": f"Bearer {os.environ['PAYONETIME_SECRET']}"},
    json={
        "reference": "order-10001",
        "package_id": "tv_dstv_compact",
        "smartcard": "7027000111",
        "phone": "08031234567",
    },
    timeout=60,
)
data = response.json()
// Call from your server. Never put a secret key inside a mobile app.
final response = await http.post(
  Uri.parse('https://api.developers.payonetime.ng/v1/tv'),
  headers: {'Authorization': 'Bearer $secret', 'Content-Type': 'application/json'},
  body: jsonEncode({
    'reference': 'order-10001',
    'package_id': 'tv_dstv_compact',
    'smartcard': '7027000111',
    'phone': '08031234567',
  }),
);

Balance

GET /balance

Main, commission and on-hold balances in kobo.

curl -X GET "https://api.developers.payonetime.ng/v1/balance" \
  -H "Authorization: Bearer $PAYONETIME_SECRET"
$response = Http::withToken(env('PAYONETIME_SECRET'))
    ->timeout(60)
    ->get('https://api.developers.payonetime.ng/v1/balance');

$data = $response->json('data');
const response = await fetch('https://api.developers.payonetime.ng/v1/balance', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.PAYONETIME_SECRET}`,
  },
});
const { data, error } = await response.json();
import os, requests

response = requests.get(
    "https://api.developers.payonetime.ng/v1/balance",
    headers={"Authorization": f"Bearer {os.environ['PAYONETIME_SECRET']}"},
    timeout=60,
)
data = response.json()
// Call from your server. Never put a secret key inside a mobile app.
final response = await http.get(
  Uri.parse('https://api.developers.payonetime.ng/v1/balance'),
  headers: {'Authorization': 'Bearer $secret'},
);

Transactions

GET /transactions

Your sales, newest first.

statestring · query

pending, successful, failed or reversed

servicestring · query

airtime, data, electricity or tv

limitstring · query

1 to 100, default 20

cursorstring · query

next_cursor from the previous page

fromstring · query

Start date, e.g. 2026-11-01

tostring · query

End date

curl -X GET "https://api.developers.payonetime.ng/v1/transactions" \
  -H "Authorization: Bearer $PAYONETIME_SECRET"
$response = Http::withToken(env('PAYONETIME_SECRET'))
    ->timeout(60)
    ->get('https://api.developers.payonetime.ng/v1/transactions');

$data = $response->json('data');
const response = await fetch('https://api.developers.payonetime.ng/v1/transactions', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.PAYONETIME_SECRET}`,
  },
});
const { data, error } = await response.json();
import os, requests

response = requests.get(
    "https://api.developers.payonetime.ng/v1/transactions",
    headers={"Authorization": f"Bearer {os.environ['PAYONETIME_SECRET']}"},
    timeout=60,
)
data = response.json()
// Call from your server. Never put a secret key inside a mobile app.
final response = await http.get(
  Uri.parse('https://api.developers.payonetime.ng/v1/transactions'),
  headers: {'Authorization': 'Bearer $secret'},
);

Transaction

GET /transactions/{reference}

The source of truth for one sale.

referencestring · pathRequired

curl -X GET "https://api.developers.payonetime.ng/v1/transactions/order-10001" \
  -H "Authorization: Bearer $PAYONETIME_SECRET"
$response = Http::withToken(env('PAYONETIME_SECRET'))
    ->timeout(60)
    ->get('https://api.developers.payonetime.ng/v1/transactions/order-10001');

$data = $response->json('data');
const response = await fetch('https://api.developers.payonetime.ng/v1/transactions/order-10001', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.PAYONETIME_SECRET}`,
  },
});
const { data, error } = await response.json();
import os, requests

response = requests.get(
    "https://api.developers.payonetime.ng/v1/transactions/order-10001",
    headers={"Authorization": f"Bearer {os.environ['PAYONETIME_SECRET']}"},
    timeout=60,
)
data = response.json()
// Call from your server. Never put a secret key inside a mobile app.
final response = await http.get(
  Uri.parse('https://api.developers.payonetime.ng/v1/transactions/order-10001'),
  headers: {'Authorization': 'Bearer $secret'},
);

Commissions

GET /commissions

Commission you have earned.

limitstring · query

1 to 100, default 20

cursorstring · query

next_cursor from the previous page

fromstring · query

Start date, e.g. 2026-11-01

tostring · query

End date

curl -X GET "https://api.developers.payonetime.ng/v1/commissions" \
  -H "Authorization: Bearer $PAYONETIME_SECRET"
$response = Http::withToken(env('PAYONETIME_SECRET'))
    ->timeout(60)
    ->get('https://api.developers.payonetime.ng/v1/commissions');

$data = $response->json('data');
const response = await fetch('https://api.developers.payonetime.ng/v1/commissions', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.PAYONETIME_SECRET}`,
  },
});
const { data, error } = await response.json();
import os, requests

response = requests.get(
    "https://api.developers.payonetime.ng/v1/commissions",
    headers={"Authorization": f"Bearer {os.environ['PAYONETIME_SECRET']}"},
    timeout=60,
)
data = response.json()
// Call from your server. Never put a secret key inside a mobile app.
final response = await http.get(
  Uri.parse('https://api.developers.payonetime.ng/v1/commissions'),
  headers: {'Authorization': 'Bearer $secret'},
);

Webhooks

Events: transaction.successful, transaction.failed, transaction.reversed. Check every message before trusting it, reject old timestamps, and handle each event ID once. Answer with any 2xx within 10 seconds; otherwise we retry for about 24 hours.

$expected = hash_hmac('sha256', $request->header('X-Payonetime-Timestamp').'.'.$request->getContent(), $signingSecret);
abort_unless(hash_equals($expected, $request->header('X-Payonetime-Signature'))
    && abs(time() - (int) $request->header('X-Payonetime-Timestamp')) < 300, 401);

Errors

Every error has a code, a message and a request_id. Quote the request ID to support.

INVALID_KEYHTTP 401

The API key is missing or not valid.

KEY_NOT_ALLOWEDHTTP 403

This needs your secret key. A public key can only read the catalogue.

IP_NOT_ALLOWEDHTTP 403

This server address is not on your allowed list.

ACCOUNT_NOT_ACTIVEHTTP 403

This account cannot use the API right now.

VALIDATION_FAILEDHTTP 422

Some fields are missing or not valid.

INVALID_PHONEHTTP 422

Enter a Nigerian mobile number, for example 08031234567.

PLAN_UNAVAILABLEHTTP 422

That plan does not exist or is not on sale.

METER_NOT_FOUNDHTTP 422

No meter was found with that number.

SMARTCARD_NOT_FOUNDHTTP 422

No smartcard was found with that number.

AMOUNT_OUT_OF_RANGEHTTP 422

The amount is outside the allowed range.

INSUFFICIENT_BALANCEHTTP 402

Your main wallet balance is too low.

REFERENCE_REUSEDHTTP 409

This reference was already used for a different purchase.

DUPLICATE_PURCHASEHTTP 409

The same number and amount were bought moments ago. If you really mean to buy again, send "allow_duplicate": true.

LIMIT_EXCEEDEDHTTP 403

This sale is above your limit.

NUMBER_BLOCKEDHTTP 403

Purchases for this number are blocked. Contact support.

SERVICE_UNAVAILABLEHTTP 503

This service is not available right now. You have not been charged.

NOT_FOUNDHTTP 404

Not found.

METHOD_NOT_ALLOWEDHTTP 405

That method is not allowed here.

RATE_LIMITEDHTTP 429

Too many requests. Slow down and try again shortly.

PROCESSING_ERRORHTTP 500

Something went wrong on our side. If you were making a purchase, check its reference before trying again.

Rate limits

Per key: 120 reads and 60 purchases or checks a minute. Watch X-RateLimit-Remaining; after a 429, wait for Retry-After seconds.

Go-live checklist

  1. Your business verification is approved.
  2. Live keys are stored only on your server.
  3. Your server’s address is on the allowed list.
  4. Your code treats pending as unknown and never re-sends with a new reference.
  5. Your webhook checks the signature and ignores repeated event IDs.
  6. You have set a low balance warning.