超出限流
当超出速率限制时,API 将返回 HTTP 状态码429 -- "Too Many Requests",响应体为 JSON 格式,示例如下:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
UQPAY API 对身份验证接口做了限流,以防止滥用导致所有用户的 API 性能无法稳定维持。
| 请求类型 | 请求路径 | 速率限制(Sandbox) | 速率限制(Production) |
|---|---|---|---|
| 身份验证 | /api/v1/connect/token | 每分钟 60 次请求 | 每分钟 100 次请求 |
| 其他所有已认证请求 | /api/v1/* | 每分钟 500 次请求 | 每分钟 300 次请求 |
| 其他所有未认证请求 | /api/v1/* | 每分钟 200 次请求 | 每分钟 100 次请求 |
429 -- "Too Many Requests",响应体为 JSON 格式,示例如下:
HTTP/1.1 429 Too Many Requests
Date: Mon, 25 Jan 2021 13:16:59 GMT
Content-Type: application/json; charset=UTF-8
{
"code": "too_many_requests",
"message": "Too many requests have been made to the api. Please refer to the Developer Center for more information",
}
