Endpoints
USSD

USSD

5min

Overview

Sign up to Moolre USSD Service via app.moolre.com or contact Support via email [email protected].

You will require a callback URL where initiated USSD requests by users will be received. The requests will contain a request body as in the sample Request Body and you will be expected to respond with a json as in the sample Response Body

Moolre issued USSD codes are in the form:*203*Extension#

If your assigned extension is 109, Your USSD code will be: *203*109#

Request Body

JSON


Response Body

JSON


Parameters

Parameters

Description

Data Type

sessionid

This is a unique id to track a USSD session

String

new

This specifies whether this is a new USSD session or a continuing USSD session

boolean

msisdn

Mobile number of the initiator of the USSD

String

network

This is the network of the initiator of the USSD

  • 3 - MTN
  • 5 - AT/AirtelTigo
  • 6 - Telecel/Vodafone

int

message

This is the message/response sent by the initiator of the USSD

String

extension

This is your assigned USSD code

Int

data

Any other data entered when initiating a request.

Eg. *203*109*11005# ; data: 11005.

String

reply

Specifies whether a response is expected from the initiator of the USSD.

  • true - Reply is expected
  • false - Reply is not expected, end the session

boolean



Updated 09 Feb 2024
Doc contributor
Did this page help you?