Send Money
1app's automated send money API allows you to send money to any bank in Nigeria, a mobile money account and even other 1app accounts.
Make a POST request to our send money endpoint
post
{{base_url}}/sendmoney
Take a look at how you might do this:
cURL
NodeJs
PHP - cURL
Python
Dart
1
curl --location --request POST 'https://api.1app.online/v1/sendmoney' \
2
--header 'Authorization: Bearer YOUR_SECRET_KEY' \
3
--form 'amount="100000"' \
4
--form 'bankcode="000013"' \
5
--form 'bankname="GT BANK"' \
6
--form 'reference="shudgyutg876542"' \
7
--form 'accountno="0245000000"' \
8
--form 'narration="Transfer to my client"' \
9
--form 'currency="NGN"'
Copied!
1
var request = require('request');
2
var options = {
3
'method': 'POST',
4
'url': 'https://api.1app.online/v1/sendmoney',
5
'headers': {
6
'Authorization': 'Bearer SECRET_KEY'
7
},
8
formData: {
9
'amount': '100000',
10
'bankcode': '000013',
11
'bankname': 'GT BANK',
12
'reference': 'shudgyutg876542',
13
'accountno': '0245000000',
14
'narration': 'Transer to client',
15
'currency': 'NGN'
16
}
17
};
18
request(options, function (error, response) {
19
if (error) throw new Error(error);
20
console.log(response.body);
21
});
Copied!
1
$curl = curl_init();
2
3
curl_setopt_array($curl, array(
4
CURLOPT_URL => 'https://api.1app.online/v1/sendmoney',
5
CURLOPT_RETURNTRANSFER => true,
6
CURLOPT_ENCODING => '',
7
CURLOPT_MAXREDIRS => 10,
8
CURLOPT_TIMEOUT => 0,
9
CURLOPT_FOLLOWLOCATION => true,
10
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
11
CURLOPT_CUSTOMREQUEST => 'POST',
12
CURLOPT_POSTFIELDS => array('amount' => '100000','bankcode' => '000013','bankname' => 'GT BANK','reference' => 'shudgyutg876542','accountno' => '0245000000','narration' => 'Transer to client','currency' => 'NGN'),
13
CURLOPT_HTTPHEADER => array(
14
'Authorization: Bearer SECRET_KEY'
15
),
16
));
17
18
$response = curl_exec($curl);
19
20
curl_close($curl);
21
echo $response;
Copied!
1
import requests
2
3
url = "https://api.1app.online/v1/sendmoney"
4
5
payload={'amount': '100000',
6
'bankcode': '000013',
7
'bankname': 'GT BANK',
8
'reference': 'shudgyutg876542',
9
'accountno': '0245000000',
10
'narration': 'Transer to client',
11
'currency': 'NGN'}
12
files=[
13
14
]
15
headers = {
16
'Authorization': 'Bearer YOUR_SECRET_KEY'
17
}
18
19
response = requests.request("POST", url, headers=headers, data=payload, files=files)
20
21
print(response.text)
Copied!
1
var headers = {
2
'Authorization': 'Bearer SECRET_KEY'
3
};
4
var request = http.MultipartRequest('POST', Uri.parse('https://api.1app.online/v1/sendmoney'));
5
request.fields.addAll({
6
'amount': '100000',
7
'bankcode': '000013',
8
'bankname': 'GT BANK',
9
'accountno': '0245000000',
10
'narration': 'Transer to client',
11
'reference': 'IJENEJDEI4I4U',
12
'acctname': 'JOHN DOE'
13
});
14
15
request.headers.addAll(headers);
16
17
http.StreamedResponse response = await request.send();
18
19
if (response.statusCode == 200) {
20
print(await response.stream.bytesToString());
21
}
22
else {
23
print(response.reasonPhrase);
24
}
25
Copied!

Sample Response

1
{
2
"status": true,
3
"message": "Transfer Successfully Completed",
4
"txref": "API365022038SM347",
5
"charged": 100000,
6
"newbal": 600,023.80
7
}
Copied!
Copy link