Miscellaneous
Supporting information you can use to build forms and validate input.
List Mobile Money Networks
Get the Mobile Money networks you can charge, with the code to use as mobile_money.provider. Older codes in aliases are also accepted.
| Network | Code | Number prefixes |
|---|---|---|
| MTN Mobile Money | mtn | 024, 025, 054, 055, 059 |
| Telecel Cash | telecel | 020, 050 |
| AirtelTigo Money | airteltigo | 026, 027, 056, 057 |
Numbers can be sent as 0551234987 or 233551234987. If you leave out provider, we pick the network from the number.
Headers
authorizationStringrequired- Set value to
Bearer YOUR_SECRET_KEY. Your public or secret key works here.
curl https://api.wiregh.com/bank \
-H "Authorization: Bearer YOUR_SECRET_KEY" \
-X GETconst response = await fetch('https://api.wiregh.com/bank', {
method: 'GET',
headers: {
Authorization: 'Bearer YOUR_SECRET_KEY'
}
});
const result = await response.json();
console.log(result);<?php
$ch = curl_init('https://api.wiregh.com/bank');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer YOUR_SECRET_KEY',
],
]);
$result = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($result);{
"status": true,
"message": "Banks retrieved",
"data": [
{
"name": "MTN Mobile Money",
"code": "mtn",
"aliases": [
"mtn"
],
"type": "mobile_money",
"currency": "GHS",
"country": "Ghana",
"active": true
},
{
"name": "Telecel Cash",
"code": "telecel",
"aliases": [
"vod",
"vodafone"
],
"type": "mobile_money",
"currency": "GHS",
"country": "Ghana",
"active": true
},
{
"name": "AirtelTigo Money",
"code": "airteltigo",
"aliases": [
"atl",
"tgo"
],
"type": "mobile_money",
"currency": "GHS",
"country": "Ghana",
"active": true
}
]
}{
"status": false,
"message": "Invalid key",
"code": "invalid_key"
}