Cashbuddy
Search…
Cashbuddy API
We have discovered a more inclusive and convenient way for you to pay your bills, receive payments and also become a bill payment service provider.

Bills Payments

post
https://app.cashbuddy.ng
/apis/apiAirtime
Airtime API
CURL
PHP
NODE
JAVA
1
curl --location --request POST 'https://app.cashbuddy.ng/apis/apiAirtime' \
2
--header 'Secret-Key: Bearer YOUR_SECRET_KEY' \
3
--form 'email="[email protected]"' \
4
--form 'phone=""' \
5
--form 'network=""' \
6
--form 'amount=""'
Copied!
1
<?php
2
3
$curl = curl_init();
4
5
curl_setopt_array($curl, array(
6
CURLOPT_URL => 'https://app.cashbuddy.ng/apis/apiAirtime',
7
CURLOPT_RETURNTRANSFER => true,
8
CURLOPT_ENCODING => '',
9
CURLOPT_MAXREDIRS => 10,
10
CURLOPT_TIMEOUT => 0,
11
CURLOPT_FOLLOWLOCATION => true,
12
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13
CURLOPT_CUSTOMREQUEST => 'POST',
14
CURLOPT_POSTFIELDS => array('email' => '[email protected]','phone' => '','network' => '','amount' => ''),
15
CURLOPT_HTTPHEADER => array(
16
'secret_key: Bearer YOUR_SECRET_KEY'
17
),
18
));
19
20
$response = curl_exec($curl);
21
22
curl_close($curl);
23
echo $response;
24
Copied!
1
var https = require('follow-redirects').https;
2
var fs = require('fs');
3
4
var options = {
5
'method': 'POST',
6
'hostname': 'https://app.cashbuddy.ng',
7
'path': '/apis/apiAirtime',
8
'headers': {
9
'Secret-Key': 'Bearer YOUR_SECRET_KEY'
10
},
11
'maxRedirects': 20
12
};
13
14
var req = https.request(options, function (res) {
15
var chunks = [];
16
17
res.on("data", function (chunk) {
18
chunks.push(chunk);
19
});
20
21
res.on("end", function (chunk) {
22
var body = Buffer.concat(chunks);
23
console.log(body.toString());
24
});
25
26
res.on("error", function (error) {
27
console.error(error);
28
});
29
});
30
31
var postData = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"email\"\r\n\r\[email protected]\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"phone\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"network\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"amount\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--";
32
33
req.setHeader('content-type', 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW');
34
35
req.write(postData);
36
37
req.end();
Copied!
1
OkHttpClient client = new OkHttpClient().newBuilder()
2
.build();
3
MediaType mediaType = MediaType.parse("text/plain");
4
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
5
.addFormDataPart("email","[email protected]")
6
.addFormDataPart("phone","")
7
.addFormDataPart("network","")
8
.addFormDataPart("amount","")
9
.build();
10
Request request = new Request.Builder()
11
.url("https://app.cashbuddy.ng/apis/apiAirtime")
12
.method("POST", body)
13
.addHeader("Secret-Key", "Bearer YOUR_SECRET_KEY")
14
.build();
15
Response response = client.newCall(request).execute();
Copied!
post
https://app.cashbuddy.ng
/apis/apiData
Data API
CURL
PHP
NODE
JAVA
1
curl --location --request POST 'https://app.cashbuddy.ng/apis/apiData' \
2
--header 'Secret-Key: Bearer YOUR_SECRET_KEY' \
3
--form 'email="[email protected]"' \
4
--form 'phone="08103******"' \
5
--form 'network="mtn"' \
6
--form 'amount="500"' \
7
--form 'biller_name=""'
Copied!
1
<?php
2
3
$curl = curl_init();
4
5
curl_setopt_array($curl, array(
6
CURLOPT_URL => 'https://app.cashbuddy.ng/apis/apiData',
7
CURLOPT_RETURNTRANSFER => true,
8
CURLOPT_ENCODING => '',
9
CURLOPT_MAXREDIRS => 10,
10
CURLOPT_TIMEOUT => 0,
11
CURLOPT_FOLLOWLOCATION => true,
12
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13
CURLOPT_CUSTOMREQUEST => 'POST',
14
CURLOPT_POSTFIELDS => array('email' => '[email protected]','phone' => '08103******','network' => 'mtn','amount' => '500','biller_name' => ''),
15
CURLOPT_HTTPHEADER => array(
16
'Secret-Key: Bearer YOUR_SECRET_KEY'
17
),
18
));
19
20
$response = curl_exec($curl);
21
22
curl_close($curl);
23
echo $response;
24
Copied!
1
var request = require('request');
2
var options = {
3
'method': 'POST',
4
'url': 'https://app.cashbuddy.ng/apis/apiData',
5
'headers': {
6
'Secret-Key': 'Bearer YOUR_SECRET_KEY'
7
},
8
formData: {
9
'email': '[email protected]',
10
'phone': '08103******',
11
'network': 'mtn',
12
'amount': '500',
13
'biller_name': ''
14
}
15
};
16
request(options, function (error, response) {
17
if (error) throw new Error(error);
18
console.log(response.body);
19
});
20
Copied!
1
OkHttpClient client = new OkHttpClient().newBuilder()
2
.build();
3
MediaType mediaType = MediaType.parse("text/plain");
4
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
5
.addFormDataPart("email","[email protected]")
6
.addFormDataPart("phone","08103******")
7
.addFormDataPart("network","mtn")
8
.addFormDataPart("amount","500")
9
.addFormDataPart("biller_name","")
10
.build();
11
Request request = new Request.Builder()
12
.url("https://app.cashbuddy.ng/apis/apiData")
13
.method("POST", body)
14
.addHeader("Secret-Key", "Bearer YOUR_SECRET_KEY")
15
.build();
16
Response response = client.newCall(request).execute();
Copied!
post
https://app.cashbuddy.ng
/apis/apiElectricity
Electricity API
CURL
PHP
NODE
JAVA
1
curl --location --request POST 'https://app.cashbuddy.ng/apis/apiElectricity' \
2
--header 'Secret-Key: Bearer YOUR_SECRET_KEY' \
3
--form 'email="[email protected]"' \
4
--form 'meter_number="29728728*******"' \
5
--form 'network="eko-electric"' \
6
--form 'amount="10000"' \
7
--form 'biller_name="EKEDC PREPAID TOPUP"'
Copied!
1
<?php
2
3
$curl = curl_init();
4
5
curl_setopt_array($curl, array(
6
CURLOPT_URL => 'https://app.cashbuddy.ng/apis/apiElectricity',
7
CURLOPT_RETURNTRANSFER => true,
8
CURLOPT_ENCODING => '',
9
CURLOPT_MAXREDIRS => 10,
10
CURLOPT_TIMEOUT => 0,
11
CURLOPT_FOLLOWLOCATION => true,
12
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13
CURLOPT_CUSTOMREQUEST => 'POST',
14
CURLOPT_POSTFIELDS => array('email' => '[email protected]','meter_number' => '29728728*****','network' => 'eko-electric','amount' => '10000','biller_name' => 'EKEDC PREPAID TOPUP'),
15
CURLOPT_HTTPHEADER => array(
16
'Secret-Key: Bearer YOUR_SECRET_KEY'
17
),
18
));
19
20
$response = curl_exec($curl);
21
22
curl_close($curl);
23
echo $response;
24
Copied!
1
var request = require('request');
2
var options = {
3
'method': 'POST',
4
'url': 'https://app.cashbuddy.ng/apis/apiElectricity',
5
'headers': {
6
'Secret-Key': 'Bearer YOUR_SECRET_KEY'
7
},
8
formData: {
9
'email': '[email protected]',
10
'meter_number': '297287282*****',
11
'network': 'eko-electric',
12
'amount': '10000',
13
'biller_name': 'EKEDC PREPAID TOPUP'
14
}
15
};
16
request(options, function (error, response) {
17
if (error) throw new Error(error);
18
console.log(response.body);
19
});
20
Copied!
1
Unirest.setTimeouts(0, 0);
2
HttpResponse<String> response = Unirest.post("https://app.cashbuddy.ng/apis/apiElectricity")
3
.header("Secret-Key", "Bearer YOUR_SECRET_KEY")
4
.multiPartContent()
5
.field("email", "[email protected]")
6
.field("meter_number", "2972872827*****")
7
.field("network", "eko-electric")
8
.field("amount", "10000")
9
.field("biller_name", "EKEDC PREPAID TOPUP")
10
.asString();
11
Copied!
post
https://app.cashbuddy.ng/
apis/apiTv
Cable/TV Subscription API
CURL
PHP
NODE
JAVA
1
curl --location --request POST 'https://app.cashbuddy.ng/apis/apiTv' \
2
--header 'Secret-Key: Bearer YOUR_SECRET_KEY' \
3
--form 'email="[email protected]"' \
4
--form 'amount="200"' \
5
--form 'card_no="12345*****"' \
6
--form 'network="dstv"' \
7
--form 'biller_name=""'
Copied!
1
<?php
2
3
$curl = curl_init();
4
5
curl_setopt_array($curl, array(
6
CURLOPT_URL => 'https://app.cashbuddy.ng/apis/apiTv',
7
CURLOPT_RETURNTRANSFER => true,
8
CURLOPT_ENCODING => '',
9
CURLOPT_MAXREDIRS => 10,
10
CURLOPT_TIMEOUT => 0,
11
CURLOPT_FOLLOWLOCATION => true,
12
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13
CURLOPT_CUSTOMREQUEST => 'POST',
14
CURLOPT_POSTFIELDS => array('email' => '[email protected]','amount' => '200','card_no' => '12345*****','network' => 'dstv','biller_name' => ''),
15
CURLOPT_HTTPHEADER => array(
16
'Secret-Key: Bearer YOUR_SECRET_KEY'
17
),
18
));
19
20
$response = curl_exec($curl);
21
22
curl_close($curl);
23
echo $response;
24
Copied!
1
var request = require('request');
2
var options = {
3
'method': 'POST',
4
'url': 'https://app.cashbuddy.ng/apis/apiTv',
5
'headers': {
6
'Secret-Key': 'Bearer YOUR_SECRET_KEY'
7
},
8
formData: {
9
'email': '[email protected]',
10
'amount': '200',
11
'card_no': '12345*****',
12
'network': 'dstv',
13
'biller_name': ''
14
}
15
};
16
request(options, function (error, response) {
17
if (error) throw new Error(error);
18
console.log(response.body);
19
});
20
Copied!
1
Unirest.setTimeouts(0, 0);
2
HttpResponse<String> response = Unirest.post("https://app.cashbuddy.ng/apis/apiTv")
3
.header("Secret-Key", "Bearer YOUR_SECRET_KEY")
4
.multiPartContent()
5
.field("email", "[email protected]")
6
.field("amount", "200")
7
.field("card_no", "12345*****")
8
.field("network", "dstv")
9
.field("biller_name", "")
10
.asString();
11
Copied!

Funds API

post
https://app.cashbuddy.ng
/apis/apiTransfer
Funds Transfer API
CURL
PHP
NODE
JAVA
1
curl --location --request POST 'https://app.cashbuddy.ng/apis/apiTransfer' \
2
--header 'Secret-Key: Bearer YOUR_SECRET_KEY' \
3
--form 'email="[email protected]"' \
4
--form 'amount="200"' \
5
--form 'account_number="12345*****"' \
6
--form 'bank_code="046"' \
7
--form 'message="Funds Description"'
Copied!
1
<?php
2
3
$curl = curl_init();
4
5
curl_setopt_array($curl, array(
6
CURLOPT_URL => 'https://app.cashbuddy.ng/apis/apiTransfer',
7
CURLOPT_RETURNTRANSFER => true,
8
CURLOPT_ENCODING => '',
9
CURLOPT_MAXREDIRS => 10,
10
CURLOPT_TIMEOUT => 0,
11
CURLOPT_FOLLOWLOCATION => true,
12
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13
CURLOPT_CUSTOMREQUEST => 'POST',
14
CURLOPT_POSTFIELDS => array('email' => '[email protected]','amount' => '200','account_number' => '12345*****','bank_code' => '046','message' => 'Funds Description'),
15
CURLOPT_HTTPHEADER => array(
16
'Secret-Key: Bearer YOUR_SECRET_KEY'
17
),
18
));
19
20
$response = curl_exec($curl);
21
22
curl_close($curl);
23
echo $response;
24
Copied!
1
var request = require('request');
2
var options = {
3
'method': 'POST',
4
'url': 'https://app.cashbuddy.ng/apis/apiTransfer',
5
'headers': {
6
'Secret-Key': 'Bearer YOUR_SECRET_KEY'
7
},
8
formData: {
9
'email': '[email protected]',
10
'amount': '200',
11
'account_number': '12345*****',
12
'bank_code': '046',
13
'message': 'Funds Description'
14
}
15
};
16
request(options, function (error, response) {
17
if (error) throw new Error(error);
18
console.log(response.body);
19
});
20
Copied!
1
Unirest.setTimeouts(0, 0);
2
HttpResponse<String> response = Unirest.post("https://app.cashbuddy.ng/apis/apiTransfer")
3
.header("Secret-Key", "Bearer YOUR_SECRET_KEY")
4
.multiPartContent()
5
.field("email", "[email protected]")
6
.field("amount", "200")
7
.field("account_number", "12345*****")
8
.field("bank_code", "046")
9
.field("message", "Funds Description")
10
.asString();
11
Copied!

Cash Pin Generation

post
https://app.cashbuddy.ng
/apis/apiGeneratePins
Generate Pin
CURL
PHP
NODE
JAVA
1
curl --location --request POST 'https://app.cashbuddy.ng/apis/apiGeneratePins' \
2
--header 'Secret-Key: Bearer YOUR_SECRET_KEY' \
3
--form 'email="[email protected]"' \
4
--form 'amount="200"' \
5
--form 'count="5"'
Copied!
1
<?php
2
3
$curl = curl_init();
4
5
curl_setopt_array($curl, array(
6
CURLOPT_URL => 'https://app.cashbuddy.ng/apis/apiGeneratePins',
7
CURLOPT_RETURNTRANSFER => true,
8
CURLOPT_ENCODING => '',
9
CURLOPT_MAXREDIRS => 10,
10
CURLOPT_TIMEOUT => 0,
11
CURLOPT_FOLLOWLOCATION => true,
12
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13
CURLOPT_CUSTOMREQUEST => 'POST',
14
CURLOPT_POSTFIELDS => array('email' => '[email protected]','amount' => '200','count' => '5'),
15
CURLOPT_HTTPHEADER => array(
16
'Secret-Key: Bearer YOUR_SECRET_KEY'
17
),
18
));
19
20
$response = curl_exec($curl);
21
22
curl_close($curl);
23
echo $response;
24
Copied!
1
var request = require('request');
2
var options = {
3
'method': 'POST',
4
'url': 'https://app.cashbuddy.ng/apis/apiGeneratePins',
5
'headers': {
6
'Secret-Key': 'Bearer YOUR_SECRET_KEY'
7
},
8
formData: {
9
'email': '[email protected]',
10
'amount': '200',
11
'count': '5'
12
}
13
};
14
request(options, function (error, response) {
15
if (error) throw new Error(error);
16
console.log(response.body);
17
});
18
Copied!
1
Unirest.setTimeouts(0, 0);
2
HttpResponse<String> response = Unirest.post("https://app.cashbuddy.ng/apis/apiGeneratePins")
3
.header("Secret-Key", "Bearer YOUR_SECRET_KEY")
4
.multiPartContent()
5
.field("email", "[email protected]")
6
.field("amount", "200")
7
.field("count", "5")
8
.asString();
9
Copied!

Fetch bills payment item

post
https://app.cashbuddy.ng
/apis/apiFetchBanks
Fetch all banks with bank codes API
CURL
PHP
NODE
JAVA
1
curl --location --request POST 'https://app.cashbuddy.ng/apis/apiFetchBanks' \
2
--header 'Secret-Key: Bearer YOUR_SECRET_KEY' \
3
--form 'email="[email protected]"'
Copied!
1
<?php
2
3
$curl = curl_init();
4
5
curl_setopt_array($curl, array(
6
CURLOPT_URL => 'https://app.cashbuddy.ng/apis/apiFetchBanks',
7
CURLOPT_RETURNTRANSFER => true,
8
CURLOPT_ENCODING => '',
9
CURLOPT_MAXREDIRS => 10,
10
CURLOPT_TIMEOUT => 0,
11
CURLOPT_FOLLOWLOCATION => true,
12
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13
CURLOPT_CUSTOMREQUEST => 'POST',
14
CURLOPT_POSTFIELDS => array('email' => '[email protected]'),
15
CURLOPT_HTTPHEADER => array(
16
'Secret-Key: Bearer YOUR_SECRET_KEY'
17
),
18
));
19
20
$response = curl_exec($curl);
21
22
curl_close($curl);
23
echo $response;
24
Copied!
1
var request = require('request');
2
var options = {
3
'method': 'POST',
4
'url': 'https://app.cashbuddy.ng/apis/apiFetchBanks',
5
'headers': {
6
'Secret-Key': 'Bearer YOUR_SECRET_KEY'
7
},
8
formData: {
9
'email': '[email protected]'
10
}
11
};
12
request(options, function (error, response) {
13
if (error) throw new Error(error);
14
console.log(response.body);
15
});
16
Copied!
1
Unirest.setTimeouts(0, 0);
2
HttpResponse<String> response = Unirest.post("https://app.cashbuddy.ng/apis/apiFetchBanks")
3
.header("Secret-Key", "Bearer YOUR_SECRET_KEY")
4
.multiPartContent()
5
.field("email", "[email protected]")
6
.asString();
7
Copied!
post
https://app.cashbuddy.ng
/apis/apiFetchBills?network=all
Fetch all bills items API
CURL
PHP
NODE
JAVA
1
curl --location --request POST 'https://app.cashbuddy.ng/apis/apiFetchBills?network=all' \
2
--header 'Secret-Key: Bearer YOUR_SECRET_KEY' \
3
--form 'email="[email protected]"'
Copied!
1
<?php
2
3
$curl = curl_init();
4
5
curl_setopt_array($curl, array(
6
CURLOPT_URL => 'https://app.cashbuddy.ng/apis/apiFetchBills?network=all',
7
CURLOPT_RETURNTRANSFER => true,
8
CURLOPT_ENCODING => '',
9
CURLOPT_MAXREDIRS => 10,
10
CURLOPT_TIMEOUT => 0,
11
CURLOPT_FOLLOWLOCATION => true,
12
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13
CURLOPT_CUSTOMREQUEST => 'POST',
14
CURLOPT_POSTFIELDS => array('email' => '[email protected]'),
15
CURLOPT_HTTPHEADER => array(
16
'Secret-Key: Bearer YOUR_SECRET_KEY'
17
),
18
));
19
20
$response = curl_exec($curl);
21
22
curl_close($curl);
23
echo $response;
24
Copied!
1
var request = require('request');
2
var options = {
3
'method': 'POST',
4
'url': 'https://app.cashbuddy.ng/apis/apiFetchBills?network=all',
5
'headers': {
6
'Secret-Key': 'Bearer YOUR_SECRET_KEY'
7
},
8
formData: {
9
'email': '[email protected]'
10
}
11
};
12
request(options, function (error, response) {
13
if (error) throw new Error(error);
14
console.log(response.body);
15
});
16
Copied!
1
Unirest.setTimeouts(0, 0);
2
HttpResponse<String> response = Unirest.post("https://app.cashbuddy.ng/apis/apiFetchBills?network=all")
3
.header("Secret-Key", "Bearer YOUR_SECRET_KEY")
4
.multiPartContent()
5
.field("email", "[email protected]")
6
.asString();
7
Copied!
post
https://app.cashbuddy.ng
/apis/apiFetchBills?network=eko-electric
Fetch electricity bills plans {eko-electric, ibadan-electric, ikeja-electric, portharcourt-electric and enugu-electric}
CURL
PHP
NODE
JAVA
1
curl --location --request POST 'https://app.cashbuddy.ng/apis/apiFetchBills?network=eko-electric' \
2
--header 'Secret-Key: Bearer YOUR_SECRET_KEY' \
3
--form 'email="[email protected]"'
Copied!
1
<?php
2
3
$curl = curl_init();
4
5
curl_setopt_array($curl, array(
6
CURLOPT_URL => 'https://app.cashbuddy.ng/apis/apiFetchBills?network=eko-electric',
7
CURLOPT_RETURNTRANSFER => true,
8
CURLOPT_ENCODING => '',
9
CURLOPT_MAXREDIRS => 10,
10
CURLOPT_TIMEOUT => 0,
11
CURLOPT_FOLLOWLOCATION => true,
12
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13
CURLOPT_CUSTOMREQUEST => 'POST',
14
CURLOPT_POSTFIELDS => array('email' => '[email protected]'),
15
CURLOPT_HTTPHEADER => array(
16
'Secret-Key: Bearer YOUR_SECRET_KEY'
17
),
18
));
19
20
$response = curl_exec($curl);
21
22
curl_close($curl);
23
echo $response;
24
Copied!
1
var request = require('request');
2
var options = {
3
'method': 'POST',
4
'url': 'https://app.cashbuddy.ng/apis/apiFetchBills?network=eko-electric',
5
'headers': {
6
'Secret-Key': 'Bearer YOUR_SECRET_KEY'
7
},
8
formData: {
9
'email': '[email protected]'
10
}
11
};
12
request(options, function (error, response) {
13
if (error) throw new Error(error);
14
console.log(response.body);
15
});
16
Copied!
1
Unirest.setTimeouts(0, 0);
2
HttpResponse<String> response = Unirest.post("https://app.cashbuddy.ng/apis/apiFetchBills?network=eko-electric")
3
.header("Secret-Key", "Bearer YOUR_SECRET_KEY")
4
.multiPartContent()
5
.field("email", "[email protected]")
6
.asString();
7
Copied!
post
https://app.cashbuddy.ng
/apis/apiFetchBills?network=mtn
Fetch data plans{mtn, glo, 9mobile, airtel}
CURL
PHP
NODE
JAVA
1
curl --location --request POST 'https://app.cashbuddy.ng/apis/apiFetchBills?network=mtn' \
2
--header 'Secret-Key: YOUR_SECRET_KEY' \
3
--form 'email="[email protected]"'
Copied!
1
<?php
2
3
$curl = curl_init();
4
5
curl_setopt_array($curl, array(
6
CURLOPT_URL => 'https://app.cashbuddy.ng/apis/apiFetchBills?network=mtn',
7
CURLOPT_RETURNTRANSFER => true,
8
CURLOPT_ENCODING => '',
9
CURLOPT_MAXREDIRS => 10,
10
CURLOPT_TIMEOUT => 0,
11
CURLOPT_FOLLOWLOCATION => true,
12
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13
CURLOPT_CUSTOMREQUEST => 'POST',
14
CURLOPT_POSTFIELDS => array('email' => '[email protected]'),
15
CURLOPT_HTTPHEADER => array(
16
'Secret-Key: YOUR_SECRET_KEY'
17
),
18
));
19
20
$response = curl_exec($curl);
21
22
curl_close($curl);
23
echo $response;
24
Copied!
1
var request = require('request');
2
var options = {
3
'method': 'POST',
4
'url': 'https://app.cashbuddy.ng/apis/apiFetchBills?network=mtn',
5
'headers': {
6
'Secret-Key': 'YOUR_SECRET_KEY'
7
},
8
formData: {
9
'email': '[email protected]'
10
}
11
};
12
request(options, function (error, response) {
13
if (error) throw new Error(error);
14
console.log(response.body);
15
});
16
Copied!
1
Unirest.setTimeouts(0, 0);
2
HttpResponse<String> response = Unirest.post("https://app.cashbuddy.ng/apis/apiFetchBills?network=mtn")
3
.header("Secret-Key", "YOUR_SECRET_KEY")
4
.multiPartContent()
5
.field("email", "[email protected]")
6
.asString();
7
Copied!
post
https://app.cashbuddy.ng
/apis/apiFetchBills?network=dstv
Fetch cable/tv subscription plans{dstv, gotv, startimes}
CURL
PHP
NODE
JAVA
1
curl --location --request POST 'https://app.cashbuddy.ng/apis/apiFetchBills?network=dstv' \
2
--header 'Secret-Key: Bearer YOUR_SECRET_KEY' \
3
--form 'email="[email protected]"'
Copied!
1
<?php
2
3
$curl = curl_init();
4
5
curl_setopt_array($curl, array(
6
CURLOPT_URL => 'https://app.cashbuddy.ng/apis/apiFetchBills?network=dstv',
7
CURLOPT_RETURNTRANSFER => true,
8
CURLOPT_ENCODING => '',
9
CURLOPT_MAXREDIRS => 10,
10
CURLOPT_TIMEOUT => 0,
11
CURLOPT_FOLLOWLOCATION => true,
12
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13
CURLOPT_CUSTOMREQUEST => 'POST',
14
CURLOPT_POSTFIELDS => array('email' => '[email protected]'),
15
CURLOPT_HTTPHEADER => array(
16
'Secret-Key: Bearer YOUR_SECRET_KEY'
17
),
18
));
19
20
$response = curl_exec($curl);
21
22
curl_close($curl);
23
echo $response;
24
Copied!
1
var request = require('request');
2
var options = {
3
'method': 'POST',
4
'url': 'https://app.cashbuddy.ng/apis/apiFetchBills?network=dstv',
5
'headers': {
6
'Secret-Key': 'Bearer YOUR_SECRET_KEY'
7
},
8
formData: {
9
'email': '[email protected]'
10
}
11
};
12
request(options, function (error, response) {
13
if (error) throw new Error(error);
14
console.log(response.body);
15
});
16
Copied!
1
Unirest.setTimeouts(0, 0);
2
HttpResponse<String> response = Unirest.post("https://app.cashbuddy.ng/apis/apiFetchBills?network=dstv")
3
.header("Secret-Key", "Bearer YOUR_SECRET_KEY")
4
.multiPartContent()
5
.field("email", "[email protected]")
6
.asString();
7
Copied!

Verification APIs

post
https://app.cashbuddy.ng
/apis/apiVerifyBank
Bank Verification/Resolve account number API
CURL
PHP
NODE
JAVA
1
curl --location --request POST 'https://app.cashbuddy.ng/apis/apiVerifyBank' \
2
--header 'Secret-Key: Bearer YOUR_SECRET_KEY' \
3
--form 'email="[email protected]"' \
4
--form 'account_no="123456****"' \
5
--form 'bank_code="046"'
Copied!
1
<?php
2
3
$curl = curl_init();
4
5
curl_setopt_array($curl, array(
6
CURLOPT_URL => 'https://app.cashbuddy.ng/apis/apiVerifyBank',
7
CURLOPT_RETURNTRANSFER => true,
8
CURLOPT_ENCODING => '',
9
CURLOPT_MAXREDIRS => 10,
10
CURLOPT_TIMEOUT => 0,
11
CURLOPT_FOLLOWLOCATION => true,
12
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13
CURLOPT_CUSTOMREQUEST => 'POST',
14
CURLOPT_POSTFIELDS => array('email' => '[email protected]','account_no' => '123456****','bank_code' => '046'),
15
CURLOPT_HTTPHEADER => array(
16
'Secret-Key: Bearer YOUR_SECRET_KEY'
17
),
18
));
19
20
$response = curl_exec($curl);
21
22
curl_close($curl);
23
echo $response;
24
Copied!
1
var request = require('request');
2
var options = {
3
'method': 'POST',
4
'url': 'https://app.cashbuddy.ng/apis/apiVerifyBank',
5
'headers': {
6
'Secret-Key': 'Bearer YOUR_SECRET_KEY'
7
},
8
formData: {
9
'email': '[email protected]',
10
'account_no': '123456****',
11
'bank_code': '046'
12
}
13
};
14
request(options, function (error, response) {
15
if (error) throw new Error(error);
16
console.log(response.body);
17
});
18
Copied!
1
Unirest.setTimeouts(0, 0);
2
HttpResponse<String> response = Unirest.post("https://app.cashbuddy.ng/apis/apiVerifyBank")
3
.header("Secret-Key", "Bearer YOUR_SECRET_KEY")
4
.multiPartContent()
5
.field("email", "[email protected]")
6
.field("account_no", "123456****")
7
.field("bank_code", "046")
8
.asString();
9
Copied!
post
https://app.cashbuddy.ng
/apis/apiVerifyBVN
BVN Verification API
CURL
PHP
NODE
JAVA
1
curl --location --request POST 'https://app.cashbuddy.ng/apis/apiVerifyBVN' \
2
--header 'Secret-Key: Bearer YOUR_SECRET_KEY' \
3
--form 'email="[email protected]"' \
4
--form 'bvn="123456****"'
Copied!
1
<?php
2
3
$curl = curl_init();
4
5
curl_setopt_array($curl, array(
6
CURLOPT_URL => 'https://app.cashbuddy.ng/apis/apiVerifyBVN',
7
CURLOPT_RETURNTRANSFER => true,
8
CURLOPT_ENCODING => '',
9
CURLOPT_MAXREDIRS => 10,
10
CURLOPT_TIMEOUT => 0,
11
CURLOPT_FOLLOWLOCATION => true,
12
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13
CURLOPT_CUSTOMREQUEST => 'POST',
14
CURLOPT_POSTFIELDS => array('email' => '[email protected]','bvn' => '123456****'),
15
CURLOPT_HTTPHEADER => array(
16
'Secret-Key: Bearer YOUR_SECRET_KEY'
17
),
18
));
19
20
$response = curl_exec($curl);
21
22
curl_close($curl);
23
echo $response;
24
Copied!
1
var request = require('request');
2
var options = {
3
'method': 'POST',
4
'url': 'https://app.cashbuddy.ng/apis/apiVerifyBVN',
5
'headers': {
6
'Secret-Key': 'Bearer YOUR_SECRET_KEY'
7
},
8
formData: {
9
'email': '[email protected]',
10
'bvn': '123456****'
11
}
12
};
13
request(options, function (error, response) {
14
if (error) throw new Error(error);
15
console.log(response.body);
16
});
17
Copied!
1
Unirest.setTimeouts(0, 0);
2
HttpResponse<String> response = Unirest.post("https://app.cashbuddy.ng/apis/apiVerifyBVN")
3
.header("Secret-Key", "Bearer YOUR_SECRET_KEY")
4
.multiPartContent()
5
.field("email", "[email protected]")
6
.field("bvn", "123456****")
7
.asString();
8
Copied!

Airtime To Cash

post
https://app.cashbuddy.ng
/apis/apiAirtimeToCash
Request for airtime to cash conversion, be sure to dial the result returned on the data's value (replace YOUR PIN with your mobile network airtime transfer pin)
CURL
PHP
NODE
JAVA
1
curl --location --request POST 'https://app.cashbuddy.ng/apis/apiAirtimeToCash' \
2
--header 'Secret-Key: Bearer YOUR_SECRET_KEY' \
3
--form 'email="[email protected]"' \
4
--form 'amount="2000"' \
5
--form 'network="mtn"' \
6
--form 'phone="08100000000"' \
7
--form 'sub_user=""' \
8
--form 'reference_id="j900o0PPKe93"'
Copied!
1
<?php
2
3
$curl = curl_init();
4
5
curl_setopt_array($curl, array(
6
CURLOPT_URL => 'https://app.cashbuddy.ng/apis/apiAirtimeToCash',
7
CURLOPT_RETURNTRANSFER => true,
8
CURLOPT_ENCODING => '',
9
CURLOPT_MAXREDIRS => 10,
10
CURLOPT_TIMEOUT => 0,
11
CURLOPT_FOLLOWLOCATION => true,
12
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13
CURLOPT_CUSTOMREQUEST => 'POST',
14
CURLOPT_POSTFIELDS => array('email' => '[email protected]','amount' => '2000','network' => 'airtel','phone' => '08100000000','reference_id' => 'j900o0PPKe93'),
15
CURLOPT_HTTPHEADER => array(
16
'Secret-Key: Bearer YOUR_SECRET_KEY'
17
),
18
));
19
20
$response = curl_exec($curl);
21
22
curl_close($curl);
23
echo $response;
Copied!
1
var request = require('request');
2
var options = {
3
'method': 'POST',
4
'url': 'https://app.cashbuddy.ng/apis/apiAirtimeToCash',
5
'headers': {
6
'Secret-Key': 'Bearer YOUR_SECRET_KEY'
7
},
8
formData: {
9
'email': '[email protected]',
10
'amount': '2000',
11
'network': 'glo',
12
'phone': '08100000000',
13
'sub_user': '',
14
'reference_id': 'iksnuisdguiiw12'
15
}
16
};
17
request(options, function (error, response) {
18
if (error) throw new Error(error);
19
console.log(response.body);
20
});
21
Copied!
1
Unirest.setTimeouts(0, 0);
2
HttpResponse<String> response = Unirest.post("https://app.cashbuddy.ng/apis/apiAirtimeToCash")
3
.header("Secret-Key", "Bearer YOUR_SECRET_KEY")
4
.multiPartContent()
5
.field("email", "[email protected]")
6
.field("amount", "2000")
7
.field("network", "9mobile")
8
.field("phone", "08100000000")
9
.field("reference_id", "jks893iukJMkjd")
10
11
.asString();
12
Copied!

Airtime To Cash History

post
https://app.cashbuddy.ng/apis
/apiAirtimeToCashHistory
Get and filter airtime to cash transaction history
CURL
PHP
NODE
JAVA
1
curl --location --request POST 'https://app.cashbuddy.ng/apis//apiAirtimeToCashHistory' \
2
--header 'Secret-Key: Bearer YOUR_SECRET_KEY' \
3
--form 'email="[email protected]"'
Copied!
1
<?php
2
3
$curl = curl_init();
4
5
curl_setopt_array($curl, array(
6
CURLOPT_URL => 'https://app.cashbuddy.ng/apis/apiAirtimeToCashHistory',
7
CURLOPT_RETURNTRANSFER => true,
8
CURLOPT_ENCODING => '',
9
CURLOPT_MAXREDIRS => 10,
10
CURLOPT_TIMEOUT => 0,
11
CURLOPT_FOLLOWLOCATION => true,
12
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13
CURLOPT_CUSTOMREQUEST => 'POST',
14
CURLOPT_POSTFIELDS => array('email' => '[email protected]'),
15
CURLOPT_HTTPHEADER => array(
16
'Secret-Key: Bearer YOUR_SECRET_KEY'
17
),
18
));
19
20
$response = curl_exec($curl);
21
22
curl_close($curl);
23
echo $response;
Copied!
1
var request = require('request');
2
var options = {
3
'method': 'POST',
4
'url': 'https://app.cashbuddy.ng/apis/apiAirtimeToCashHistory',
5
'headers': {
6
'Secret-Key': 'Bearer YOUR_SECRET_KEY'
7
},
8
formData: {
9
'email': '[email protected]'
10
}
11
};
12
request(options, function (error, response) {
13
if (error) throw new Error(error);
14
console.log(response.body);
15
});
16
Copied!
1
Unirest.setTimeouts(0, 0);
2
HttpResponse<String> response = Unirest.post("https://app.cashbuddy.ng/apis/apiAirtimeToCashHistory")
3
.header("Secret-Key", "Bearer YOUR_SECRET_KEY")
4
.multiPartContent()
5
.field("email", "[email protected]")
6
7
.asString();
8
Copied!
Last modified 3mo ago