【问题标题】:RingCentral giving me error of "[OutboundFaxes]" at the time of sending FAXRingCentral 在发送传真时给我“[OutboundFaxes]”错误
【发布时间】:2018-05-11 11:21:01
【问题描述】:

我正在尝试使用以下 URL "https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/****88004/fax" 使用 POSTMAN 发送传真 我得到了:

{
    "errorCode": "CMN-408",
    "message": "In order to call this API endpoint, user needs to have [OutboundFaxes] permission for requested resource.",
    "errors": [
        {
            "errorCode": "CMN-408",
            "message": "In order to call this API endpoint, user needs to have [OutboundFaxes] permission for requested resource.",
            "permissionName": "OutboundFaxes"
        }
    ],
    "permissionName": "OutboundFaxes"
}

【问题讨论】:

  • 这是什么类型的扩展,你有什么账户类型,例如办公室高级版?如果你调用/restapi/v1.0/account/~/extension/~ type 属性返回什么?使用"type": "User" 扩展时,即使是我可以创建的最有限的角色也具有OutboundFaxes 端点中列出的OutboundFaxes 权限。在在线帐户门户 (service.ringcentral.com) 中,这对应于 General: Overview, Messages, Contacts, Standard User ToolsPolicies: Internal Calls
  • 此错误表明您的帐户没有传真功能。您可以通过调用/restapi/v1.0/account/~/service-info API 端点并查找"featureName": "Faxes" 来查看这一点。请按照本页底部的链接创建(并监控)支持票:developer.ringcentral.com/support.html。团队将需要您的帐号 ID/电话号码进行调查。

标签: api fax ringcentral


【解决方案1】:

在发出发送传真请求时,Bearer Token 出现问题。

因为我使用主帐户详细信息来生成令牌,并且在发送传真时,我使用的是扩展 102 的扩展 ID,并且承载令牌是使用主帐户扩展 101 生成的。这就是它抛出 [OutboundFaxes] 权限错误的原因。

使用扩展名 102 的 ExtensionId 发送传真,然后使用子帐户 102 详细信息而不是主帐户生成令牌。

【讨论】:

    【解决方案2】:

    我已成功重现该问题。

    test case

    根本原因正是@Jack所说的:使用分机101授权,然后尝试使用分机102发送传真。

    错误信息是

    { errorCode: 'CMN-408',
          message: 'In order to call this API endpoint, user needs to have [OutboundFaxes] permission for requested resource.',
          errors:
           [ { errorCode: 'CMN-408',
               message: 'In order to call this API endpoint, user needs to have [OutboundFaxes] permission for requested resource.',
               permissionName: 'OutboundFaxes' } ],
          permissionName: 'OutboundFaxes' }
    

    我认为错误信息需要改进。通过阅读很难找出根本原因。我已将此问题报告给 RingCentral 工程团队。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-06-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多