Payment

The RequestPayment is a request to debit mobile money from subscribers account. Partners must code the App based on the API field requirements so that the App can send correct requests accordingly.

Endpoint URI:
POST {baseUrl}/QosicBridge/user/requestpayment
Endpoint URI TOGO:
POST {baseUrl}/QosicBridge/tg/v1/requestpayment
ElementTypeDecription
msisdn
 string:MANDATORY 
Subscriber’s account i.e. 22967307747
amount
 string:MANDATORY 
Transaction amount i.e. 5000
firstname
 string:OPTIONAL 
Firstname of the subscriber
lastname
 string:OPTIONAL 
Lastname of the subscriber
transref
 string:MANDATORY 
Unique transaction reference. To be used as unique identifier in call to request for a payment.
clientid
 string:MANDATORY 
A unique generated id for each third-party application. This id is generated by Qos and should be included in all payment requests.
Succes Code
HTTP Status Code: 202
Failded Code
HTTP Status Code: 404
Content-Type: application/json[Basic Authentication headers]…
BENIN

          {
            “msisdn”:22967307747,
            “amount”:2000,
            “firstname”:”David”,
            “lastname”:”Ashaolu”,
            “transref” :12345,
            “clientid”: “QOS3P001”
          }

TOGO
          {
            "msisdn": "22897838872",
            "amount": 1000,
            "firstname": "string",
            "lastname": "string",
            "transref": "TGTEST0O2",
            "clientid": “…..”,
            "narration": "Achat en ligne",
            "operator": "MOOVTG"
          }