Abba Soja Data API
REST API · v1

Every Abba Soja Data service, one clean JSON API.

Airtime, data bundles, eSIM credit and accounts, cable TV, electricity and exam pins — buy them, look up balances and read your transaction history from any server or script.

Base URL https://abbasojadata.com.ng/api/v1

Getting started

Two things are needed before your first call: the base URL and your API key. The key alone authorises every purchase — no transaction PIN is sent over the wire.

1 Point at the base URL

Every request starts with the base URL below. Append the endpoint path to it.

https://abbasojadata.com.ng/api/v1/wallet

2 Send your API key

Copy the key from Profile → Settings → API details and send it on every request as a Bearer token. Keep it server-side; never ship it in browser code.

curl -X GET "https://abbasojadata.com.ng/api/v1/account" \
  -H "Authorization: Bearer YOUR_API_KEY"

3 Read the envelope

Every response carries the same three fields. status is success, pending or error, and the HTTP status line matches it: 200, 202 or 4xx/5xx.

{
  "status": "success",
  "message": "Wallet retrieved.",
  "data": {
    "balance": 5890,
    "currency": "NGN"
  }
}

4 Make purchases idempotent

Purchases accept an optional request_id — 32 lowercase hex characters. Reuse the same value when you retry and the API will not charge you twice. Omit it and a fresh one is generated and returned in data.request_id.

{
  "request_id": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
  "network": 1,
  "phone": "08012345678",
  "amount": 500
}

5 Stay inside the rate limit

Each key may make 120 requests per minute. Every response carries X-RateLimit-Limit and X-RateLimit-Remaining; a 429 also sends Retry-After with the seconds to wait.

Errors & status codes

Errors always use the same envelope, with an empty data object and a human-readable message explaining what to fix.

200 OK The request succeeded.
202 Accepted Reserved and processing; poll the transaction endpoint for the final state.
400 Bad Request Validation failed. The message explains which field to fix.
401 Unauthorized The API key is missing, malformed or unknown.
403 Forbidden The account is restricted or the request is not allowed.
404 Not Found Unknown endpoint, transaction reference or catalog resource.
405 Method Not Allowed Wrong HTTP verb for that path; the Allow header lists the right ones.
429 Too Many Requests Rate limit hit. Retry after the seconds given in Retry-After.
500 Internal Server Error Unexpected failure. Check History before retrying a payment.
503 Service Unavailable The API is switched off (sitesettings.apiStatus) or cannot reach the database right now.
{
  "status": "error",
  "message": "Choose a valid data plan.",
  "data": {}
}

Reference

GET / Public

List endpoints

Returns every endpoint with its method and whether it requires an API key. No authentication needed.

Request URL https://abbasojadata.com.ng/api/v1/

Example request

curl -X GET "https://abbasojadata.com.ng/api/v1/"

Responses

200 Success
{
  "status": "success",
  "message": "NetPlug REST API v1.",
  "data": {
    "version": "v1",
    "endpoints": [
      {
        "method": "GET",
        "path": "/health",
        "auth": false
      },
      {
        "method": "GET",
        "path": "/wallet",
        "auth": true
      },
      {
        "method": "POST",
        "path": "/airtime",
        "auth": true
      }
    ]
  }
}
GET /health Public

Health check

Liveness probe for uptime monitoring. Public and cheap: no database access.

Request URL https://abbasojadata.com.ng/api/v1/health

Example request

curl -X GET "https://abbasojadata.com.ng/api/v1/health"

Responses

200 Success
{
  "status": "success",
  "message": "Service is up.",
  "data": {
    "version": "v1",
    "server_time": "2026-01-15T09:30:00+01:00"
  }
}

Account & wallet

GET /account API key

Get account

Profile of the account behind the API key, including the live wallet balance and account tier.

Request URL https://abbasojadata.com.ng/api/v1/account

Example request

curl -X GET "https://abbasojadata.com.ng/api/v1/account" \
  -H "Authorization: Bearer YOUR_API_KEY"

Responses

200 Success
{
  "status": "success",
  "message": "Account retrieved.",
  "data": {
    "id": 41,
    "name": "Ada Obi",
    "email": "ada@example.com",
    "phone": "08012345678",
    "type": 2,
    "type_label": "Agent",
    "referral_code": "678AD",
    "wallet": 5890
  }
}
401 Invalid key
{
  "status": "error",
  "message": "Invalid API key.",
  "data": {}
}
GET /wallet API key

Get wallet balance

Current balance of the wallet funding every purchase.

Request URL https://abbasojadata.com.ng/api/v1/wallet

Example request

curl -X GET "https://abbasojadata.com.ng/api/v1/wallet" \
  -H "Authorization: Bearer YOUR_API_KEY"

Responses

200 Success
{
  "status": "success",
  "message": "Wallet retrieved.",
  "data": {
    "balance": 5890,
    "currency": "NGN"
  }
}
401 Missing key
{
  "status": "error",
  "message": "Missing API key. Send Authorization: Bearer <your API key>.",
  "data": {}
}
GET /transactions API key

List transactions

Paginated history for the account, newest first.

Request URL https://abbasojadata.com.ng/api/v1/transactions?status=success&limit=2

Parameters

page
integer query

Page number, starting at 1.

limit
integer query

Items per page, 1–50. Default 15.

status
string query

success, pending, failed or reversed (or 0–3).

Example request

curl -X GET "https://abbasojadata.com.ng/api/v1/transactions?status=success&limit=2" \
  -H "Authorization: Bearer YOUR_API_KEY"

Responses

200 Success
{
  "status": "success",
  "message": "Transactions retrieved.",
  "data": {
    "items": [
      {
        "reference": "AT7F2C9A1B4D8E3F5C0A6B2D4E8F1A3C5B",
        "service": "Airtime",
        "description": "MTN VTU airtime of ₦500 for 08012345678",
        "amount": 475,
        "status": "success",
        "status_code": 0,
        "date": "2026-01-15T09:30:00+01:00"
      },
      {
        "reference": "DT1A2B3C4D5E6F708192A3B4C5D6E7F80",
        "service": "Data",
        "description": "MTN SME 1GB data for 08012345678",
        "amount": 800,
        "status": "pending",
        "status_code": 1,
        "date": "2026-01-15T08:12:44+01:00"
      }
    ],
    "pagination": {
      "page": 1,
      "per_page": 2,
      "pages": 7,
      "total": 13
    }
  }
}
400 Bad filter
{
  "status": "error",
  "message": "Query parameter \"status\" must be success, pending, failed or reversed.",
  "data": {}
}
GET /transactions/{reference} API key

Get a transaction

Look up one transaction by its reference. Poll this endpoint while a purchase is pending.

Request URL https://abbasojadata.com.ng/api/v1/transactions/AT7F2C9A1B4D8E3F5C0A6B2D4E8F1A3C5B

Parameters

reference required
string path

Transaction reference returned by a purchase.

Example request

curl -X GET "https://abbasojadata.com.ng/api/v1/transactions/AT7F2C9A1B4D8E3F5C0A6B2D4E8F1A3C5B" \
  -H "Authorization: Bearer YOUR_API_KEY"

Responses

200 Success
{
  "status": "success",
  "message": "Transaction retrieved.",
  "data": {
    "reference": "AT7F2C9A1B4D8E3F5C0A6B2D4E8F1A3C5B",
    "service": "Airtime",
    "description": "MTN VTU airtime of ₦500 for 08012345678",
    "amount": 475,
    "status": "success",
    "status_code": 0,
    "date": "2026-01-15T09:30:00+01:00"
  }
}
404 Unknown reference
{
  "status": "error",
  "message": "No transaction found with that reference.",
  "data": {}
}

Catalog

GET /catalog API key

Get the full catalog

Networks, airtime limits, eSIM providers, cable and disco lists, exam types and service fees in one call.

Request URL https://abbasojadata.com.ng/api/v1/catalog

Example request

curl -X GET "https://abbasojadata.com.ng/api/v1/catalog" \
  -H "Authorization: Bearer YOUR_API_KEY"

Responses

200 Success
{
  "status": "success",
  "message": "Catalog retrieved.",
  "data": {
    "networks": [
      {
        "id": 1,
        "name": "MTN",
        "logo": "mtn_logo.png"
      },
      {
        "id": 2,
        "name": "GLO",
        "logo": "glo_logo.png"
      }
    ],
    "airtime": {
      "min": 50,
      "max": 5000,
      "types": [
        "VTU",
        "Share And Sell"
      ]
    },
    "esim": [
      {
        "slug": "smile",
        "name": "Smile Voice",
        "destination": "phone",
        "has_plans": true,
        "credit_enabled": true,
        "account_price": 2500
      }
    ],
    "esim_credit_fee": 100,
    "cable": {
      "providers": [
        {
          "id": 1,
          "name": "DStv"
        }
      ]
    },
    "electricity": {
      "fee": 100,
      "providers": [
        {
          "id": 3,
          "name": "Ikeja Electric"
        }
      ],
      "minimum": 500
    },
    "exams": [
      {
        "id": 5,
        "name": "WAEC result checker",
        "price": 3500,
        "max_quantity": 5
      }
    ]
  }
}
GET /catalog/{resource} API key

Get one catalog resource

Fetch a single catalog slice. Use /catalog/data-plans, /catalog/esim, /catalog/cable, /catalog/electricity, /catalog/exams or /catalog/networks.

Request URL https://abbasojadata.com.ng/api/v1/catalog/data-plans?network=1

Parameters

resource required
string path

networks, data-plans, esim, cable, electricity or exams.

network
integer query

Required for data-plans: network id from /catalog/networks.

type
string query

Optional data type filter, e.g. SME or CORPORATE.

slug
string query

Optional eSIM provider slug for /catalog/esim, e.g. smile.

provider
integer query

Optional cable provider id for /catalog/cable.

Example request

curl -X GET "https://abbasojadata.com.ng/api/v1/catalog/data-plans?network=1" \
  -H "Authorization: Bearer YOUR_API_KEY"

Responses

200 Success
{
  "status": "success",
  "message": "Data plans retrieved.",
  "data": {
    "network": 1,
    "type": null,
    "items": [
      {
        "id": 1234,
        "name": "MTN SME 1GB",
        "type": "SME",
        "days": 30,
        "network": 1,
        "price": 800
      },
      {
        "id": 1235,
        "name": "MTN SME 2GB",
        "type": "SME",
        "days": 30,
        "network": 1,
        "price": 1500
      }
    ]
  }
}
400 Missing network
{
  "status": "error",
  "message": "Query parameter \"network\" is required for data plans.",
  "data": {}
}
404 Unknown resource
{
  "status": "error",
  "message": "Unknown catalog resource.",
  "data": {}
}

Purchases

POST /airtime API key

Buy airtime

VTU airtime for any Nigerian mobile number at your tier price.

Request URL https://abbasojadata.com.ng/api/v1/airtime

Parameters

network required
integer body

Network id from /catalog/networks (1 MTN, 2 GLO, 3 9mobile, 4 Airtel).

phone required
string body

Recipient number; 08012345678 or +2348012345678.

amount required
integer body

Airtime face value in naira, within your configured limits.

type
string body

VTU (default) or Share And Sell.

request_id
string body

32 lowercase hex characters. Reuse the same value to replay a request safely; one is generated when omitted.

Example request

curl -X POST "https://abbasojadata.com.ng/api/v1/airtime" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "network": 1,
    "phone": "08012345678",
    "amount": 500,
    "type": "VTU",
    "request_id": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6"
  }'

Responses

200 Delivered
{
  "status": "success",
  "message": "Transaction successful.",
  "data": {
    "request_id": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
    "reference": "AT7F2C9A1B4D8E3F5C0A6B2D4E8F1A3C5B"
  }
}
202 Processing
{
  "status": "pending",
  "message": "This transaction is pending confirmation. Check History or contact support with the transaction ID before trying again.",
  "data": {
    "request_id": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
    "reference": "AT7F2C9A1B4D8E3F5C0A6B2D4E8F1A3C5B"
  }
}
400 Rejected
{
  "status": "error",
  "message": "Enter a valid Nigerian mobile number.",
  "data": {}
}
POST /data API key

Buy data

Data bundle from your network plan list, delivered to a Nigerian number.

Request URL https://abbasojadata.com.ng/api/v1/data

Parameters

plan_id required
integer body

Plan id from GET /catalog/data-plans?network=…

phone required
string body

Recipient number.

request_id
string body

32 lowercase hex characters. Reuse the same value to replay a request safely; one is generated when omitted.

Example request

curl -X POST "https://abbasojadata.com.ng/api/v1/data" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "plan_id": 1234,
    "phone": "08012345678",
    "request_id": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6"
  }'

Responses

200 Delivered
{
  "status": "success",
  "message": "Transaction successful.",
  "data": {
    "request_id": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
    "reference": "DT1A2B3C4D5E6F708192A3B4C5D6E7F80"
  }
}
202 Processing
{
  "status": "pending",
  "message": "This transaction is pending confirmation. Check History or contact support with the transaction ID before trying again.",
  "data": {
    "request_id": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
    "reference": "DT1A2B3C4D5E6F708192A3B4C5D6E7F80"
  }
}
400 Rejected
{
  "status": "error",
  "message": "Choose a valid data plan.",
  "data": {}
}
POST /esim API key

Buy eSIM credit

Top up an existing Smile, Alpha, Kirani, Ratel or Sahal line.

Request URL https://abbasojadata.com.ng/api/v1/esim

Parameters

provider required
string body

smile, alpha, kirani, ratel or sahal.

destination required
string body

Phone number, or an email address for sahal.

plan_id
integer body

Bundle id from GET /catalog/esim?slug=… — required for smile, alpha and kirani.

amount
number body

Credit amount in naira — required for ratel and sahal (minimum ₦100, or ₦100.01 for sahal).

request_id
string body

32 lowercase hex characters. Reuse the same value to replay a request safely; one is generated when omitted.

Example request

curl -X POST "https://abbasojadata.com.ng/api/v1/esim" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "provider": "smile",
    "destination": "08012345678",
    "plan_id": 12,
    "request_id": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6"
  }'

Responses

200 Delivered
{
  "status": "success",
  "message": "Transaction successful.",
  "data": {
    "request_id": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
    "reference": "ES7F2C9A1B4D8E3F5C0A6B2D4E8F1A3C5B"
  }
}
202 Processing
{
  "status": "pending",
  "message": "This transaction is pending confirmation. Check History or contact support with the transaction ID before trying again.",
  "data": {
    "request_id": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
    "reference": "ES7F2C9A1B4D8E3F5C0A6B2D4E8F1A3C5B"
  }
}
400 Rejected
{
  "status": "error",
  "message": "Choose a valid eSIM plan.",
  "data": {}
}
POST /esim/accounts API key

Buy an eSIM account

Purchase a dedicated account; support delivers the details after payment.

Request URL https://abbasojadata.com.ng/api/v1/esim/accounts

Parameters

provider required
string body

Provider slug from GET /catalog/esim, e.g. smile.

request_id
string body

32 lowercase hex characters. Reuse the same value to replay a request safely; one is generated when omitted.

Example request

curl -X POST "https://abbasojadata.com.ng/api/v1/esim/accounts" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "provider": "smile",
    "request_id": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6"
  }'

Responses

202 Processing
{
  "status": "pending",
  "message": "Smile account purchase is processing for ₦2,500.00. Support will deliver the account details shortly.",
  "data": {
    "request_id": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
    "reference": "ES9C4D2E6A8B1F3507C2E4A6B8D0F2A4C",
    "balance": 3390
  }
}
400 Unknown provider
{
  "status": "error",
  "message": "Choose a valid eSIM provider.",
  "data": {}
}
POST /cable API key

Buy cable TV

Renew a DStv, GOTV or Startimes subscription for a smart card.

Request URL https://abbasojadata.com.ng/api/v1/cable

Parameters

plan_id required
integer body

Package id from GET /catalog/cable.

iuc required
string body

Smart card / IUC number, 6–30 digits.

request_id
string body

32 lowercase hex characters. Reuse the same value to replay a request safely; one is generated when omitted.

Example request

curl -X POST "https://abbasojadata.com.ng/api/v1/cable" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "plan_id": 42,
    "iuc": "1046289573",
    "request_id": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6"
  }'

Responses

202 Processing
{
  "status": "pending",
  "message": "DStv Compact subscription is processing for 1046289573.",
  "data": {
    "request_id": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
    "reference": "CB9F3A2B1C4D5E6F7A8B9C0D",
    "balance": 4890
  }
}
400 Invalid package
{
  "status": "error",
  "message": "Choose a valid cable plan.",
  "data": {}
}
POST /electricity API key

Pay electricity

Buy prepaid or postpaid units from any disco; a flat service fee applies.

Request URL https://abbasojadata.com.ng/api/v1/electricity

Parameters

provider required
integer body

Disco id from GET /catalog/electricity.

meter required
string body

Meter number, 6–30 characters.

meter_type required
string body

prepaid or postpaid.

amount required
number body

Units to buy in naira; minimum ₦500. The service fee is added on top.

request_id
string body

32 lowercase hex characters. Reuse the same value to replay a request safely; one is generated when omitted.

Example request

curl -X POST "https://abbasojadata.com.ng/api/v1/electricity" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "provider": 3,
    "meter": "01061234567",
    "meter_type": "prepaid",
    "amount": 2000,
    "request_id": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6"
  }'

Responses

202 Processing
{
  "status": "pending",
  "message": "Electricity payment is processing. ₦2,000 was sent to Ikeja Electric for meter 01061234567.",
  "data": {
    "request_id": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
    "reference": "EL4B7D9F1A3C5E7082A4C6E8B0D2F4A6C",
    "balance": 3790
  }
}
400 Below minimum
{
  "status": "error",
  "message": "Minimum electricity amount is ₦500.",
  "data": {}
}
POST /exam API key

Buy exam pins

WAEC, NECO and NABTEB result-checker pins, up to five at a time.

Request URL https://abbasojadata.com.ng/api/v1/exam

Parameters

exam_id required
integer body

Exam id from GET /catalog/exams.

quantity
integer body

How many pins, 1–5. Defaults to 1.

request_id
string body

32 lowercase hex characters. Reuse the same value to replay a request safely; one is generated when omitted.

Example request

curl -X POST "https://abbasojadata.com.ng/api/v1/exam" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "exam_id": 5,
    "quantity": 2,
    "request_id": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6"
  }'

Responses

202 Processing
{
  "status": "pending",
  "message": "WAEC result checker pin x2 is processing.",
  "data": {
    "request_id": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
    "reference": "EX2C4E6A8B0D1F3507C2E4A6B8D0F2A4C",
    "balance": 5190
  }
}
400 Invalid quantity
{
  "status": "error",
  "message": "You can buy between 1 and 5 pins at a time.",
  "data": {}
}

Ready to build?

Sign in, copy your key from Profile → Settings, and make your first call in under a minute.

Please wait…