IMEI locks
These operations create, reset or remove an IMEI lock on real SIMs. Changes can affect service when a SIM is moved between devices. Use API authentication and confirm the intended SIMs and device identifiers before submitting.
All SIMs in a request must be accessible to the authenticated user, belong to one account and use one network. Availability depends on network support and the user's command permissions. IMEI lock commands are routed for eSIMsmart, eSIMsmart IOT, Manx M2M and Vodafone GDSP networks; a network without a supported route is rejected.
Create an IMEI lock
POST /api/SimSubmission/CreateImeiLock
| Field | Type | Description |
|---|---|---|
imeiLocks | object array | Supply a non-empty list of SIM and optional IMEI pairs. |
imeiLocks[].serialNo | string | SIM serial number, at most 40 characters. Must not be blank. This field is named serialNo, not serialNumber. |
imeiLocks[].imei | string or null | Optional target IMEI, at most 20 characters. Network handling of an omitted IMEI depends on the network. |
notifyEmailAddresses | string array | Supply the notification address list. Entries must not be blank; use [] if no email recipients are required. |
curl --location 'https://api.cellhire.com/api/SimSubmission/CreateImeiLock' \
--header 'Authorization: Bearer <access-token>' \
--header 'Content-Type: application/json;charset=UTF-8' \
--data '{
"imeiLocks": [
{ "serialNo": "01234567890", "imei": "123456789012345" }
],
"notifyEmailAddresses": ["sim-alerts@example.com"]
}'Reset an IMEI lock
POST /api/SimSubmission/ResetImeiLock
Requests a reset of the existing lock. Set unsuspend only when the request should also restore a suspended connection after resetting the lock.
| Field | Type | Description |
|---|---|---|
serialNumbers | string array | Supply a non-empty list of unique SIM serial numbers. |
unsuspend | boolean | Whether to request unsuspension after resetting. Defaults to false. |
curl --location 'https://api.cellhire.com/api/SimSubmission/ResetImeiLock' \
--header 'Authorization: Bearer <access-token>' \
--header 'Content-Type: application/json;charset=UTF-8' \
--data '{ "serialNumbers": ["01234567890"], "unsuspend": false }'Remove an IMEI lock
POST /api/SimSubmission/RemoveImeiLock
Requests removal of the existing lock. This request has no unsuspend option.
| Field | Type | Description |
|---|---|---|
serialNumbers | string array | Supply a non-empty list of unique SIM serial numbers. |
curl --location 'https://api.cellhire.com/api/SimSubmission/RemoveImeiLock' \
--header 'Authorization: Bearer <access-token>' \
--header 'Content-Type: application/json;charset=UTF-8' \
--data '{ "serialNumbers": ["01234567890"] }'Responses
Each operation returns 200 OK with a submission ticket:
{ "ticketNumber": "1beeb8dd-1825-4bcd-8a62-f941aacb8d15" }The ticket confirms submission creation, not that the lock change has completed. Follow submission status and recovery and inspect command and individual SIM results. Do not automatically repeat a POST after a timeout. See IMEI lock triggered webhooks for subsequent lock events.
| Status | Meaning |
|---|---|
400 | Invalid serials or notification entries, SIMs unavailable to the user, mixed accounts/networks, or unsupported network operation. |
403 | The authenticated user is not permitted to execute the operation. |
500 | Submission creation failed or the command type is unavailable. |