---
title: Query MSISDN
slug: query-msisdn
createdAt: 2026-02-05T09:33:58.280Z
---

### Purpose

Returns the MSISDN (telephone number) assigned to a specified SIM.

The target SIM is specified using the \<iccid> element.

The response includes the \<msisdn> element, provided in **E.164 format**.

### Response Element

| Element   | Description                                                     |
| --------- | --------------------------------------------------------------- |
| \<msisdn> | The MSISDN telephone number in E.164 format (e.g. 441234567890) |

### Endpoint

```xml
POST https://api.m2miportal.com
Content-Type: application/xml
Accept: application/xml
```



### Request (XML)

```xml
<query-msisdn version="1" api-id="123456">
  <authentication>
    <username>username</username>
    <password>password</password>
  </authentication>
  <iccid>1234567890123456789</iccid>
</query-msisdn>
```

### Response (Success)

```xml
<query-msisdn-response api-id="123456">
  <api-outcome>Success</api-outcome>
  <msisdn>441234567890</msisdn>
</query-msisdn-response>
```

:::hint{type="info"}
## Response (Failure)

If a request cannot be processed, the response will include:

- api-outcome indicating failure&#x20;
- An error description explaining the reason&#x20;

Failure responses may occur due to:

- Invalid authentication credentials&#x20;
- Invalid or unknown identifiers (for example ICCID or MSISDN)&#x20;
- Invalid or missing parameters&#x20;
- Values not permitted for the specified SIM type or account configuration&#x20;
- Insufficient permissions&#x20;

Integrating systems should validate input data before submission and implement appropriate error handling and logging.
:::

