How It Works
The USSD integration is request-driven and stateless from Belio’s point of view:- A subscriber dials a registered USSD shortcode, for example
*123#. - Belio resolves the shortcode to an active service channel and forwards the session to your callback URL.
- Your application receives the full session context, including the cumulative input history.
- Your application returns the next menu screen using
CONto continue orENDto close the session.
Prerequisites
Before traffic can be routed to your application, ensure the following prerequisites have been met:- An active team, service, shortcode mapping, and subscription.
- A provisioned USSD shortcode. You can request either:
- Shared USSD Shortcode – Multiple services share the same shortcode, with routing handled by the Belio platform.
- Dedicated USSD Shortcode – A shortcode reserved exclusively for your service, providing a branded and isolated USSD experience.
- An active USSD service channel configured for your service.
- A callback URL pointing to your application that can receive HTTP POST requests from the Belio backend.
- If you are still developing your integration, you can use one of the available sandbox USSD shortcodes to test your callback implementation before your production shortcode is provisioned.
Integration Model
Belio sends the complete input history on every hop. That means your application should either:- Rebuild the menu state from scratch on every request, or use
sessionIdto load persisted state and continue from the latest step.
inputs array through the menu graph on every request.