All Products
Search
Document Center

Compute Nest:ListServiceInstanceBill

Last Updated:Apr 10, 2026

Call the ListServiceInstanceBill operation to query bills for service instances.

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

computenest:ListServiceInstanceBill

get

*ServiceInstance

acs:computenest:{#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.

10

NextToken

string

No

The token that is used to retrieve the next page of results.

AAAAAVz7BQqj2xtiNSC3d3RAD38=

ServiceInstanceId

string

No

The ID of the service instance.

si-49793f3bfa034ec6a990

BillingCycle

string

Yes

The billing cycle in YYYY-MM format. Only billing cycles in the last 18 months are supported.

2024-05

Granularity

string

No

The granularity of the bills to query. Valid values:

  • MONTHLY: monthly. The data is consistent with the bills aggregated by billing cycle in the User Center.

  • DAILY: daily. The data is consistent with the bills aggregated by day in the User Center.

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

DAILY

BillingDate

string

No

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

2025-04-01

Response elements

Element

Type

Description

Example

object

NextToken

string

The token that is used to retrieve the next page of results.

AAAAAc3HCuYhJi/wvpk4xOr0VLbAx7BkQzyYC+ONO+WudHGKEdB0uWSY7AGnM3qCgm/Ynge7zU6NWdbj0Tegyajyqyc=

RequestId

string

The request ID.

2849EE73-AFFA-5AFD-9575-12FA886451DA

TotalCount

integer

The total number of entries.

0

MaxResults

integer

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

10

Item

array<object>

A list of billing information for the service instance.

object

The billing information for the service instance.

SplitBillingCycle

string

The month of the split bill.

2021-07

BillingDate

string

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

2024-10-23

SubscriptionType

string

The billing method. Valid values:

  • Subscription: subscription.

  • PayAsYouGo: pay-as-you-go.

Subscription

ProductName

string

The name of the product to which the resource belongs.

NLB

BillingItemCode

string

The code of the billable item.

disk

ProductCode

string

The product code.

sls

ProductDetail

string

The product details.

sls

InstanceID

string

The instance ID.

rm-bp1z88pb48487907u

DeductedByResourcePackage

string

The amount deducted by a resource plan.

0

ListPriceUnit

string

The unit of the list price.

CNY/GB

Usage

string

The number of input tokens.

{'EmbeddingTokens': 314}

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

BillingCycle

string

The billing cycle of the computing resources for the instance. This parameter is supported only for pay-as-you-go instances. Valid values:

  • Day: daily billing.

  • Month: monthly billing.

2025-02

BillingItem

string

The billable item.

bandwidth

Currency

string

The currency. Valid values:

  • CNY: Chinese Yuan.

  • USD: US Dollar.

  • JPY: Japanese Yen.

RMB

Examples

Success response

JSON format

{
  "NextToken": "AAAAAc3HCuYhJi/wvpk4xOr0VLbAx7BkQzyYC+ONO+WudHGKEdB0uWSY7AGnM3qCgm/Ynge7zU6NWdbj0Tegyajyqyc=",
  "RequestId": "2849EE73-AFFA-5AFD-9575-12FA886451DA",
  "TotalCount": 0,
  "MaxResults": 10,
  "Item": [
    {
      "SplitBillingCycle": "2021-07",
      "BillingDate": "2024-10-23",
      "SubscriptionType": "Subscription",
      "ProductName": "NLB",
      "BillingItemCode": "disk\n",
      "ProductCode": "sls",
      "ProductDetail": "sls",
      "InstanceID": "rm-bp1z88pb48487907u",
      "DeductedByResourcePackage": "0",
      "ListPriceUnit": "CNY/GB\n",
      "Usage": "{'EmbeddingTokens': 314}",
      "ListPrice": "0.12",
      "UsageUnit": "GB\n",
      "PretaxGrossAmount": "0",
      "InvoiceDiscount": "0",
      "PretaxAmount": "0",
      "BillingCycle": "2025-02",
      "BillingItem": "bandwidth\n",
      "Currency": "RMB"
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.