Queries the bill overview information in a billing cycle.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
BillingCycle | string | Yes | The billing cycle, in the YYYY-MM format. | 2018-07 |
ProductCode | string | No | The code of the service. | rds |
ProductType | string | No | The type of the service. | rds |
SubscriptionType | string | No | The billing method. Valid values:
| Subscription |
BillOwnerId | long | No | The ID of the member. If you specify a value for this parameter, you can query the bills of the specified member. If you leave this parameter empty, the bills of the current account are queried by default. | 1234 |
Response parameters
Examples
Sample success responses
JSON
format
{
"Code": "Success",
"Message": "Successful!",
"RequestId": "BCB1E1BC-05BF-4217-80EE-BF09A29407BA",
"Success": true,
"Data": {
"BillingCycle": "2020-03",
"AccountID": "185766xxxx",
"AccountName": "test@test.aliyunid.com",
"Items": {
"Item": [
{
"RoundDownDiscount": "0",
"Item": "PayAsYouGoBill",
"Currency": "CNY",
"SubscriptionType": "Subscription",
"DeductedByCashCoupons": 0,
"BillAccountName": "test@test.aliyunid.com",
"BizType": "trusteeship",
"DeductedByCoupons": 0,
"OutstandingAmount": 0,
"AfterTaxAmount": 0,
"PretaxAmountLocal": 0,
"Tax": 0,
"PipCode": "rds",
"PretaxAmount": 100,
"ProductName": "NAT Gateway\n",
"CommodityCode": "rds",
"AdjustAmount": 0,
"ProductDetail": "NAT Gateway (Pay-As-You-Go)",
"PaymentCurrency": "USD",
"OwnerID": "1222",
"DeductedByPrepaidCard": 0,
"ProductType": "rds",
"InvoiceDiscount": 0,
"PaymentAmount": 100,
"BillAccountID": "185766xxxx",
"PretaxGrossAmount": 100,
"CashAmount": 0,
"ProductCode": "rds"
}
]
}
}
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-03-28 | API Description Update | View Change Details |