The safe way to swap a SIM associated to a subscriber is:
- Add new SIM (if not already added) using set_sim_range
- Associate new SIM with a already allocated MSISDN using set_subscriber
- Delete old SIM using del_sim
Detailed procedure to replace a SIM associated with a MSISDN is represented below:
Add new SIM (if not already added)
If return_ids is set to true, it will return in response the allocated sim_id for that SIM.
Associate new SIM with an already allocated MSISDN
Delete old SIM
Please note that you have to have the sim_id associated with the IMSI in order to delete it. If you don’t have it saved from when the IMSI was added, you can use the get_sims API request.
For further information, see: