---
title: Query Status
slug: query-status
createdAt: 2026-02-05T09:33:58.280Z
---

## Purpose

Returns the current SIM Status for the SIM specified in the \<iccid> element.

The response includes a \<status> element indicating the operational state of the SIM.

## Possible Status Values

| SIM Status      | Description                                                                                                                                                                                                      |
| --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Active**      | The SIM is activated. This is a necessary but not sufficient condition for full operation. Typically, the SIM must also be in a Live Group and (for Manx Telecom SIMs) have sufficient nominal credit available. |
| **Deactivated** | The SIM is deactivated and cannot generate data, SMS or voice traffic.                                                                                                                                           |
| **Closed**      | The SIM is permanently closed and cannot generate data, SMS or voice traffic.                                                                                                                                    |

## Important

If the API response returns:

:::BlockQuote
\<status>Closed\</status>
:::

Your application should stop making further API calls for that SIM.

Closed SIMs are permanently inactive.

### Endpoint

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



### Request (XML)

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

### Response (Success)

```xml
<query-status-response api-id="123456">
  <api-outcome>Success</api-outcome>
  <status>Active</status>
</query-status-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.
:::

