Returns the User Id for a mobile phone number on a specific operator. If the user is already known to the Bango system, their User ID will be returned.

👍

Please note: the mobile phone number must be in international format, including country code (e.g. 15551234567 for a USA mobile number and 447710123456 for a UK mobile number).

If the user is not known, but is on an operator which passes real-time MSISDN’s to Bango, a new user account is automatically created and the User ID returned. When the user does access the Bango system and their MSISDN is passed to Bango by their operator, this is the User ID they will be assigned.

Inputs:

ParameterTypeDescription
usernameString(20)Your username
passwordString(20)Your password
mobileNumberString(20)The mobile number to search for – must be international format i.e. 16141234567 or 447787123456
networkIdString(50)Bango Network ID
bangoString(50)A Bango number accessible by these credentials
responseCodeString(50)Status of request.
responseMessageString(255)Textual description of request status
userIdInt32User ID for this mobile number

Input example:

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:com="com.bango.webservices.directbilling">
   <soap:Header>
      <com:MessageSignature/>
   </soap:Header>
   <soap:Body>
      <com:GetUserId>
         <com:request>
            <com:username>[username]</com:username>
            <com:password>[password]</com:password>
            <com:mobileNumber>[MobileNumber]</com:mobileNumber>
            <com:networkId>[NetworkID]</com:networkId>
            <com:bango>[BangoNumber]</com:bango>
         </com:request>
      </com:GetUserId>
   </soap:Body>
</soap:Envelope>

Output example:

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
   <soap:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <GetUserIdResponse xmlns="com.bango.webservices.directbilling">
         <GetUserIdResult>
            <responseCode>[ResponseCode]</responseCode>
            <responseMessage>[ResponseMessage]</responseMessage>
            <userId>[UserId]</userId>
         </GetUserIdResult>
      </GetUserIdResponse>
   </soap:Body>
</soap:Envelope>
Language
Credentials
Basic
base64
:
Click Try It! to start a request and see the response here!