All Products
Search
Document Center

Expenses and Costs:QueryBillOverview

更新时间:Oct 28, 2025

Queries the bill overview of an account for a specified billing cycle.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

bss:DescribeBillList

get

*All Resource

*

  • bssapi:ProductCode

  • bssapi:ProductType

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: subscription.

  • PayAsYouGo: pay-as-you-go.

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:

  • SubscriptionOrder: subscription bill

  • PayAsYouGoBill: pay-as-you-go bill

  • Refund: refund

  • Adjustment: adjustment

PayAsYouGoBill

Currency

string

The currency. Valid values:

  • CNY

  • USD

  • JPY

CNY

SubscriptionType

string

The subscription type. Valid values:

  • Subscription: subscription.

  • PayAsYouGo: pay-as-you-go.

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.