get https://webservices.bango.com/directbilling_v4_1
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:
Parameter | Type | Description |
---|---|---|
username | String(20) | Your username |
password | String(20) | Your password |
mobileNumber | String(20) | The mobile number to search for – must be international format i.e. 16141234567 or 447787123456 |
networkId | String(50) | Bango Network ID |
bango | String(50) | A Bango number accessible by these credentials |
responseCode | String(50) | Status of request. |
responseMessage | String(255) | Textual description of request status |
userId | Int32 | User 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>