Query Status
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:
Your application should stop making further API calls for that SIM.
Closed SIMs are permanently inactive.
Endpoint
POST https://api.m2miportal.com
Content-Type: application/xml
Accept: application/xml
Request (XML)
<query-status version="1" api-id="123456">
<authentication>
<username>username</username>
<password>password</password>
</authentication>
<iccid>1234567890123456789</iccid>
</query-status>Response (Success)
<query-status-response api-id="123456">
<api-outcome>Success</api-outcome>
<status>Active</status>
</query-status-response>Response (Failure)
If a request cannot be processed, the response will include:
- api-outcome indicating failure
- An error description explaining the reason
Failure responses may occur due to:
- Invalid authentication credentials
- Invalid or unknown identifiers (for example ICCID or MSISDN)
- Invalid or missing parameters
- Values not permitted for the specified SIM type or account configuration
- Insufficient permissions
Integrating systems should validate input data before submission and implement appropriate error handling and logging.