I’m struggling with performing a post operation to this endpoint: {base_url}/phone/common_areas
Description
No matter what I try, I cannot get a common area device to create using the API. This is the entire payload:
{‘display_name’: ‘myname’, ‘extension_number’: ‘8002’, ‘site_id’: ‘nBXjQummY7FVEmtA’, ‘plan_type’: ‘UNLIMITED_PLAN_US_CA’, ‘phone_numbers’: [{‘number’: ‘+1xxx27330xx’, ‘source’: ‘external’}], ‘outbound_caller_id’: ‘+1xxx27330xx’, ‘select_outbound_caller_id’: ‘off’}
I have tried many different values for plan_type.
When I use the API to fetch my account’s plan types, these are the values it returns:
{‘calling_plans’: [{‘type’: 200, ‘name’: ‘US/CA Unlimited Calling Plan’, ‘subscribed’: 10, ‘assigned’: 5, ‘available’: 5}, {‘type’: 3000, ‘name’: ‘Zoom Phone Pro’, ‘subscribed’: 10, ‘assigned’: 0, ‘available’: 10}]}
Error?
This is the error response from the POST operation regardless of what value I use for plan_type:
{“code”:400,“message”:“Plan type can not be empty.”}
This is an app to app integration. Any help would be greatly appreciated!