For a USSD service, we send every request of the user to your server and your server replies with the next screen to show.
We call your server. Your server must be reachable from the internet.
https://YOUR_SERVER/your_application_url_end_pointWe send a JSON body to your server, and your server replies with a JSON body.
| Parameter | Required | Description |
body |
YES | The text of the request. |
sessionid |
YES | The session id. |
msisdn |
YES | The phone number with the country code, without the plus sign. |
key |
YES | A security key known by our server and your server. |
{
"body": "text of the request",
"sessionid": "session id",
"msisdn": "phone_number_with_country_code_without_plus",
"key": "security_key_known_by_our_server_and_your_server"
}
{
"msisdn": "phone_number_in_session",
"sessionid": "session_id_in_session",
"type": 1,
"body": "Message to be \ndisplayed on user\n screen"
}
| Field | Description |
msisdn | The phone number of the session. |
sessionid | The id of the session. |
type | 1 or "continue" to continue the session: the message is shown and we wait for the reply of the user. 2 or "end" to end the session: the message is shown and the session closes. |
body | The message to display on the screen of the user. |