Monetbil Payment API v1 En
Monetbil Payment API v1 En
www.monetbil.com
Monetbil API (Mobile Money) is based on HTTP methods that make it easier to write
applications. You can use any HTTP client in a programming language or even your browser to
interact with the API.
Base URL
Default base URL is:
https://api.monetbil.com/payment/{version}/
Note: For security reasons, all Monetbil APIs are served via HTTPS
FONCTION DESCRIPTION
The following API allows you to start a Mobile Money payment request.
POST https://api.monetbil.com/payment/v1/placePayment
"service": "YOUR_SERVICE_KEY",
"phonenumber": "BUYER_PHONENUMBER",
"amount": "AMOUNT_TO_BE_PAY",
"notify_url": "https://your.server.com/monetbil/notifications",
PARAMETER DESCRIPTION
user Optional The user who makes the purchase in your system.
{
"status": REQUEST_ACCEPTED,
"message": payment pending, "channel_ussd":
*126#,
"channel_name": MTN Mobile Money,
"channel": CM_MTNMOBILEMONEY,
"paymentId": 17759286369594791363
}
PARAMETER DESCRIPTION
Status of request:
● REQUEST_ACCEPTED - Everything OK, request queued for processing
● INVALID_REQUEST
● INVALID_SERVICE;
● MISSING_SERVICE
● INVALID_MSISDN
status ● MISSING_MSISDN
● INVALID_COUNTRY
● INVALID_AMOUNT
● SERVICE_DISABLED_BY_ADMIN
● SERVICE_DISABLED_BY_OWNER
● SERVICE_NOT_FOUND
PARAMETER DESCRIPTION
● SERVICE_NOT_APPROVED
● SERVER_ERROR
paymentId Transaction ID
The following API allows you to check the status of a Mobile Money payment.
POST https://api.monetbil.com/payment/v1/checkPayment
Parameters
You must post the following parameters:
PARAMETRE DESCRIPTION
PARAMETER DESCRIPTION
● fee
● revenue
● currency
● status (Payment result)
o 1 – Success
o 0 – Failed
o -1 – Cancelled
o -2 - Refunded
● message
● http_user_agent
● device
● device_constructor
● device_model
● os
● os_version
● browser
● browser_version
● ip_address
● isp
● isp_org
● region_code
● region_name
● localisation_string
● query_string
● notify
● item_ref
● payment_ref
● first_name
● last_name
● email
● receipt_sent
● api_call
Example PHP-cUrl
- PlacePayment
<?php
$data = array(
'service' => 'j9XjZzkFqjeL5fk34e1RNq98thRRwvYf',
'phonenumber' => '237654…….',
'amount' => 100
);
$ch = curl_init();
$json = curl_exec($ch);
print_r($jsonArry);
Result:
Array (
[status] => REQUEST_ACCEPTED
[message] => payment pending
[channel_ussd] => *126*1#
[channel_name] => MTN Mobile Money
[channel] => CM_MTNMOBILEMONEY
[paymentId] => 61347672161751969872
)
- CheckPayment
<?php
$data = array(
'paymentId' => '21929552347272263345'
);
$ch = curl_init();
$json = curl_exec($ch);
// Successful payment
}
elseif ($status == - 1)
{
// Transaction cancelled
}
else
{
// Payment failed
}
}
Operators list
67,650,651,652,653,654
MTN CM_MTNMOBILEMONEY 1 1 000 000 XAF
,68
CAMEROON [CM] ORANGE CM_ORANGEMONEY 69,655,656,657,658,659 1 1 000 000 XAF
67,650,651,652,653,654
EXPRESS
CM_EUMM ,68,69,655,656,657,658, 100 500 000 XAF
UNION
659
SENEGAL [SN] ORANGE SN_ORANGEMONEY 77,78 1 500 000 XOF
CONGO-KINSHASA ORANGE CD_ORANGEMONEY 80,84,85,89 10 1 000 000 CDF
[CD] AIRTEL CD_AIRTELMONEY 97,99 1 000 1 000 000 CDF
AFRICELL CD_AFRICELL 90,91,054,056,058,058 1 000 1 000 000 CDF
060,061,062,063,064,06
MTN CG_MTNMOBILEMONEY 1 1 000 000 XAF
5,066,067,068,069
CONGO- 050,051,052,053,055,05
BRAZZAVILLE [CG] 7,059,054,056,058,040,
AIRTEL CG_AIRTELMONEY 1 1 000 000 XAF
041,042,043,044,045,04
6,047,048,049
AIRTEL UG_AIRTELMONEY 70,71,72,73,74,75 500 2 000 000 UGX
UGANDA [UG]
MTN UG_MTNMOBILEMONEY 76,77,78 500 2 000 000 UGX
50,51,52,53,54,56,57,59
MTN BJ_MTNMOBILEMONEY ,61,62,66,67,69,90,91,9 1 2 000 000 XOF
BENIN [BJ] 6,97
55,58,60,63,64,65,68,87
MOOV BJ_MOOVMONEY 1 2 000 000 XOF
,89,92,93,94,95,98,99
INFORMATION
For any information, contact us at [email protected]