如何通过API获取RingCentral联络中心路由号码列表?



RingCentral有一类称为联络中心路由号码(CCRN(的电话号码,用于RingCentral Office和联络中心。是否可以通过API获取这些数字的列表?

在在线帐户门户中,这些数字位于以下位置:

"电话系统">"电话号码">"联络中心"。

我查看了RingCentral API参考,但没有看到联络中心的部分。

为了补充Grokify上面的答案,这些是contactCenterProviderID:

1 = In-Contact NA
2 = In-Contact EU
3 = In-Contact APAC
4 = In-Contact AUS

可以使用此处记录的列表帐户电话号码 API 检索联系中心路由号码 (CCRN( 列表:

https://developers.ringcentral.com/api-reference/Phone-Numbers/listAccountPhoneNumbers

CCRN 电话号码将usageType设置为ContactCenterNumber

查询 API 时,可以设置usageType查询字符串参数来筛选结果。在响应中,电话号码记录中存在相同的参数。

contactCenterProvider属性为 CCRN 填充,如下所示:

下面是一个示例:

GET /restapi/v1.0/account/11111111/phone-number?usageType=ContactCenterNumber&perPage=10
HTTP 200 OK
{
"uri" : "https://platform.ringcentral.com/restapi/v1.0/account/11111111/phone-number?page=1&perPage=10",
"records" : [ {
"uri" : "https://platform.ringcentral.com/restapi/v1.0/account/11111111/phone-number/22222222",
"id" : 22222222,
"phoneNumber" : "+18005550100",
"paymentType" : "TollFree",
"type" : "VoiceOnly",
"usageType" : "ContactCenterNumber",
"status" : "Normal",
"contactCenterProvider": {
"id": "1",
"name": "In-Contact NA"
}
} ]
}

可以更新电话号码的contactCenterProvider,如下所示:

PUT /restapi/v1.0/account/11111111/phone-number/22222222
{
"usageType": "ContactCenterNumber",
"contactCenterProvider": {
"id": "3"
}
}

更新响应:

{
"uri" : "https://platform.ringcentral.com/restapi/v1.0/account/11111111/phone-number/22222222",
"id" : 22222222,
"phoneNumber" : "+18005550100",
"paymentType" : "TollFree",
"type" : "VoiceOnly",
"usageType" : "ContactCenterNumber",  
"status" : "Normal",
"contactCenterProvider": {
"id": "3",
"name": "In-Contact APAC"
}
}

最新更新