Detect operator from an MSISDN
curl --request POST \
--url https://api.winampay.de/api/v1/msisdn/detect \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"msisdn": "+237670123456",
"country_code": "CM"
}
'import requests
url = "https://api.winampay.de/api/v1/msisdn/detect"
payload = {
"msisdn": "+237670123456",
"country_code": "CM"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({msisdn: '+237670123456', country_code: 'CM'})
};
fetch('https://api.winampay.de/api/v1/msisdn/detect', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.winampay.de/api/v1/msisdn/detect",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'msisdn' => '+237670123456',
'country_code' => 'CM'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.winampay.de/api/v1/msisdn/detect"
payload := strings.NewReader("{\n \"msisdn\": \"+237670123456\",\n \"country_code\": \"CM\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.winampay.de/api/v1/msisdn/detect")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"msisdn\": \"+237670123456\",\n \"country_code\": \"CM\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.winampay.de/api/v1/msisdn/detect")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"msisdn\": \"+237670123456\",\n \"country_code\": \"CM\"\n}"
response = http.request(request)
puts response.read_body{
"msisdn_normalized": "+237670123456",
"is_valid": true,
"country_code": "CM",
"operator": "mtn",
"operator_display_name": "MTN Mobile Money",
"provider_suggestion": "sim_gateway_mtn",
"provider_display_name": "MTN Mobile Money",
"provider_logo_url": "<string>",
"error": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Providers
Detect Operator
Detect the Mobile Money operator from a phone number. Use this to pre-fill the operator field without asking the player.
POST
/
api
/
v1
/
msisdn
/
detect
Detect operator from an MSISDN
curl --request POST \
--url https://api.winampay.de/api/v1/msisdn/detect \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"msisdn": "+237670123456",
"country_code": "CM"
}
'import requests
url = "https://api.winampay.de/api/v1/msisdn/detect"
payload = {
"msisdn": "+237670123456",
"country_code": "CM"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({msisdn: '+237670123456', country_code: 'CM'})
};
fetch('https://api.winampay.de/api/v1/msisdn/detect', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.winampay.de/api/v1/msisdn/detect",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'msisdn' => '+237670123456',
'country_code' => 'CM'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.winampay.de/api/v1/msisdn/detect"
payload := strings.NewReader("{\n \"msisdn\": \"+237670123456\",\n \"country_code\": \"CM\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.winampay.de/api/v1/msisdn/detect")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"msisdn\": \"+237670123456\",\n \"country_code\": \"CM\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.winampay.de/api/v1/msisdn/detect")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"msisdn\": \"+237670123456\",\n \"country_code\": \"CM\"\n}"
response = http.request(request)
puts response.read_body{
"msisdn_normalized": "+237670123456",
"is_valid": true,
"country_code": "CM",
"operator": "mtn",
"operator_display_name": "MTN Mobile Money",
"provider_suggestion": "sim_gateway_mtn",
"provider_display_name": "MTN Mobile Money",
"provider_logo_url": "<string>",
"error": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Typical integration flow
1
Player enters their phone number
Your UI collects the player’s MSISDN at checkout.
2
Detect the operator
Call
POST /msisdn/detect with the raw number — winam-payments normalizes it to E.164 and identifies the operator.3
Pre-fill the deposit/withdrawal request
Use
operator from the response directly in your POST /deposits or POST /withdrawals call — no manual selection required.Currently supported country: CM (Cameroon).
country_code defaults to CM if omitted.Cameroon prefix table
| Operator | Prefixes |
|---|---|
| MTN Mobile Money | 67x, 68x, 650–654 |
| Orange Money | 69x, 655–659 |
POST /deposits and POST /withdrawals enforce this table: a request whose
msisdn prefix clearly contradicts the operator field (e.g. a 655…
Orange number with operator=mtn) is rejected with 422 before any USSD
is sent. Numbers with unknown prefixes are accepted as-is.Authorizations
Body
application/json
Response
Successful Response
MSISDN normalised to E.164 format
Example:
"+237670123456"
Whether the MSISDN is a recognised Cameroon number
Example:
"CM"
Detected operator: "mtn" | "orange" | null
Example:
"mtn"
Example:
"MTN Mobile Money"
Suggested provider_id to use in the deposit/withdrawal request
Example:
"sim_gateway_mtn"
Example:
"MTN Mobile Money"
Error message if is_valid is false

