The API user can not be a subaccount, must be a parent account to transfer phone numbers between parent and child accounts.
We all do sometimes; code is hard. Get help now from our
support team, or lean on
the wisdom of the crowd browsing the
Twilio tag on Stack Overflow.