---
title: Query Last Mobile-Originated Traffic
slug: query-last-mobile-originated-traffic
createdAt: 2026-02-05T09:33:58.280Z
---

## Purpose

Returns the most recent confirmed outbound (mobile-originated) traffic for the SIM specified in the \<iccid> element.

This corresponds to the **Last Outbound Traffic** information shown in SIM Finder.

:::hint{type="info"}
**Important:**
&#x20;This is not a live query to the SIM provider. The information is based on confirmed traffic records received from provider systems.

- Typically, traffic records are received once per day.&#x20;
- Some providers may supply near real-time feeds. In those cases, the response will reflect the more recent data.&#x20;

If no traffic information is available, the response elements will be returned empty.
:::

### Endpoint

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



### Request (XML)

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

### Response (Success)

```xml
<query-last-mo-traffic-response api-id="123456">
  <api-outcome>Success</api-outcome>  
  <traffic-type>data</traffic-type>
  <timestamp>22/03/2020 13:55:30</timestamp>
  <network>Vodafone</network>
  <country>United Kingdom</country>
</query-last-mo-traffic-response>
```

### Response Elements

| Element         | Description                                                                                                               |
| --------------- | ------------------------------------------------------------------------------------------------------------------------- |
| \<traffic-type> | The type of traffic: Data, SMS, or Voice.                                                                                 |
| \<timestamp>    | The SMS received time, or the end time of a data session or voice call. Format: DD/MM/YYYY hh\:mm\:ss. All times are UTC. |
| \<network>      | The network recorded for the traffic, where available.                                                                    |
| \<country>      | The country from which the traffic originated, where available.                                                           |

### Behaviour Notes

- If any individual value is unavailable, the element will be returned empty.&#x20;
- If the SIM has no traffic history, all elements will be returned empty.&#x20;
- Time values are always returned in UTC.

:::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.
:::

