Using Our APIs
Information Requests
Query Last Mobile-Originated Traffic
6 min
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 important 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 some providers may supply near real time feeds in those cases, the response will reflect the more recent data if no traffic information is available, the response elements will be returned empty endpoint post https //api m2miportal com content type application/xml accept application/xml request (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) \<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 if the sim has no traffic history, all elements will be returned empty time values are always returned in utc 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