文档

GetAuthorizationUrl - 获取授权链接

更新时间:

获取支付宝授权链接。

接口说明

准备工作

请先完成阿里云账号注册、获取阿里云访问密钥,更多信息,请参见通信授权服务使用流程

QPS 限制

本接口的单用户 QPS 限制为 1000 次/秒。超过限制,API 调用会被限流,这可能会影响您的业务,请合理调用。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
PhoneNostring

手机号。

1390000****
SchemeIdlong

授权场景 ID。您可在号码认证服务控制台授权场景管理页面查看授权场景 ID。

234****
EndDatestring

授权结束日期,合约型方案不能为空,类型:yyyy-MM-dd。

2020–12–28

返回参数

名称类型描述示例值
object
Codestring

状态码。

OK
Messagestring

状态码的描述。

请求成功
RequestIdstring

请求 ID。

8906582E-6722
Dataobject

结构体。

AuthorizationUrlstring

授权链接。

https://render.****.com/p/s/web-call-minapp/auth-bao?page=commauth/index&token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJiaXpUeXBlIjoiQ29tbUF1dGgiLCJiaXpJZCI6IjVmNWZjNjAzZDQzMTQ0MWZiYTZiNjYzM2QyMjIyNzU0IiwiZXhwIjoxNjA4MTkxODQxfQ.5IvBj2nKgr60APtotaIB13vtPVrdsPQ6avIfWxte1pA&_env=prod

示例

正常返回示例

JSON格式

{
  "Code": "OK",
  "Message": "请求成功",
  "RequestId": "8906582E-6722",
  "Data": {
    "AuthorizationUrl": "https://render.****.com/p/s/web-call-minapp/auth-bao?page=commauth/index&token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJiaXpUeXBlIjoiQ29tbUF1dGgiLCJiaXpJZCI6IjVmNWZjNjAzZDQzMTQ0MWZiYTZiNjYzM2QyMjIyNzU0IiwiZXhwIjoxNjA4MTkxODQxfQ.5IvBj2nKgr60APtotaIB13vtPVrdsPQ6avIfWxte1pA&_env=prod"
  }
}

错误码

HTTP status code错误码错误信息描述
400InvalidParametersThe specified parameter is not valid.参数无效
400MissingParameterYou must specify the parameter.参数缺失
400Throttling.SystemThe request was denied due to API flow control.接口被限流
400MobileNumberIllgealThe specified mobile phone number is invalid.手机号码不合法
400DataNotFoundThe specified scheme does not exist.查询方案不存在
400IllegalParameterThe specified endDate is invalid.参数无效
400SchemeNotPassedThe scheme is not passed.查询方案未通过审核
403ForbiddenThe user is not authorized to operate on the specified resource.权限校验不通过
403UnauthorizedOperationFailed to verify your access permissions.您的权限校验失败。
403UnauthorizedOperationYou are not authorized to perform this operation.您无权执行此操作。
500IdentityCertifyNotExistThe identity verification record does not exist.身份认证记录不存在
500InternalErrorAn error occurred while processing your request.内部错误。
500InternalErrorAn internal error occurred.内部异常
500SystemErrorA system error occurred.系统异常
500SystemErrorAn error occurred while processing your request.系统错误。
500OutOfServiceThe account is suspended.账号已停机
500FunctionNotSubscribedYou have not subscribed to the function.未订阅该功能

访问错误中心查看更多错误码。

变更历史

变更时间变更内容概要操作
2023-06-07OpenAPI 错误码发生变更查看变更详情

Java SDK

您可以通过添加 Maven 依赖安装阿里云 Java SDK。SDK 版本会持续更新,具体版本请以 OpenAPI 页面为准。

JAVA SDK MAVEN 坐标

<dependency>
  <groupId>com.aliyun</groupId>
  <artifactId>dypnsapi20170525</artifactId>
  <version>1.0.6</version>
</dependency>