Handle Sessions
Managing a USSD session directed to your EtherOne shortCode involves simply implementing a script on your web server to process HTTP POST requests.
Receiving a ussd request.
POST <callback url>
Request Body
Name
Type
Description
msisdn*
string
Phone number that has initiated the request
sessionId*
string
SessionID from the telecom
shortCode*
string
Unique shortcode configured for your account
response*
string
User response from the ussd request
state*
string
Menu state CON for continue and END for ending the session
{
"sessionId": "4343432323232", (required)
"response": "Hello Jhon \n 1. Check Payment \n 2. Make Payment", (required)
"menuState": "CON\END", (required)
"msisdn": "25677123456" (required)
}Last updated