1.USSD Gateway API

The client will provide an endpoint that accepts the following parameters through a GET request.

Endpoint

Method: GET URL: http://client.example.com/ussd_app

Request Parameters

The following parameters are required to make requests to the USSD API:

  • SESSIONID (integer): The session ID for the USSD session.
  • USSDCODE (string): The USSD code associated with your service.
  • NETWORK (string): The mobile network associated with the user (e.g., "saf" for Safaricom).
  • MSISDN (integer): The phone number of the user making the USSD request.
  • INPUT (string): The user's input during the USSD session.

Request Example

        http://client.example.com/ussd_app?SESSIONID=634073548&USSDCODE=*468&MSISDN=254722000000&INPUT=&NETWORK=saf
    

Note:The above are just placeholders they will be replaced with the actual data.

Response Example

For a successfully requst processing, the API should return the following response:

    CON Welcome to TestUssd [254722000000]. Select an option:
    1. Register
    2. Feedback
    3. Exit