List user Endpoint giving incorrect assignee information
Endpoint List/Get Phones: /v2/phone/numbers, /v2/phone/numbers/{numberId}
Description
Assignee on list phones and get phones occasionally gives the incorrect id for Common Area.
According to our portal, extension 8326 is assigned to Id tMHpKTQtRvOgMZ9vcISOuQ
however the API gives Id 7PU8rRbZSYOzYDpyrxXUMw
as the assigned Id. I’ve looked at data from the List and Get endpoints and they both have the same incorrect Id assigned. Any idea why the discrepency?
List Phone Result /v2/phone/numbers
{
"next_page_token": "REDACT",
"page_size": 100,
"total_records": 4819,
"phone_numbers": [
{
"id": "Eep_1QN7T2eQZVYWD3sYKA", -- Phone Id
"number": "REDACT",
"source": "external",
"status": "available",
"number_type": "toll",
"capability": [
"incoming",
"outgoing"
],
"location": "United States",
"assignee": {
"id": "7PU8rRbZSYOzYDpyrxXUMw", -- Id in question
"name": "REDACT",
"extension_number": 8326,
"type": "commonArea"
}
}]
}
Get Phone Result /v2/phone/numbers/Eep_1QN7T2eQZVYWD3sYKA
{
"id": "Eep_1QN7T2eQZVYWD3sYKA",
"number": "REDACT",
"source": "external",
"status": "available",
"number_type": "toll",
"capability": [
"incoming",
"outgoing"
],
"location": "United States",
"assignee": {
"id": "7PU8rRbZSYOzYDpyrxXUMw", -- Same invalid Id
"name": "REDACT",
"extension_number": 8326,
"type": "commonArea"
},
"sip_group": {
"display_name": "Zoom BYOC"
},
}
Get Common Area /v2/phone/common_areas/7PU8rRbZSYOzYDpyrxXUMw
{
"code": 404,
"message": "Common area does not exist: 7PU8rRbZSYOzYDpyrxXUMw."
}
Get Common Area /v2/phone/common_areas/tMHpKTQtRvOgMZ9vcISOuQ
{
"id": "tMHpKTQtRvOgMZ9vcISOuQ", -- Actual Id
"timezone": "America/Los_Angeles",
"country": {
"code": "US",
"name": "United States",
"country_code": "1"
},
"site": {
"name": "Main Site"
},
"department": "",
"policy": {
"international_calling": {
"enable": true,
"modified": false,
"locked": false
}
},
"display_name": "REDACT",
"extension_number": 8326, -- Appropriate ext.
"calling_plans": [
{
"type": 3040,
"name": "Zoom Phone Common Area",
"sub_refer_id": ""
}
],
"phone_numbers": [
{
"id": "Eep_1QN7T2eQZVYWD3sYKA", -- Original searched for Id
"number": "REDACT",
"display_name": "",
"source": "external"
}
],
"cost_center": "",
}