Using Our APIs
Commands
Set QR Status
5 min
purpose sets the qr status for the specified sim some virtual sims are provisioned onto mobile devices using a qr code the qr status allows you to track the lifecycle of the sim the status is specified using the \<qr status> element if a sim is selected that does not have a qr code associated with it, the response will be invalid iccid if an invalid status value is supplied, the response will be invalid content valid integer values for \<qr status> are 0 = unassigned 1 = provided to customer 2 = reserved 3 = installed on device 4 = deleted from device 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 qr status version="1" api id="123456"> \<authentication> \<username>username\</username> \<password>password\</password> \</authentication> \<iccid>1234567890123456789\</iccid> \<qr status>1\</qr status> \</set qr status> response (success) \<set qr status response api id="123456"> \<api outcome>success\</api outcome> \</set qr 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