VTU API
Get API keys
Cable TV API

Payment

POST https://api.paybeta.ng/v2/cable/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: dstv
  • smartCardNumber string Required
    Example: 806***82
  • amount integer Required
    Example: 200
  • packageCode string Required
    Example: COMPLE36
  • customerName string Required
    Example: JOHN DOE
  • reference string Required
    Example: {{$timestamp}}

Responses

  • 200Success
Request
curl --request POST \
  --url 'https://api.paybeta.ng/v2/cable/purchase' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --header 'P-API-KEY: YOUR_SECRET_KEY' \
  --data '{
    "service": "dstv",
    "smartCardNumber": "806***82",
    "amount": 200,
    "packageCode": "COMPLE36",
    "customerName": "JOHN DOE",
    "reference": "{{$timestamp}}"
}'
Response
{
    "status": "successful",
    "message": "Transaction successful",
    "data": {
        "reference": "1715458530",
        "amount": 201,
        "chargedAmount": 197.99,
        "commission": 3.02,
        "biller": "DStv Compact Plus",
        "customerId": "8216167618",
        "token": null,
        "unit": null,
        "bonusToken": null,
        "transactionDate": "2024-05-11 21:15:31",
        "transactionId": "17154585319693132432"
    }
}