USSD

ussd flow

  1. User dials USSD code
  2. Mobile Operator forwards request to Bonga
  3. Bonga forwards the request via GET to client
  4. Client processes request responds in plain text
  5. Bonga forwards request to mobile operator
  6. User receives menu response

Processing USSD requests

METHOD – GET URL – Provided by the client The Bonga USSD application will make a GET request to the client’s exposed URL with the parameters listed When the user dials the code and whenever they respond to a menu flow.

ParameterDescriptionType
mobile_numberPhone Numberstring
session_idSession Identifierstring
messageUser Inputstring
service_codeUSSD Codestring
networkMobile Network Operator of phone numberstring
  • message – This will be empty when the user first dials the USSD code, subsequent user input within the session will be concatenated delimited with an asterisk ( * ).

Client Application Responses

USSD being a session based technology, when a user dials the USSD Code or responds to a menu the provided url will receive a call with the above parameters.

Respond beginning with :

CON - If the USSD session is ongoing e.g.s CON Welcome to our service

END - If you want to end the USSD session e.g END Your request has been received