Skip to main content
Solved

The GET phone number api doesn't list the country of the phone number

  • December 31, 2024
  • 4 replies
  • 34 views

Forum|alt.badge.img

I’m trying to use this GET: https://developers.ringcentral.com/api-reference/Phone-Numbers/readAccountPhoneNumber 

 

it says in the response body that it should have country: 

 

 

 

 however I don’t see it in the Results: 

 

 

I’m wondering how I can get the country of the phone number as I want to create an automation that tells me how many numbers I have from each country. 

Best answer by PhongVu

jackson-1 wrote:

unfortunately I need to know about the amount of numbers I have in inventory and not used by an extension/ user, so I can’t use that GET.  

For those numbers, you may need to call this API to get the detailed info.

View original
Did this thread help you find an answer to your question?

4 replies

PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • 2330 replies
  • December 31, 2024

Confirmed that the country object is missing from the response. I will create a report to the team to see if it’s a bug or it is not supported at all.

Meanwhile, you must call the get extension phone numbers API which returns the country info. Unfortunately, you have to call the API for each extension under your account.


Forum|alt.badge.img
  • Author
  • Known Participant
  • 13 replies
  • December 31, 2024

unfortunately I need to know about the amount of numbers I have in inventory and not used by an extension/ user, so I can’t use that GET.  


PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • 2330 replies
  • Answer
  • December 31, 2024
jackson-1 wrote:

unfortunately I need to know about the amount of numbers I have in inventory and not used by an extension/ user, so I can’t use that GET.  

For those numbers, you may need to call this API to get the detailed info.


Forum|alt.badge.img
  • Author
  • Known Participant
  • 13 replies
  • December 31, 2024

yeah, i see that could work.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings