Skip to content

USSD integration

Build callback-driven USSD experiences that work on every mobile device, with or without internet access.

USSD*203#

USSD (Unstructured Supplementary Service Data) allows you to build applications that run offline on mobile devices, accessed via shortcodes like *203#.

dataset

Shared Codes

Start instantly with a shared extension on our base code, e.g., *203*102#. Ideal for quick deployment.

star

Dedicated Codes

Acquire your own shortcode like *303#. We assist with National Communication Authority approval.

Visit app.moolre.com and create a USSD Service to continue.

Request Body

This is the request we send to your callback URL when someone dials your USSD Code.

{
    "sessionId": "3-17074657982460137",
    "new": true,
    "msisdn": "233240000003",
    "network": 3,
    "message": "",
    "extension": "109",
    "data": "11005"
}

Response Body

This is the response you send back to us after we call your callback URL.

{
    "message": "Menu\n1) Balance\n2) Account Information",
    "reply": true
}

Parameters

ParameterTypeDescription
sessionidStringThis is a unique id to track a USSD session
newBooleanThis specifies whether this is a new USSD session or a continuing USSD session
msisdnStringMobile number of the initiator of the USSD
networkIntegerThis is the network of the initiator of the USSD. 3 - MTN, 5 - AT, 6 - Telecel
messageStringThis is the message/response sent by the initiator of the USSD
extensionStringThis is your assigned USSD code
dataStringAny other data entered when initiating a request. Eg. If initiator dials: *203*109*11005#, data = 11005.
replyBooleanSpecifies whether a response is expected from the initiator of the USSD. true - Reply is expected, false - Reply is not expected, end the session