All Products
Search
Document Center

Compute Nest:ListServiceInstanceBill

Last Updated:Oct 23, 2025

You can call the ListServiceInstanceBill operation to query the bills of a service instance.

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

computenestsupplier:ListServiceInstanceBill

get

ServiceInstance

acs:computenestsupplier:{#regionId}:{#accountId}:serviceinstance/{#ServiceInstanceId}

None None

Request parameters

Parameter

Type

Required

Description

Example

MaxResults

integer

No

The number of entries to return on each page. Maximum value: 100. Default value: 20.

20

NextToken

string

No

The token that is used to start the next query. Valid values:

  • If NextToken is empty, no more results exist.

  • If NextToken has a value, the value is the token that is used to start the next query.

AAAAAfu+XtuBE55iRLHEYYuojI4=

ServiceInstanceId

string

No

The ID of the service instance.

You can call the ListServiceInstances operation to obtain the service instance ID.

si-0d0d7bc9accc4e2e8a8f

BillingCycle

string

Yes

The billing cycle in the YYYY-MM format.

2025-03

Granularity

string

No

The granularity at which you want to query bills. Valid values:

  • MONTHLY: by month. The bill details are consistent with the bills on the By Billing Cycle tab of the Bill Details page in User Center.

  • DAILY: by day. The bill details are consistent with the bills on the By Day tab of the Bill Details page in User Center.

Note

If you set this parameter to DAILY, you must specify BillingDate.

MONTHLY

BillingDate

string

No

The billing date. This parameter is required only when Granularity is set to DAILY. The format is YYYY-MM-DD.

2024-12-05

ServiceId

string

No

The service ID.

service-6121296da4f44e469519

ServiceVersion

string

No

The service version.

1

Response elements

Element

Type

Description

Example

object

NextToken

string

The token to start the next query.

AAAAAfu+XtuBE55iRLHEYYuojI4=

RequestId

string

The request ID.

7B68C6D1-0C22-53F7-997C-F95D109C31AA

TotalCount

integer

The total number of entries returned.

65

MaxResults

integer

The number of entries returned per page. Maximum value: 100. Default value: 20.

20

Item

array<object>

The name of the item.

object

The details of the bill item.

SplitBillingCycle

string

The month of the split bill.

2021-06

BillingDate

string

The billing date. The format is YYYY-MM-DD.

2024-12-05

SubscriptionType

string

The billing method:

  • Subscription: subscription.

  • PayAsYouGo: pay-as-you-go.

Subscription

ProductName

string

The product name.

oss

BillingItemCode

string

The code of the billable item.

disk

ProductCode

string

The product code.

oss

ProductDetail

string

The product details.

sls

InstanceID

string

The instance ID.

rm-wz9k051l23j3o3xa9

DeductedByResourcePackage

string

The deduction by a resource plan.

0

ListPriceUnit

string

The unit of the list price.

CNY/GB

Usage

string

The resource usage.

1

ListPrice

string

The list price.

0.12

UsageUnit

string

The unit of the usage.

GB

PretaxGrossAmount

string

The pretax gross amount.

0

InvoiceDiscount

string

The discount amount.

0

PretaxAmount

string

The pretax amount.

0

ServiceInstanceId

string

The ID of the service instance.

si-bc5d6ac7022647d3a3bd

BillingCycle

string

The billing cycle. The format is YYYY-MM.

2024-12

BillingItem

string

The billable item.

Bandwidth

Currency

string

The currency.

CNY

Examples

Success response

JSON format

{
  "NextToken": "AAAAAfu+XtuBE55iRLHEYYuojI4=",
  "RequestId": "7B68C6D1-0C22-53F7-997C-F95D109C31AA",
  "TotalCount": 65,
  "MaxResults": 20,
  "Item": [
    {
      "SplitBillingCycle": "2021-06\n",
      "BillingDate": "2024-12-05",
      "SubscriptionType": "Subscription",
      "ProductName": "oss",
      "BillingItemCode": "disk",
      "ProductCode": "oss",
      "ProductDetail": "sls",
      "InstanceID": "rm-wz9k051l23j3o3xa9",
      "DeductedByResourcePackage": "0",
      "ListPriceUnit": "CNY/GB\n",
      "Usage": "1",
      "ListPrice": "0.12",
      "UsageUnit": "GB",
      "PretaxGrossAmount": "0",
      "InvoiceDiscount": "0",
      "PretaxAmount": "0",
      "ServiceInstanceId": "si-bc5d6ac7022647d3a3bd",
      "BillingCycle": "2024-12",
      "BillingItem": "Bandwidth\n",
      "Currency": "CNY"
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.