DescribeSplitItemBill - 分账账单服务

更新时间:

查询分账账单。

接口说明

  • 分账账单当月数据查询结果仅供参考,不作为对账依据。当月最终账单在次月 4 日 12 点后查询,当月分账账单数据中不包含未结算(未出账,累账中)的后付费数据。

  • 分账账单数据支持最近 12 个月数据。

  • 分账账单数据相对于实际费用消耗延迟 48 小时更新,其中分拆型云产品(例如:CDN、OSS、共享带宽等)各个分拆项(例如:域名、Bucket、EIP 等)的具体费用延迟 72 小时更新。

  • 分账账单数据需要用户在控制台分账账单页面开通后才可提供,自开通后延迟 24 小时可使用。

  • 单用户限流 10 笔/秒,如遇超时,请重试。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。

  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。

  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:

    • 对于必选的资源类型,用前面加 * 表示。

    • 对于不支持资源级授权的操作,用全部资源表示。

  • 条件关键字:是指云产品自身定义的条件关键字。

  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。

操作

访问级别

资源类型

条件关键字

关联操作

bssapi:DescribeSplitItemBill

get

*全部资源

*

bssapi:ProductCode
bssapi:ProductType

请求参数

名称

类型

必填

描述

示例值

BillingCycle

string

账单日期,YYYY-MM。

2020-03

ProductCode

string

产品代码。

rds

ProductType

string

产品类型。

rds

SubscriptionType

string

订阅类型。取值:

  • Subscription:预付费。

  • PayAsYouGo:后付费。

说明

必须和 ProductCode 参数一起使用。

PayAsYouGo

NextToken

string

用来表示当前调用开始读取的位置,参数值必须为空或者使用返回结果中的 NextToken 设值,否则会报错。空代表从头开始读取。

CAESEgoQCg4KCmd

MaxResults

integer

本次读取的最大数据记录数量。默认值:20,最大值:300。

20

BillOwnerId

integer

资源归属账号的 ID,资源归属账号是实际使用资源的账号。

123

InstanceID

string

实例 ID。

i-kjhdskjgshfdlkjfdh

SplitItemID

string

分拆项 ID。

i-kjhdskjgshfdlkjfdh

Granularity

string

查询账单的颗粒度。取值:

  • MONTHLY:月。与用户中心-分账账单-账期账单一致。

  • DAILY:日。与用户中心-分账账单-按天账单一致。

说明

选择 DAILY 需指定 BillingDate。

Monthly

BillingDate

string

账单日期,仅当 Granularity 为 DAILY 时必填,格式为 YYYY-MM-DD。

2020-03-02

TagFilter

array<object>

标签过滤条件,支持多组标签查询条件 TagValues。多组 TagValues 条件之间为或关系。

object

标签过滤条件。

TagValues

array

TagValues.N 用于查找符合指定标签值的账单,由字符串列表组成。标签值长度的取值范围:1~128。N 的取值范围:1~20。

  • 指定 TagValues.N 时,需同时指定 TagFilter.N.TagKey,否则报错 InvalidParameter.TagValues。

  • 指定多个标签值时,则满足任一标签值的账单都会被查询到。

TestValue

string

标签值。

TestValue

TagKey

string

TagFilter.N 用于查找符合指定标签的账单,由一个键值对组成。标签键长度的取值范围:1~128。N 的取值范围:1~20

  • 仅指定 TagFilter.N.TagKey 时,则返回关联该标签键的所有账单。

  • 同时指定多个标签键值对时,满足任一标签键值对的账单被查找到。

  • 如果资源上的标签发生变动,仅能查询标签存续期间的账单。

TestKey

IsHideZeroCharge

boolean

根据原价(PretaxGrossAmount)和应付(PretaxAmount)是否都为 0 做过滤。取值:

  • false。

  • true。

false

PipCode

string

产品 Code,与费用中心账单产品 Code 一致。

rds

返回参数

名称

类型

描述

示例值

object

Code

string

状态码。

Success

Message

string

错误信息。

Successful!

RequestId

string

请求 ID。

79EE7556-0CFD-44EB-9CD6-B3B526E3A85F

Success

boolean

是否成功。

true

Data

object

返回数据。

NextToken

string

用来表示当前调用返回读取到的位置,空代表数据已经读取完毕。下次调用时,需要将此设置到入参 NextToken 中。

CAESEgoQCg4K

BillingCycle

string

账单日期,格式:YYYY-MM。

2020-03

MaxResults

integer

本次请求所返回的最大记录条数。

20

AccountID

string

账号 ID。

185xxxx3489

TotalCount

integer

总记录数。

20

AccountName

string

用户账号。

test@test.aliyunid.com

Items

array<object>

账单详情。

object

SplitAccountID

string

分拆项所属账号 AccountID

12**122

BillAccountName

string

账单所属账号名称。

test@test.aliyunid.com

SubscriptionType

string

订阅类型,取值: Subscription:预付费。 PayAsYouGo:后付费。

PayAsYouGo

InstanceSpec

string

实例规格。

ecs.sn1ne.3xlarge

DeductedByCoupons

number

优惠券优惠金额。

0

Region

string

地域。

杭州

OutstandingAmount

number

未结清金额。

0.1

PipCode

string

产品 Code,与费用中心账单产品 Code 一致

rds

CommodityCode

string

商品 Code,与费用中心产品明细 Code 一致。

rds

NickName

string

实例昵称。

nick

ProductDetail

string

产品明细。

云数据库RDS

Usage

string

用量。

100

IntranetIP

string

内网 IP。

192.xx.xx.xx

UsageUnit

string

用量单位。

GB

SplitCommodityCode

string

分拆项商品 code。

rds

BillAccountID

string

账单所属账号 ID。

185xxxx3489

ProductType

string

产品类型。

rds

DeductedByResourcePackage

string

资源包抵扣。

0

PaymentAmount

number

现金支付(含信用额度退款抵扣)。

0

SplitBillingCycle

string

分账月。

2021-06

ServicePeriod

string

服务时长。

20

SplitItemName

string

分拆项名称。

iZ28bycvyb4Z

ListPrice

string

单价。

0.12

Zone

string

可用区。

华北1

PretaxGrossAmount

number

原始金额。

0

CashAmount

number

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

0

InstanceConfig

string

实例详细配置。

CPU:12

BillingDate

string

账单日期,格式 YYYY-MM-DD。暂未支持。

2020-01-20

InternetIP

string

公网 IP。

34.xx.x.x

Item

string

账单类型: SubscriptionOrder(预付订单)。 PayAsYouGoBill (后付账单)。 Refund (退款)。 Adjustment (调账)。

PayAsYouGoBill

SplitItemID

string

分拆项 ID。

i-28bycvyb4

InstanceID

string

实例 ID。

i-kjhdskjgshfdlkjfdh

Tag

string

资源标签。资源上标签变更时,则存续期间产生的账单会有此标签。

key:testKey value:testValue; key:testKey1 value:testValues1

Currency

string

币种,取值: CNY。 USD。 JPY。

CNY

DeductedByCashCoupons

number

代金券抵扣。

0

BizType

string

业务类型

trusteeship

BillingItem

string

计费项。

带宽

BillingItemCode

string

计费项代码。

disk

CostUnit

string

财务单元。

未分配

ListPriceUnit

string

单价单位。

元/GB

ResourceGroup

string

资源组。

默认资源组

PretaxAmount

number

应付金额。

0

ServicePeriodUnit

string

服务时长单位。

小时

SplitBillingDate

string

分账天。

2021-06-01

ProductName

string

产品名称。

云数据库RDS

SplitProductDetail

string

分拆项产品明细名称。

云数据库

AdjustAmount

number

信用额度退款抵扣。

0

OwnerID

string

资源 Owner 账号 AccountID(多账号代付场景)。

169***013

DeductedByPrepaidCard

number

储值卡抵扣。

0

InvoiceDiscount

number

优惠金额。

0

SplitAccountName

string

分拆项所属账号名称。

test**1122

BillingType

string

计费方式。

其它

ProductCode

string

产品代码。

rds

ItemName

string

项目名称。

iZ28bycvyb4Z

AfterDiscountAmount

number

优惠后金额(包含券抵扣的应付金额数据。计算规则为:优惠后金额=官网目录价-优惠金额)

示例

正常返回示例

JSON格式

{
  "Code": "Success",
  "Message": "Successful!",
  "RequestId": "79EE7556-0CFD-44EB-9CD6-B3B526E3A85F",
  "Success": true,
  "Data": {
    "NextToken": "CAESEgoQCg4K",
    "BillingCycle": "2020-03",
    "MaxResults": 20,
    "AccountID": "185xxxx3489",
    "TotalCount": 20,
    "AccountName": "test@test.aliyunid.com",
    "Items": [
      {
        "SplitAccountID": "12**122",
        "BillAccountName": "test@test.aliyunid.com",
        "SubscriptionType": "PayAsYouGo",
        "InstanceSpec": "ecs.sn1ne.3xlarge",
        "DeductedByCoupons": 0,
        "Region": "杭州",
        "OutstandingAmount": 0.1,
        "PipCode": "rds",
        "CommodityCode": "rds",
        "NickName": "nick",
        "ProductDetail": "云数据库RDS",
        "Usage": "100",
        "IntranetIP": "192.xx.xx.xx",
        "UsageUnit": "GB",
        "SplitCommodityCode": "rds",
        "BillAccountID": "185xxxx3489",
        "ProductType": "rds",
        "DeductedByResourcePackage": "0",
        "PaymentAmount": 0,
        "SplitBillingCycle": "2021-06",
        "ServicePeriod": "20",
        "SplitItemName": "iZ28bycvyb4Z",
        "ListPrice": "0.12",
        "Zone": "华北1",
        "PretaxGrossAmount": 0,
        "CashAmount": 0,
        "InstanceConfig": "CPU:12",
        "BillingDate": "2020-01-20",
        "InternetIP": "34.xx.x.x",
        "Item": "PayAsYouGoBill",
        "SplitItemID": "i-28bycvyb4",
        "InstanceID": "i-kjhdskjgshfdlkjfdh",
        "Tag": "key:testKey value:testValue; key:testKey1 value:testValues1",
        "Currency": "CNY",
        "DeductedByCashCoupons": 0,
        "BizType": "trusteeship",
        "BillingItem": "带宽",
        "BillingItemCode": "disk",
        "CostUnit": "未分配",
        "ListPriceUnit": "元/GB",
        "ResourceGroup": "默认资源组",
        "PretaxAmount": 0,
        "ServicePeriodUnit": "小时",
        "SplitBillingDate": "2021-06-01",
        "ProductName": "云数据库RDS",
        "SplitProductDetail": "云数据库",
        "AdjustAmount": 0,
        "OwnerID": "169***013",
        "DeductedByPrepaidCard": 0,
        "InvoiceDiscount": 0,
        "SplitAccountName": "test**1122",
        "BillingType": "其它",
        "ProductCode": "rds",
        "ItemName": "iZ28bycvyb4Z",
        "AfterDiscountAmount": 0
      }
    ]
  }
}

错误码

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情