Account Balance Query
Updated at:2025-10-27
API description
This API is used to query the account balance.
Permission description
The request initiator needs to have a valid AccessKeyID and SecretAccessKey to initiate the request. Please refer to Authentication.
Note
If the request lacks user certification information(i.e., anonymous access), it returns 403 Forbidden
Error message: AccessDenied.
Request structure
Plain Text
1POST /v{version}/finance/cash/balance
2HTTP/1.1
3Host: billing.baidubce.com
4ContentType: application/json; charset=utf-8
5Content-Length: <Content_Length>
6Authorization: authorization string
Request headers
There are no special headers required beyond the common headers.
Request parameters
No other request parameters are required.
Response headers
There are no special headers required beyond the common headers.
Response parameters
| Name | Types | Description |
|---|---|---|
| cashBalance | BigDecimal | User balance |
Request example
Description: Obtain balance information
Plain Text
1POST /v1/finance/cash/balance HTTP/1.1
2Host: billing.baidubce.com
3Date: Wed, 06 Apr 201920 06:34:40 GMT
4Authorization: AuthorizationString
Response example
Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: d4591fcf-025b-46bc-81eb-91ddda4e27bc
3Server: BWS
4Date: Tue, 09 Apr 2019 11:01:10 GMT
5Content-Type: application/json;charset=UTF-8
6{
7 "cashBalance": 850.0000
8}
Definition of model object
UserBalance details
| Parameter name | Types | Description |
|---|---|---|
| cashBalance | BigDecimal | User balance |
