Query available balance of fund account
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
bss:DescribeBillingAccount |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| FundAccountId |
string |
No |
Account ID. If not specified, the account ID owned by the current account (owner) is used by default. |
12332112 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
BssApiPlainResult |
||
| Metadata |
any |
Response metadata |
{} |
| RequestId |
string |
Request ID |
F96A2D13-7509-5DF9-A60E-E7E3A3CB68E8 |
| FundAccountId |
string |
Account ID |
12332112 |
| FundAccountOwnerAccountId |
string |
Account ID of the fund account owner |
1344312434 |
| FundAccountStatus |
string |
Account status |
valid |
| FundAccountType |
string |
Fund account type. Valid values: DIRECT_USER: Alibaba Cloud direct customer account. RESELLER_QUOTA: ecosystem account. |
REDIRECT_USER |
| AvailableAmount |
string |
Available amount |
100 |
| CashAmount |
string |
Cash balance |
50 |
| NegativeBillAmount |
string |
Negative bill amount |
0 |
| CreditAmount |
string |
Credit quota |
100 |
| AvailableCreditAmount |
string |
Available credit amount |
50 |
| CreditRefundAmount |
string |
Credit refund balance |
0 |
| UnclearedAmount |
string |
Uncleared amount (current month uncleared + historical months uncleared) |
50 |
| CurrentMonthUnclearedAmount |
string |
Current month uncleared amount |
20 |
| HistoryMonthUnclearedAmount |
string |
Historical months uncleared amount |
30 |
| BankAcceptanceAmount |
string |
Bank acceptance bill amount |
0 |
| ExtendLedgerList |
array<object> |
Extended ledger list |
|
|
object |
|||
| Currency |
string |
Currency of the ledger amount, such as CNY and USD. |
CNY |
| LedgerName |
string |
Ledger name |
应付对冲账本 |
| OriginalAmount |
string |
Ledger balance |
50 |
| QuotaAmount |
string |
Ecosystem end customer quota |
20 |
| QuotaConsumedAmount |
string |
Consumed quota of ecosystem end customer |
10 |
| Currency |
string |
Currency |
CNY |
| OriginalCashAmountList |
array<object> |
Original cash ledger list. International site users may have cash ledgers in multiple currencies. |
|
|
object |
|||
| Amount |
string |
Amount |
10 |
| Currency |
string |
Currency |
USD |
| CreditUser |
boolean |
Indicates whether credit control is enabled |
Examples
Success response
JSON format
{
"Metadata": "{}",
"RequestId": "F96A2D13-7509-5DF9-A60E-E7E3A3CB68E8",
"FundAccountId": "12332112",
"FundAccountOwnerAccountId": "1344312434",
"FundAccountStatus": "valid",
"FundAccountType": "REDIRECT_USER",
"AvailableAmount": "100",
"CashAmount": "50",
"NegativeBillAmount": "0",
"CreditAmount": "100",
"AvailableCreditAmount": "50",
"CreditRefundAmount": "0",
"UnclearedAmount": "50",
"CurrentMonthUnclearedAmount": "20",
"HistoryMonthUnclearedAmount": "30",
"BankAcceptanceAmount": "0",
"ExtendLedgerList": [
{
"Currency": "CNY",
"LedgerName": "应付对冲账本",
"OriginalAmount": "50"
}
],
"QuotaAmount": "20",
"QuotaConsumedAmount": "10",
"Currency": "CNY",
"OriginalCashAmountList": [
{
"Amount": "10",
"Currency": "USD"
}
],
"CreditUser": false
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | RequestTimeout | Request timed out. Please try again later. | Request timed out, please try again later |
| 400 | AccountNoQueryPricePermission | This page cannot be accessed because you do not have discount rights query permissions. Please contact the main account to go to the cost center for authorization. The permission point that needs authorization is queryprice. | This page cannot be accessed because you do not have discount rights query permissions. Please contact the main account to go to the cost center for authorization. The permission point that needs authorization is queryprice. |
| 400 | SubAccountNoQueryPricePermission | This page cannot be accessed because you do not have discount rights query permissions. Contact the main account to go to the RAM console for authorization. The Action to be authorized is bss:QueryPrice. | This page cannot be accessed because you do not have discount rights query permissions. Contact the main account to go to the RAM console for authorization. The Action to be authorized is bss:QueryPrice. |
| 400 | NoFundAccountPermission | The caller does not have permission for the specified fund account. | The current login account does not have permission to operate the specified account. |
| 400 | NoPermission | You are not authorized to perform this action. | You do not have permissions to perform the operation. |
| 400 | InnerAccountNoQueryPricePermission | In view of data security and compliance requirements, please understand the inconvenience caused to you by controlling the amount-related information and permissions of the group's cloud account. More questions please refer to the document. | Due to data security and compliance requirements, the Group's cloud account amount information permissions are controlled. Please understand the inconvenience caused. You can view it through HCRM/cloud platform. For details, please refer to: https://aliyuque.antfin.com/yunfei.xyf/kr0b8h/yvdm6izaeulmq8g2 。 |
| 400 | InnerSubAccountNoQueryPricePermission | In view of data security and compliance requirements, please understand the inconvenience caused to you by controlling the amount-related information and permissions of the group's cloud account. | Due to data security and compliance requirements, the Group's cloud account amount information permissions are controlled. Please understand the inconvenience caused. You can view it through HCRM/cloud platform. For details, please refer to: https://aliyuque.antfin.com/yunfei.xyf/kr0b8h/yvdm6izaeulmq8g2 。 |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.