Retrieves the bill overview for 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 in | 2018-07 |
ProductCode | string | No | The product code. | rds |
ProductType | string | No | The product type. | rds |
SubscriptionType | string | No | The billing method. Valid values:
| Subscription |
BillOwnerId | integer | No | The ID of the resource owner account. This refers to the account that uses the resource. | 1234 |
Response elements
Element | Type | Description | Example |
object | |||
Code | string | The status code. | Success |
Message | string | The response message. | Successful! |
RequestId | string | The request ID. | BCB1E1BC-05BF-4217-80EE-BF09A29407BA |
Success | boolean | Indicates whether the request was successful. | true |
| Data | object | The response data. | |
BillingCycle | string | The billing cycle in YYYY-MM format. | 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 round-down discount. | 0 |
Item | string | The bill type. Valid values:
| PayAsYouGoBill |
Currency | string | The currency. Valid values:
| CNY |
SubscriptionType | string | The subscription type. Valid values:
| Subscription |
BillAccountName | string | The bill's account name. | test@test.aliyunid.com |
BizType | string | The business type. | trusteeship |
DeductedByCoupons | number | The amount deducted by coupons. | 0 |
OutstandingAmount | number | The outstanding amount, which includes overdue payments and amounts settled by using a credit limit. | 0 |
AfterTaxAmount | number | The amount after tax is applied. This is the final billable amount including any applicable tax charges. | |
PretaxAmountLocal | number | The pretax amount in the local currency. This represents the billing amount before tax is applied, converted to the account's local currency setting. | |
Tax | number | The tax amount charged for the billing cycle. This is the difference between the after-tax amount and the pretax amount. | |
PipCode | string | The product code, which is the same as the one shown on bills in Billing Management. | rds |
PretaxAmount | number | The pretax amount. | 100 |
ProductName | string | The product name. | NAT Gateway |
CommodityCode | string | The commodity code, which is the same as the one shown for product details in Billing Management. | rds |
AdjustAmount | number | The amount paid using refund credit. | 0 |
ProductDetail | string | The product details. | NAT Gateway (Pay-As-You-Go) |
PaymentCurrency | string | The currency used for payment settlement. This field indicates the actual currency in which the payment was processed, which may differ from the billing currency (Currency) in cases of currency conversion or cross-border transactions. | |
OwnerID | string | The bill owner's ID. | 1222 |
ProductType | string | The product type. | rds |
InvoiceDiscount | number | The discount amount. | 0 |
PaymentAmount | number | The payment amount, including any amount paid using refund credit. | 100 |
BillAccountID | string | The bill's account ID. | 185766xxxx |
PretaxGrossAmount | number | The original amount. | 100 |
CashAmount | number | The amount paid in cash. This excludes any amount paid using refund credit. | 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",
"BillAccountName": "test@test.aliyunid.com",
"BizType": "trusteeship",
"DeductedByCoupons": 0,
"OutstandingAmount": 0,
"AfterTaxAmount": 0,
"PretaxAmountLocal": 0,
"Tax": 0,
"PipCode": "rds",
"PretaxAmount": 100,
"ProductName": "NAT Gateway",
"CommodityCode": "rds",
"AdjustAmount": 0,
"ProductDetail": "NAT Gateway (Pay-As-You-Go)",
"PaymentCurrency": "",
"OwnerID": "1222",
"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.