VTU API
Get API keys
Airtime VTU API

Payment

POST https://api.paybeta.ng/v2/airtime/purchase

The available service are:

mtn_vtu

glo_vtu

9mobile_vtu

airtel_vtu

Send your secret key in the P-API-KEY header. Keep it on your server, never in an app or browser.

Body (JSON)

  • service string Required
    Example: mtn_vtu
  • phoneNumber string Required
    Example: 08123333394
  • amount integer Required
    Example: 200
  • reference string Required
    Example: {{$timestamp}}

Responses

  • 200Success
Request
curl --request POST \
  --url 'https://api.paybeta.ng/v2/airtime/purchase' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --header 'P-API-KEY: YOUR_SECRET_KEY' \
  --data '{
    "service": "mtn_vtu",
    "phoneNumber": "08123333394",
    "amount": 200,
    "reference": "{{$timestamp}}"
}'
Response
{
    "status": "successful",
    "message": "Transaction successful",
    "data": {
        "reference": "1714742875",
        "amount": 2000,
        "chargedAmount": 1950,
        "commission": 50,
        "biller": "MTN AIRTIME",
        "customerId": "08068539221",
        "previousBalance": 499971725,
        "currentBalance": 499969775,
        "transactionDate": "2024-05-03 14:27:57",
        "transactionId": "1714742877672593466202420"
    }
}