I read the tutorial in twilio, but this is not entirely clear.
Can someone add a step-by-step procedure?
Here is what I got from twilio:
Exchange phone numbers between accounts
You can transfer numbers between sub-accounts and between your main account and any of your sub-accounts. You must use the credentials of the master account when the API request is sent to the phone number.
To transfer the phone number between the two accounts you manage, make an HTTP POST request in the resource URI of the IncomingPhoneNumber instance. In the POST body, set the AccountSid parameter to the AccountSID of the account to which you want to belong to this number. This will remove the phone number from its original account and make it available in the IncomingPhoneNumbers resource list of the new account, while retaining all other properties.
Remember that closing a sub-account, as described above, will release all the phone numbers of this account, so you can pre-transfer all numbers to your main account if you want to save them.
source share