API Documentation

Standard Integration Guide (Babspay Legacy Compatible)

RESELLER API v1.0

Welcome to the BabsPay developer documentation. Use this guide to integrate our services.

AUTHENTICATION

Include your API Token in every request header or as a POST parameter.

Header: Authorization: Token YOUR_API_KEY
POST: api_key=YOUR_API_KEY

PURCHASE DATA BUNDLE

Endpoint: https://babspay.com.ng/api/v1/data

Request Parameters

FieldValue
network1=MTN, 2=Airtel, 3=Glo, 4=9mobile
plan_idData Plan ID (e.g. mtn-1gb-sme)
phone11 Digit Mobile Number
refUnique Request Reference

Success Response

{
  "status": "success",
  "Status": "successful",
  "msg": "Transaction Successful",
  "trans_id": "BT12345678",
  "balance": "5000.00"
}
                

PURCHASE AIRTIME

Endpoint: https://babspay.com.ng/api/v1/airtime

FieldValue
network1, 2, 3, or 4
amountAmount to recharge
phoneRecipient Number

UTILITY BILLS & TV

Follow the same JSON structure for electricity and cable TV endpoints.

Refer to the full technical documentation for more advanced integrations.

SEND BULK SMS

Endpoint: https://babspay.com.ng/api/send_sms

Request Parameters

FieldValue
senderYour registered and approved Sender ID
recipientsComma-separated 11-digit phone numbers
messageText message content
route(Optional) dnd or non-dnd

PURCHASE DATA CARD (DATA PIN)

Endpoint: https://babspay.com.ng/api/purchase_datapin

Request Parameters

FieldValue
planData Card Plan ID (obtain from /api/datapin_plans)
quantityNumber of pins to purchase
businessnameBusiness name to print on pins

PURCHASE RECHARGE PIN (EPIN)

Endpoint: https://babspay.com.ng/api/purchase_rechargepin

Request Parameters

FieldValue
network1=MTN, 2=Airtel, 3=Glo, 4=9mobile
amountDenomination amount (e.g. 100, 200, 500)
quantityNumber of pins to print
businessnameBusiness name to print on pins

PURCHASE EXAM PIN

Endpoint: https://babspay.com.ng/api/purchase_exam

Request Parameters

FieldValue
providerExam type (e.g. waec, neco)
quantityNumber of exam pins to purchase

🪪 IDENTITY VERIFICATION

Verify NIN & BVN and generate official government slips. Powered by Aspget API. Service fees are deducted from your wallet balance.

VERIFY NIN (NIN LOOKUP)

Endpoint: https://babspay.com.ng/api/verify_nin   POST

Returns verified NIN holder details (name, DOB, address, phone). A lookup fee of ₦150.00 is charged per request.

Request Parameters

FieldTypeDescription
ninstring *11-digit National Identification Number

Success Response

{
  "status": "success",
  "msg": "NIN verified successfully",
  "data": {
    "ref": "NIN4F2A1B...",
    "data": {
      "nin": "12345678901",
      "firstname": "John",
      "middlename": "Doe",
      "surname": "Smith",
      "gender": "m",
      "birthdate": "1990-01-15",
      "phone": "08012345678",
      "address": "12 Main St, Lagos",
      "state": "Lagos",
      "lga": "Ikeja"
    }
  }
}

GENERATE NIN SLIP

Endpoint: https://babspay.com.ng/api/nin_slip   POST

Generate an official downloadable/printable NIN slip. Each type has a different fee:

Slip TypeValueFeeDescription
infoInformation₦150.00Basic NIN data only
regularRegular Slip₦500.00Standard printable slip
standardStandard Slip₦1,500.00Enhanced slip with more details
premiumPremium Slip₦3,000.00Full official government slip

Request Parameters

FieldTypeDescription
ninstring *11-digit NIN
slip_typestring *One of: info, regular, standard, premium

Success Response

{
  "status": "success",
  "msg": "NIN Slip generated successfully",
  "data": {
    "ref": "NSL4F2A1B...",
    "slip_type": "regular",
    "slip_url": "https://api.aspget.com/slips/xxx.pdf",
    "data": { ... }
  }
}

VERIFY BVN

Endpoint: https://babspay.com.ng/api/verify_bvn   POST

Returns verified BVN holder details. A fee of ₦150.00 is charged per request.

Request Parameters

FieldTypeDescription
bvnstring *11-digit Bank Verification Number

Success Response

{
  "status": "success",
  "msg": "BVN verified successfully",
  "data": {
    "ref": "BVN9A3D2C...",
    "data": {
      "bvn": "22345678901",
      "firstName": "John",
      "lastName": "Smith",
      "dateOfBirth": "01-Jan-1990",
      "phoneNumber": "08012345678"
    }
  }
}

🏆 BETTING WALLET FUNDING

Validate player accounts and fund betting wallets programmatically. Powered by MerryBills. A service charge is added to each funding request.

LIST BETTING PLATFORMS

Endpoint: https://babspay.com.ng/api/betting_platforms   GET

Returns all active betting platforms with their service_id, minimum and maximum funding amounts.

Response Sample

{
  "status": "success",
  "data": [
    { "id": 1, "name": "SportyBet", "service_id": "sportybet", "min_amount": 100, "max_amount": 500000 },
    { "id": 2, "name": "Bet9ja",    "service_id": "bet9ja",    "min_amount": 100, "max_amount": 500000 }
  ]
}

VALIDATE BETTING ACCOUNT

Endpoint: https://babspay.com.ng/api/validate_betting_id   POST

Verify a player's account ID exists on the selected platform before funding. No fee charged for this lookup.

Request Parameters

FieldTypeDescription
platformstring *Platform service_id (e.g. sportybet, bet9ja)
customer_idstring *Player's account ID / User ID on that platform

FUND BETTING WALLET

Endpoint: https://babspay.com.ng/api/fund_betting   POST

Fund a player's betting wallet. The funding amount plus a service charge are deducted from your wallet.

Request Parameters

FieldTypeDescription
platformstring *Platform service_id
customer_idstring *Player's account ID
amountnumber *Amount to fund in Naira (₦)
phonestringPlayer's phone number (optional, defaults to your account phone)
referencestringUnique transaction reference (auto-generated if omitted)

Success Response

{
  "status": "success",
  "msg": "Betting wallet funded successfully",
  "data": {
    "ref": "BETAPI4F2A..."
  }
}

⚡ INTERACTIVE API PLAYGROUND

Test the B2B endpoints directly from your browser. Input your parameters below to execute real-time VTU calls.

// Console Idle. Ready to test.

Technical Support: support@babspay.com.ng