Giter VIP home page Giter VIP logo

API Integration Documentation

Introduction

This documentation provides a guide for integrating various services offered by BofiaSub into your new or existing system. BofiaSub offers APIs for services such as airtime purchase, data subscription, cable TV, electricity bill payments, and result checker services.

API Key

To access BofiaSub APIs, you need an API key. You can obtain this key by reaching out to BofiaSub.

Sample API key:

  5738068f03b44f1e601712e12a8ce7e36551d7bbd5f8b

1. Check Account Balance

Endpoint:

https://bofiasub.com/api/details

Request Method: POST

Payload Example:

$payload = array(
    'token' => "5738068f03b44f1e601712e12a8ce7e36551d7bbd5f8b"
);

Sample Response:

{
    "status": "success",
    "status_code": 200,
    "balance": 1000,
    "mobile": "0813256*****",
    "email": "[email protected]"
}

2. Purchase Data

Endpoint:

https://bofiasub.com/api/data

Request Method: POST

Payload Example:

$payload = array(
    'token' => "5738068f03b44f1e601712e12a8ce7e36551d7bbd5f8b",
    'network' => 'MTN',
    'plan_code' => '500',
    'mobile' => '0813905******',
    'request_id' => 'REF-UNIQUE723723828932',
);

Sample Response:

{
    "status": "success",
    "status_code": 200,
    "old_balance": 1000,
    "new_balance": 850,
    "time": "11-Jul-2022 10:47AM",
    "amountPaid": 150,
    "message": "MTN 500MB - N150 Data Purchase Successful On 0813905******"
}

3. Purchase Airtime

Endpoint:

https://bofiasub.com/api/airtime

Request Method: POST

Payload Example:

$payload = array(
    'token' => "5738068f03b44f1e601712e12a8ce7e36551d7bbd5f8b",
    'network' => 'MTN',
    'amount' => 100,
    'mobile' => '0813905******',
    'request_id' => 'REF-UNIQUE723723828932',
);

Sample Response:

{
    "status": "success",
    "status_code": 200,
    "old_balance": 1000,
    "new_balance": 902,
    "time": "11-Jul-2022 10:47AM",
    "amountPaid": 98,
    "discount": 2,
    "message": "MTN 100 Airtime Purchase Successful On 0813905******"
}

4. Verify Decoder/Meter No

Endpoint:

https://bofiasub.com/api/verifyiuc

Request Method: POST

Payload Example:

$payload = array(
    'service_id' => 'GOTV',
    'service_type' => 'prepaid',
    'service_number' => '7056882******',
);

Sample Response:

{
    "status": "success",
    "status_code": 200,
    "message": "Ajansare Adenlekoko"
}

5. Purchase Cable TV Subscription

Endpoint:

https://bofiasub.com/api/tv

Request Method: POST

Payload Example:

$payload = array(
    'token' => "5738068f03b44f1e601712e12a8ce7e36551d7bbd5f8b",
    'service_id' => 'GOTV',
    'plan_code' => '601',
    'service_number' => '703905******',
    'request_id' => 'REF-UNIQUE723723828932',
);

Sample Response:

{
    "status": "success",
    "status_code": 200,
    "old_balance": 10000,
    "new_balance": 4500,
    "time": "11-Jul-2022 10:47AM",
    "amountPaid": 5500,
    "message": "Gotv Supa Purchase Successful On 703905******"
}

6. Purchase Electricity Token

Endpoint:

https://bofiasub.com/api/electricity

Request Method: POST

Payload Example:

$payload = array(
    'token' => "5738068f03b44f1e601712e12a8ce7e36551d7bbd5f8b",
    'service_id' => 'ikeja-electric',
    'amount' => '1000',
    'service_number' => '409257******',
    'service_type' => 'prepaid',
    'request_id' => 'REF-UNIQUE723723828932',
);

Sample Response:

{
    "status": "success",
    "status_code": 200,
    "old_balance": 2000,
    "new_balance": 1010,
    "time": "11-Jul-2022 10:47AM",
    "amountPaid": 990,
    "message": "N1000 Ikeja Token Purchase Successful On 409257******(Token 5620 5620 3147 3091)"
}

7. Check Exam Results

Endpoint:

https://bofiasub.com/api/education

Request Method: POST

Payload Example:

$payload = array(
    'token' => "5738068f03b44f1e601712e12a8ce7e36551d7bbd5f8b",
    'service_id' => 'WAEC',
    'request_id' => 'REF-UNIQUE723723828932',
);

Sample Response:

{
    "status": "success",
    "status_code": 200,
    "old_balance": 4000,
    "new_balance": 2200,
    "time": "11-Jul-2022 10:47AM",
    "amountPaid": 1800,
    "message": "Waec E-Pins Purchase Successful On 0813905******(PIN-788323922)",
    "pin": "PIN-788323922"
}

Conclusion

This documentation provides a comprehensive guide to integrating BofiaSub APIs into your system for various services. Ensure you follow the provided examples for each service to successfully implement the integration. If you encounter any issues or have questions, feel free to reach out to BofiaSub for assistance.

Haroun Rersheed's Projects

audible-clone icon audible-clone

This is an audible clone. It is open-source, so you can contribute it. Read the instructions in the Readme to get started

audio_picker icon audio_picker

A Flutter plugin for Android and iOS to pick local Audios.

github-profile-searcher icon github-profile-searcher

A simple mobile app built with ionic 3 for retrieving user's repos on github from an ionic course in UDEMY.

jarvis icon jarvis

Personal Voice Assistant made with Python and has a cool looking GUI (Graphical User Interface)

jobhere icon jobhere

Personal works here Mengchuang technology to provide support for individuals to create a recruitment process, you can see the recruitment information and create a personal recruitment process

laravel-paystack icon laravel-paystack

:credit_card: :package: :moneybag: Laravel 6, 7, 8, 9 and 10 Package for Paystack

openemr icon openemr

OpenEMR is the most popular open source electronic health records and medical practice management solution. ONC certified with international usage, OpenEMR's goal is a superior alternative to its proprietary counterparts.

opensis-responsive-design icon opensis-responsive-design

openSIS is a commercial grade, secure, scalable & intuitive Student Information System, School Management Software from OS4ED. Has all functionalities to run single or multiple institutions in one installation. Web based, php code, MySQL database.

unpaprd icon unpaprd

An audiobook app made using Flutter

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.