全部產品
Search
文件中心

:QueryBillOverview - 賬單總覽查詢服務

更新時間:Oct 14, 2025

查詢使用者某個賬期內的賬單總覽資訊。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

下表是API對應的授權資訊,可以在RAM權限原則語句的Action元素中使用,用來給RAM使用者或RAM角色授予調用此API的許可權。具體說明如下:

  • 操作:是指具體的許可權點。

  • 存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。

  • 資源類型:是指操作中支援授權的資源類型。具體說明如下:

    • 對於必選的資源類型,用前面加 * 表示。

    • 對於不支援資源級授權的操作,用全部資源表示。

  • 條件關鍵字:是指雲產品自身定義的條件關鍵字。

  • 關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。

操作

存取層級

資源類型

條件關鍵字

關聯操作

bss:DescribeBillList

get

*全部資源

*

  • bssapi:ProductCode
  • bssapi:ProductType

請求參數

名稱

類型

必填

描述

樣本值

BillingCycle

string

賬單日期,YYYY-MM。

2018-07

ProductCode

string

產品代碼。

rds

ProductType

string

產品類型。

rds

SubscriptionType

string

訂閱類型:

  • Subscription:預付費。

  • PayAsYouGo:後付費。

Subscription

BillOwnerId

integer

資源歸屬帳號的 ID,資源歸屬帳號是實際使用資源的帳號。

1234

返回參數

名稱

類型

描述

樣本值

object

Code

string

狀態代碼。

Success

Message

string

錯誤資訊。

Successful!

RequestId

string

請求 ID。

BCB1E1BC-05BF-4217-80EE-BF09A29407BA

Success

boolean

是否成功。

true

Data

object

返回資料。

BillingCycle

string

賬期,格式:YYYY-MM。

2020-03

AccountID

string

帳號 ID。

185766xxxx

AccountName

string

帳號。

test@test.aliyunid.com

Items

object

Item

array<object>

賬單詳情。

object

RoundDownDiscount

string

抹零優惠。

0

Item

string

賬單類型,取值:

  • SubscriptionOrder。預付費賬單

  • PayAsYouGoBill。後付費賬單

  • Refund。退款

  • Adjustment。調賬

PayAsYouGoBill

Currency

string

幣種,取值:

  • CNY。

  • USD。

  • JPY。

CNY

SubscriptionType

string

訂閱類型,取值:

  • Subscription:預付費。

  • PayAsYouGo:後付費。

Subscription

DeductedByCashCoupons

number

代金券抵扣。

0

BillAccountName

string

賬單所屬帳號名稱。

test@test.aliyunid.com

BizType

string

業務類型。

trusteeship

DeductedByCoupons

number

優惠券抵扣。

0

OutstandingAmount

number

未結清金額或信用結算金額(普通使用者的欠費, 或者信用客戶信用額度消耗)。

0

PipCode

string

產品 Code,與費用中心賬單產品 Code 一致

rds

PretaxAmount

number

應付金額。

100

ProductName

string

產品名稱。

Nat網關

CommodityCode

string

商品 Code,與費用中心產品明細 Code 一致

rds

AdjustAmount

number

信用額度退款抵扣。

0

ProductDetail

string

產品明細。

NAT Gateway (Pay-As-You-Go)

OwnerID

string

賬單 OwnerID。

1222

DeductedByPrepaidCard

number

儲值卡抵扣。

0

ProductType

string

產品類型。

rds

InvoiceDiscount

number

優惠金額。

0

PaymentAmount

number

現金支付(含信用額度退款抵扣)。

100

BillAccountID

string

賬單所屬帳號 ID。

185766xxxx

PretaxGrossAmount

number

原始金額。

100

CashAmount

number

現金支付(不包含信用額度退款抵扣)。

0

ProductCode

string

產品代碼。

rds

樣本

正常返回樣本

JSON格式

{
  "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"
        }
      ]
    }
  }
}

錯誤碼

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情