VTU API
Get API keys
Data Bundle API

Payment

POST https://api.paybeta.ng/v2/data-bundle/purchase
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_data
  • amount integer Required
    Example: 100
  • phoneNumber string Required
    Example: 08138539550
  • code string Required
    Example: MT1
  • reference string Required
    Example: {{$timestamp}}

Responses

  • 200Success
Request
curl --request POST \
  --url 'https://api.paybeta.ng/v2/data-bundle/purchase' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --header 'P-API-KEY: YOUR_SECRET_KEY' \
  --data '{
    "service": "mtn_data",
    "amount": 100,
    "phoneNumber": "08138539550",
    "code": "MT1",
    "reference": "{{$timestamp}}"
}'
Response
{
    "status": "successful",
    "message": "Transaction successful",
    "data": {
        "reference": "1715553597",
        "amount": 100,
        "chargedAmount": 97.5,
        "commission": 2.5,
        "biller": "MTN 100MB 1 Day",
        "customerId": "08060000000",
        "token": null,
        "unit": null,
        "bonusToken": null,
        "transactionDate": "2024-05-12 23:39:58",
        "transactionId": "17155535989070949852"
    }
}