List/Get Phones Endpoints giving incorrect assignee information

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": "",
}

Hi @so-danielsf
Thanks for reaching out to us and sharing this with the community. We are working on a fix right now related to common_areas and it will be live in July.
My only question here is that it seems like the id “7PU8rRbZSYOzYDpyrxXUMw” is found in the “assignee” object, so I belive it is expected to get that error, you should be using the id “Eep_1QN7T2eQZVYWD3sYKA” to query this endpoint /v2/phone/common_areas/{id}

Hi Elisa,

the Eep_1QN7T2eQZVYWD3sYKA id is the phone number Id not the common area Id so I shouldn’t use that to call common area info right? The Id of 7PU8rRbZSYOzYDpyrxXUMw is what I would have expected to use? I tested it out just in case and also and received the following error.

While documentation refers that the extension Id may be used, I don’t believe this works.

does the id for assignee object not work properly just for commonareas or other objects too?

this might be an issue with zoom rooms also. I was looking at some phones assigned to zoom rooms and it is giving a different room than what is assigned in the portal.

For example:
phone EXT 8310

{
  "id": "DtKsOT2AToSjbrSY9CRRkA",
  "number": "REDACT",
  "source": "external",
  "status": "available",
  "number_type": "toll",
  "capability": [
    "incoming",
    "outgoing"
  ],
  "location": "United States",
  "assignee": {
    "id": "zw9dLOPZRQKaLF8EB5lG5Q",  -- supposed zoom room id
    "name": "REDACT",
    "extension_number": 8310,
    "type": "user"
  },
  "site": {
    "id": "GUQO--W5T1ysqEA4MVpYcg",
    "name": "Main Site"
  },
  "carrier": {
    "code": 279,
    "name": "Carrier Platform"
  },
}

Looking at the response from /v2/phone/users/zw9dLOPZRQKaLF8EB5lG5Q this is not the user assigned to the extension in the portal.

{
  "id": "zw9dLOPZRQKaLF8EB5lG5Q",  -- zoom room id
  "phone_user_id": "dMkS0iqbSzeNH5F8kfcJgg",
  "email": "rooms_zw9dLOPZRQKaLF8EB5lG5Q@REDACT.com", -- doesn't match extension name either
  "extension_id": "fXsDWH0FSHSXJ5PH38qHEg",
  "extension_number": 8310,
  "status": "activate",
  "calling_plans": [],
  "phone_numbers": [
    {
      "id": "DtKsOT2AToSjbrSY9CRRkA",
      "number": "REDACT"
    }
  ],
}

because this is a zoom room, i thought maybe I needed to call /v2/phone/rooms/ zw9dLOPZRQKaLF8EB5lG5Q first and that might give me the appropriate user record but I get no response from that endpoint

THanks @so-danielsf
Sorry for the late reply here, I did not get a notification about your response.
I will send you a DM so we can coordinate a debugging session please