You can call the ListServiceInstanceBill operation to query the bills of a service instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
computenestsupplier:ListServiceInstanceBill |
get |
ServiceInstance
|
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:
|
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:
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 |
| 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.