Skip to content

Change MSISDN

POST {api-url}/changeMSISDN?ns={community}

Use this endpoint to update the MSISDN of a user account. If the community is configured to require an OTP for this action, the user must provide the OTP that was previously triggered via /sendOTP.

FieldTypeRequirementDescription
UsernameStringRequiredThe current username or MSISDN of the account.
IDNumberStringOptionalThe ID number of the user.
NewMSISDNStringRequiredThe new MSISDN to assign to the account.
OTPStringOptionalThe One-Time PIN triggered by /sendOTP.
MetadataStringOptionalAny other detail to store with this transaction.
{
"Username": "27820000000",
"IDNumber": "",
"NewMSISDN": "27820000001",
"OTP": "",
"Metadata": ""
}
Terminal window
curl -X POST '{api-url}/changeMSISDN?ns={community}' \
-H 'Authorization: bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"Username":"27820000000","IDNumber":"","NewMSISDN":"27820000001","OTP":"","Metadata":""}'