Pinless Airtime API V 1.1.2
Pinless Airtime API V 1.1.2
This document contains Trade Secrets, Commercial, Financial Information or other proprietary information of True African and is Privileged & Confidential. It is considered
exempt from disclosure under the provisions of the Freedom of Information Act and/or other applicable statutes. This information is not to be copied or distributed to persons
outside the evaluation process without the prior written consent of True African
Table of Contents
Contents
1.0 Document History ................................................................................................................................... 3
2.0 Using the API ........................................................................................................................................... 4
2.1 Prerequisites ....................................................................................................................................... 4
2.2 Request URL ........................................................................................................................................ 4
2.3 Request Format................................................................................................................................... 4
2.3.1 HTTP Headers ............................................................................................................................... 4
2.3.2 XML Request Format .................................................................................................................... 4
2.4 Method specific parameters ............................................................................................................... 5
2.4.1 purchaseAirtime method ............................................................................................................. 5
2.4.2 checkStatus method ..................................................................................................................... 6
2.4.3 checkBalance method .................................................................................................................. 6
2.5 Response Format................................................................................................................................. 6
2.5.1 purchaseAirtime ........................................................................................................................... 6
2.5.2 checkStatus .................................................................................................................................. 7
2.5.3 checkBalance................................................................................................................................ 8
3.0 Error Codes.............................................................................................................................................. 9
1.0 Document History
2.1 Prerequisites
To use the API, you must have a username and password which are provided by True
African.
Parameter Description
Username This is the username which, together with the password
below, maps your request to your account.
Password This is the password which, together with the username
above, maps your request to your account.
Method This parameter identifies the type of request you are
making.
Below is a sample request to the platform:
<?xml version="1.0" encoding="UTF-8"?>
<request>
<username>sampleUser</username>
<password>samplePassword</password>
<method>purchaseAirtime</method>
</request>
2.5.1 purchaseAirtime
This method is used to reload/purchase airtime for specified phone numbers from the
True African pinless airtime platform. The returned XML will contain the following
parameters:
2.5.2 checkStatus
This method is used to check if a request previously sent has been successfully
processed by the MNO and the subscriber’s phone has been successfully recharged
2.5.3 checkBalance
This method is used to check the remaining balance on a pinless account.
If there is an error with a request to the API, an error will be returned with two fields:
Code – This is a 3 digit numeric identifier of the error type.
Status – This field contains details about the error message.