Using Our APIs
Commands
Set Status
5 min
purpose sets the status to either or this operation does not change the sim’s group and therefore does not affect monthly tariffs it can be used to prevent or allow traffic sessions on the mobile device within the bounds of the current group the target device is specified using the \<iccid> element the new status is specified using the \<status> element valid values for \<status> are active de activated operational impact api commands perform live configuration changes changes take effect immediately commands may affect sim status, service availability, charging, or usage limits requests cannot be undone automatically ensure all parameters are validated before submitting requests to the production environment endpoint post https //api m2miportal com content type application/xml accept application/xml request (xml) \<set status version="1" api id="123456"> \<authentication> \<username>username\</username> \<password>password\</password> \</authentication> \<iccid>1234567890123456789\</iccid> \<status>active\</status> \</set status> response (success) \<set status response api id="123456"> \<api outcome>success\</api outcome> \</set 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