调用 QueryResellerAvailableQuota 查询用户(代付场景下设置消费配额)的当前可用配额余额信息。
调试
前往 API Explorer 在线调试,API Explorer 提供在线调用 API、动态生成 SDK Example 代码和快速检索接口等能力,能显著降低使用云 API 的难度,推荐使用。
请求参数
名称 |
类型 |
是否必填 |
示例值 |
描述 |
OwnerId |
Long |
是 |
187****382 |
阿里云 UID |
ItemCodes |
String |
否 |
["CREDIT_QUOTA_BOOK_ITEM","CREDIT_CONSUME_BOOK_ITEM"] |
账本类型:
- CREDIT_QUOTA_BOOK_ITEM:总消费额度
- CREDIT_CONSUME_BOOK_ITEM:可用额度
|
返回参数
名称 |
类型 |
示例值 |
描述 |
RequestId |
String |
323232 |
请求标识 |
Code |
String |
200 |
返回码 |
Message |
String |
successful |
返回信息 |
Success |
Boolean |
true |
请求是否成功,取值:
|
Data |
String |
20000 |
可用额度 |
请求示例
https://business.aliyuncs.com/?Action=QueryResellerAvailableQuota
&OwnerId=187****382
&ItemCodes=["CREDIT_QUOTA_BOOK_ITEM","CREDIT_CONSUME_BOOK_ITEM"]
返回示例
{
"RequestId":"323232",
"Code":"200",
"Message":"successful",
"Success":true,
"Data": "20000"
}
错误码
HttpCode |
错误码 |
错误信息 |
描述 |
500 |
CreditInnerError |
This interface has some error. Please try again. |
界面错误,请重试 |
400 |
NotApplicable |
This API is not applicable for caller. |
该接口不适用 |
400 |
NotAuthorized |
This API is not authorized for caller. |
调用者未授权 |
400 |
InternalError |
The request processing has failed due to some unknown error, exception or failure. |
由于某些未知的错误或异常,请求处理失败。 |
400 |
ParameterError |
Missing the must parameter. |
缺少重要参数 |
500 |
UndefinedError |
The request processing has failed due to some unknown error. |
由于某些未知错误,请求处理失败 |