{{ SMS Account Recharge }}

Welcome to the Pandora SMS Account recharge API. Our API that is flexible, scalable, and easy to integrate. Get familiar with our product by getting started or exploring our API documentation.

Lets get you started

The account recharge API lives at https://www.sms.thepandoranetworks.com/API/topup.

Inorder to use the API to send SMS, you must have created a Pandora SMS Account .

URL

https://www.sms.thepandoranetworks.com/API/topup

Request Type

POST

Parameters

These are separated using the “&” sign just like in a normal http get.

Required
username: The username used to login to Pandora SMS.
password: The password used to login to Pandora SMS
amount: The amount you want to recharge your account with
contact: The mobile money contact you want to use to recharge your account
callback_url (optional): The url you want us to send you feedback whether the transaction was successfull or not
transaction_ref (optional): This uniquely identifies a transaction. This is what you use to verify a transaction

Success Response

If your request is success, a JSON object is returned as follows

{"success": true, "messages": ["message"], "statusCode":201}

Error Response

If your request is not success, a JSON object is returned as follows

{"success": false, "messages": ["message"], "statusCode":401}

IPN

Once the payment is successfully approved, we send you an Instant Payment Notification(IPN) to the callback_url you provided in the parameters above as follows. It's a POST request

[ 'external_ref'=>'external_ref', 'msisdn'=>'payment contact', 'amount'=>'amount' ]

FPN

Once the payment is not success, we send you an Failure Payment Notification(IPN) to the callback_url you provided in the parameters above as follows. It's a POST request

[ 'failed_transaction_reference'=>'external_ref' ]