Queries the bill overview of an account for a specified billing cycle.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
bss:DescribeBillList | get | *All Resource
|
| None |
Request parameters
Parameter | Type | Required | Description | Example |
BillingCycle | string | Yes | The billing cycle. The format is YYYY-MM. | 2018-07 |
ProductCode | string | No | The product code. | rds |
ProductType | string | No | The product type. | rds |
SubscriptionType | string | No | The subscription type. Valid values:
| Subscription |
BillOwnerId | integer | No | The ID of the account that uses the resource. | 1234 |
Response elements
Element | Type | Description | Example |
object | |||
Code | string | The status code. | Success |
Message | string | The error message. | Successful! |
RequestId | string | The request ID. | BCB1E1BC-05BF-4217-80EE-BF09A29407BA |
Success | boolean | Indicates whether the request was successful. | true |
| Data | object | The returned data. | |
BillingCycle | string | The billing cycle. The format is YYYY-MM. | 2020-03 |
AccountID | string | The account ID. | 185766xxxx |
AccountName | string | The account name. | test@test.aliyunid.com |
| Items | object | ||
| Item | array<object> | The bill details. | |
object | |||
RoundDownDiscount | string | The discount amount that is rounded down. | 0 |
Item | string | The billing method. Valid values:
| PayAsYouGoBill |
Currency | string | The currency. Valid values:
| CNY |
SubscriptionType | string | The subscription type. Valid values:
| Subscription |
DeductedByCashCoupons | number | The amount deducted by cash coupons. | 0 |
BillAccountName | string | The name of the account to which the bill belongs. | test@test.aliyunid.com |
BizType | string | The business type. | trusteeship |
DeductedByCoupons | number | The amount deducted by coupons. | 0 |
OutstandingAmount | number | The unsettled amount or the amount settled with credit. This can be an overdue payment for a regular user or the credit consumed by a credit-based user. | 0 |
PipCode | string | The product code. This is the same as the product code on the bill in User Center. | rds |
PretaxAmount | number | The pretax amount. | 100 |
ProductName | string | The product name. | Nat网关 |
CommodityCode | string | The commodity code. This is the same as the product code in User Center. | rds |
AdjustAmount | number | The amount deducted from a credit refund. | 0 |
ProductDetail | string | The product details. | NAT Gateway (Pay-As-You-Go) |
OwnerID | string | The ID of the bill owner. | 1222 |
DeductedByPrepaidCard | number | The amount deducted by prepaid cards. | 0 |
ProductType | string | The product type. | rds |
InvoiceDiscount | number | The discount amount. | 0 |
PaymentAmount | number | The amount paid in cash. This includes the amount deducted from a credit refund. | 100 |
BillAccountID | string | The ID of the account to which the bill belongs. | 185766xxxx |
PretaxGrossAmount | number | The original amount. | 100 |
CashAmount | number | The amount paid in cash. This does not include the amount deducted from a credit refund. | 0 |
ProductCode | string | The product code. | rds |
Examples
Success response
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,
"PipCode": "rds",
"PretaxAmount": 100,
"ProductName": "Nat网关",
"CommodityCode": "rds",
"AdjustAmount": 0,
"ProductDetail": "NAT Gateway (Pay-As-You-Go)",
"OwnerID": "1222",
"DeductedByPrepaidCard": 0,
"ProductType": "rds",
"InvoiceDiscount": 0,
"PaymentAmount": 100,
"BillAccountID": "185766xxxx",
"PretaxGrossAmount": 100,
"CashAmount": 0,
"ProductCode": "rds"
}
]
}
}
}Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.