HLR Lookup

Mit dem HLR-Lookup können Sie Informationen über eine Handynummer abrufen, wie z. B. ihre Gültigkeit, ob sie gerade aktiv ist oder ihr Netz. Sie können auch herausfinden, ob sich die Nummer im Roaming-Modus befindet, oder ob sie an einen anderen Netzwerkanbieter gerichtet ist.

POST

/lookup

Body-Parameter

to
notwendig
Dieses Feld muss ein Array von Telefonnummern sein

Beispiele

JSON
POST /lookup HTTP/1.1
Host: api.smsup.ch
Authorization: Bearer your.token
Accept: application/json

{
  "lookup": {
    "to": ["41781234567", "41781234566"]
  }
}
        

Ergebnisformat

JSON
{
  "status": 1,
  "message": "OK",
  "cost": 2,
  "credits": 642,
  "response": {
    "lookup": [
      {
        "to": "41781234567",
        "mccMnc": "20801",
        "imsi": "208019900000000",
        "originalNetwork": {
          "networkName": "Orange",
          "networkPrefix": "671",
          "countryName": "France",
          "countryPrefix": "33"
        },
        "ported": false,
        "roaming": false,
        "status": {
          "name": "DELIVERED",
          "description": "Message delivered to handset",
          "detailed": "DELIVERED_TO_HANDSET"
        },
        "error": {
          "id": 0,
          "description": "No Error",
          "permanent": false
        }
      },
      {
        "to": "41781234566",
        "mccMnc": "20801",
        "originalNetwork": {
          "networkName": "Orange",
          "networkPrefix": "671",
          "countryName": "France",
          "countryPrefix": "33"
        },
        "ported": false,
        "roaming": false,
        "status": {
          "name": "UNDELIVERABLE",
          "description": "Message sent not delivered",
          "detailed": "UNDELIVERABLE_NOT_DELIVERED"
        },
        "error": {
          "id": 27,
          "description": "Absent Subscriber",
          "permanent": false
        }
      }
    ]
  }
}