Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HTTP 422] Unable to create record: Areacode is not supported yet #7

Open
tuhinhossain opened this issue Jan 1, 2019 · 3 comments
Open

Comments

@tuhinhossain
Copy link

I got "[HTTP 422] Unable to create record: Areacode is not supported yet"

My code is below:

$client->incomingPhoneNumbers
           ->create(array(
             "friendlyName" => "Test Phone",
                   "areaCode" => "713"
               ));
@edolix
Copy link
Contributor

edolix commented Jan 2, 2019

Hi @tuhinhossain, we are checking and i'll get back to you as soon i have more info! Thanks

@bryanrite
Copy link
Contributor

bryanrite commented Jan 3, 2019

Hi @tuhinhossain that method of purchasing a phone number via the API isn't supported yet but we will be supporting it in the future. I will leave this issue open and update you when we have completed it.

As a work around, you can lookup a number with areaCode via the availablePhoneNumbers function, then submit this number to incomingPhoneNumbers to purchase it.

@tuhinhossain
Copy link
Author

thanks @bryanrite for the idea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants