API Documentation

Complete developer guide for integrating with Blazesub VTU services. Build powerful applications with our comprehensive API.

Fetch Wallet Balance

GET

Retrieve your current account balance.

https://blazesub.com/api/user/
Example Response:
{
  "name": "Yusuf Ibrahim",
  "balance": "5,577.00",
  "status": "success"
}

Purchase Airtime

GET

Purchase airtime for any Nigerian network.

https://blazesub.com/api/airtime/
Payload:
{
  "network": "1",
  "phone": "07032529431",
  "ref": "AIRTIME123456789",
  "airtime_type": "VTU",
  "ported_number": true,
  "amount": "100"
}
Response:
{
  "status": "success",
  "Status": "successful"
}

Purchase Data

GET

Purchase data bundles for all networks.

https://blazesub.com/api/data/
Payload:
{
  "network": "1",
  "phone": "07032529431",
  "ref": "DATA12345",
  "plan": "1",
  "ported_number": true
}
Response:
{
  "status": "success",
  "Status": "successful",
  "true_response": "MTN SME 500 MB for 09130593857. Response: Dear Customer, You have successfully shared 500MB Data to 2349130593857. Your SME data balance is 30424.18GB expires 26/10/2024. Thankyou"
}

Verify Cable TV

GET

Verify cable TV subscription details.

https://blazesub.com/api/cable/verify/
Payload:
{
  "provider": "1",
  "iucnumber": "73737267672"
}
Response:
{
  "status": "success",
  "Status": "successful",
  "msg": "Ibrahim Yusuf",
  "Customer_Name": "Ibrahim Yusuf"
}

Purchase Cable TV

GET

Purchase cable TV subscriptions.

https://blazesub.com/api/cabletv/
Payload:
{
  "provider": "1",
  "iucnumber": "73737267672",
  "plan": "3",
  "ref": "4545567k4h5300",
  "subtype": "renew/change",
  "phone": "07032529431"
}
Response:
{
  "status": "success",
  "Status": "successful"
}

Verify Meter Number

GET

Verify electricity bill details.

https://blazesub.com/api/electricity/verify/
Payload:
{
  "provider": "1",
  "meternumber": "24567665767",
  "metertype": "prepaid/postpaid"
}
Response:
{
  "status": "success",
  "Status": "successful",
  "msg": "Ibrahim Yusuf",
  "Customer_Name": "Ibrahim Yusuf"
}

Purchase Electricity

GET

Pay electricity bills.

https://blazesub.com/api/electricity/
Payload:
{
  "provider": "1",
  "meternumber": "24567665767", 
  "amount": "1000",
  "metertype": "prepaid",
  "phone": "07032529431",
  "ref": "METER_2eertt567ye678"
}
Response:
{
  "status": "success",
  "Status": "successful", 
  "msg": "123456789",
  "token": "123456789"
}

Purchase Exam Pin

GET

Purchase examination pins (WAEC, NECO, etc.).

https://blazesub.com/api/exampin/
Payload:
{
  "provider": "1",
  "quantity": "2",
  "ref": "2eertt567ye678"
}
Response:
{
  "status": "success",
  "Status": "successful",
  "msg": "123456,123456,123456",
  "pin": "123456,123456,123456",
  "pins": "123456,123456,123456",
  "token": "123456,123456,123456"
}

Purchase Recharge Pin

GET

Generate and manage recharge pins.

https://blazesub.com/api/rechargepin/
Payload:
{
  "network": "1",
  "quantity": "2",
  "plan": "5",
  "businessname": "Prime Biller",
  "ref": "EPIN_34356787653"
}
Response:
{
  "status": "success",
  "Status": "successful",
  "quantity": "3",
  "pin": "123456,123456,123456",
  "serial": "123456,123456,123456",
  "load_pin": "*123*2*pin#",
  "check_balance": "*223#"
}

Purchase Data Pin

GET

Generate and manage data pins.

https://blazesub.com/api/datapin/
Payload:
{
  "network": "1",
  "quantity": "2",
  "data_plan": "5",
  "businessname": "Prime Biller",
  "ref": "34356787653535354"
}
Response:
{
  "status": "success",
  "Status": "successful",
  "quantity": "3",
  "pin": "123456,123456,123456",
  "serial": "123456,123456,123456",
  "load_pin": "*123*2*pin#",
  "check_balance": "*223#"
}

Transaction Status

GET

Check the status of a transaction using the reference.

https://blazesub.com/api/transaction/status/?reference=transaction_ref
Example Request:
https://blazesub.com/api/transaction/status/?reference=DATA_461305381726952097
Response:
{
  "status": "success",
  "msg": "Transaction Details Retrieved Successfully",
  "response": {
    "transref": "DATA_461305381726952097",
    "amount": "261",
    "status": "success",
    "oldbal": "3135.25",
    "newbal": "2874.25",
    "date": "2024-09-21 21:55:40",
    "service": "Data",
    "description": "MTN SME 1GB for 07032529431. Response: Dear Customer, You have successfully shared 1GB Data to 2347032529431. Your SME data balance is 24067.74GB expires 28/10/2024. Thankyou"
  }
}