This topic describes how to query the bills of Elastic Container Instance (ECI).

Query bills in the console

View the bill overview

  1. Log on to the Alibaba Cloud console.
  2. Go to the Overview tab of the Bills page.
  3. Select the billing cycle that you want to query and view the information in the Product Cost Summary section of the Overview tab.

View hourly bills

  1. Log on to the Alibaba Cloud console.
  2. Go to the Bills tab of the Bills page.
  3. Select the billing cycle that you want to query and view the hourly bills of services.
Notice The bills of ECI are generated by hour. A latency may exist when you query the bills at the frontend. Usually, you can view the hourly bills of services for a billing cycle with a latency of 3 hours. For example, you can view the bill of ECI from 00:00 to 01:00 at 03:00.

View bills by instance

  1. Log on to the Alibaba Cloud console.
  2. Go to the Details tab of the Bills page.
  3. Select the billing cycle that you want to query and view the bill details of instances.

ECI is billed by instance. You can view the bill details of the following statistical items:

  • Billing item: You can view the bill details of billing items. Based on the resources requested when you create an ECI, the ECI can be billed by the CPU and memory specifications or the ECS instance type.
  • Instance: You can view the bill details of instances.

You can view the bill details of instances or billing items by the following statistical periods:

  • Billing cycle: You can view the bill details of each instance or each billing item by the billing cycle.
  • By day: You can view the daily bill details of each instance or each billing item.
  • Billing period: You can view the hourly bill details of each instance or each billing item.

Query bills by calling API operations

For more information about how to use API operations to query bills, see OpenAPI Explorer. Alibaba Cloud provides OpenAPI Explorer for you to debug API operations online. OpenAPI Explorer integrates the API operations of various Alibaba Cloud services. You can use OpenAPI Explorer to search for API operations, debug API operations, view API documentation, and generate SDK sample code.

Query the bill overview

  1. Log on to the Alibaba Cloud console.
  2. Go to the debugging page of the QueryBillOverview operation.
  3. Specify the billing cycle and product code, and submit the request to obtain a response.
{
	"Message": "Successful!",
	"RequestId": "972EADFB-D926-4560-97F6-**********",
	"Data": {
		"BillingCycle": "2020-02",
		"AccountID": "178**************",
		"Items": {
			"Item": [
				{
					"DeductedByCoupons": 0,
					"RoundDownDiscount": 1.89875,
					"ProductName": "Elastic Container Instance",
					"ProductDetail": "Elastic Container Instance",
					"ProductCode": "eci",
					"ProductType": "eci_betav1",
					"OutstandingAmount": 730.28,
					"DeductedByCashCoupons": 0,
					"PaymentAmount": 0,
					"DeductedByPrepaidCard": 0,
					"InvoiceDiscount": 11.512014,
					"Item": "PayAsYouGoBill",
					"SubscriptionType": "PayAsYouGo",
					"PretaxGrossAmount": 743.690764,
					"PretaxAmount": 730.28,
					"Currency": "CNY"
				}
			]
		},
		"AccountName": "*******"
	},
	"Code": "Success",
	"Success": true
}
Query hourly bills
  1. Log on to the Alibaba Cloud console.
  2. Go to the debugging page of the QueryBill operation.
  3. Specify the billing cycle and product code, and submit the request to obtain a response.
{
	"Message": "Successful!",
	"RequestId": "ABC66FBA-8D45-40C6-AB16-******",
	"Data": {
		"BillingCycle": "2020-02",
		"TotalCount": 696,
		"AccountID": "178**********",
		"PageSize": 2,
		"PageNum": 1,
		"Items": {
			"Item": [
				{
					"Status": "PayUnsettle",
					"DeductedByCoupons": 0,
					"RoundDownDiscount": 0.00625,
					"ProductName": "Elastic Container Instance",
					"ProductDetail": "Elastic Container Instance",
					"ProductCode": "eci",
					"SubOrderId": "",
					"ProductType": "eci_betav1",
					"DeductedByCashCoupons": 0,
					"OutstandingAmount": 0.92,
					"PaymentTime": "",
					"PaymentAmount": 0,
					"DeductedByPrepaidCard": 0,
					"InvoiceDiscount": 0.396966,
					"UsageEndTime": "2020-03-01 00:00:00",
					"Item": "PayAsYouGoBill",
					"SubscriptionType": "PayAsYouGo",
					"PretaxGrossAmount": 1.323216,
					"OwnerID": "",
					"PretaxAmount": 0.92,
					"Currency": "CNY",
					"UsageStartTime": "2020-02-29 23:00:00",
					"RecordID": "2020021411289567"
				},
				{
					"Status": "PayUnsettle",
					"DeductedByCoupons": 0,
					"RoundDownDiscount": 0.00625,
					"ProductName": "Elastic Container Instance",
					"ProductDetail": "Elastic Container Instance",
					"ProductCode": "eci",
					"SubOrderId": "",
					"ProductType": "eci_betav1",
					"DeductedByCashCoupons": 0,
					"OutstandingAmount": 0.92,
					"PaymentTime": "",
					"PaymentAmount": 0,
					"DeductedByPrepaidCard": 0,
					"InvoiceDiscount": 0.396966,
					"UsageEndTime": "2020-02-29 23:00:00",
					"Item": "PayAsYouGoBill",
					"SubscriptionType": "PayAsYouGo",
					"PretaxGrossAmount": 1.323216,
					"OwnerID": "",
					"PretaxAmount": 0.92,
					"Currency": "CNY",
					"UsageStartTime": "2020-02-29 22:00:00",
					"RecordID": "2020021411289562"
				}
			]
		},
		"AccountName": "*****"
	},
	"Code": "Success",
	"Success": true
}

Query bills by instance

  1. Log on to the Alibaba Cloud console.
  2. Go to the debugging page of the QueryInstanceBill operation.
  3. Specify the billing cycle and product code, and submit the request to obtain a response.
{
	"Message": "Successful!",
	"RequestId": "7AF0F015-E6D4-45D8-8C59-**********",
	"Data": {
		"BillingCycle": "2020-02",
		"TotalCount": 4,
		"AccountID": "1783**********",
		"PageSize": 2,
		"PageNum": 1,
		"Items": {
			"Item": [
				{
					"InstanceSpec": "",
					"ProductName": "Elastic Container Instance",
					"InstanceID": "eci-2ze162kf0hr17o5dfedv",
					"DeductedByCashCoupons": 0,
					"ListPriceUnit": "",
					"BillingDate": "",
					"ListPrice": "",
					"PaymentAmount": 0,
					"DeductedByPrepaidCard": 0,
					"InvoiceDiscount": 3.837338,
					"SubscriptionType": "PayAsYouGo",
					"Item": "PayAsYouGoBill",
					"PretaxGrossAmount": 306.986112,
					"InstanceConfig": "",
					"Currency": "CNY",
					"CostUnit": "Not allocated",
					"ResourceGroup": "",
					"BillingType": "Others",
					"Usage": "",
					"DeductedByCoupons": 0,
					"ProductDetail": "Elastic Container Instance",
					"ProductCode": "eci",
					"Zone": "",
					"ProductType": "eci_betav1",
					"OutstandingAmount": 302.47,
					"BillingItem": "",
					"NickName": "",
					"IntranetIP": "",
					"ServicePeriod": "2505600",
					"DeductedByResourcePackage": "",
					"UsageUnit": "",
					"OwnerID": "1783**********",
					"PretaxAmount": 302.47,
					"InternetIP": "",
					"Region": "",
					"Tag": ""
				},
				{
					"InstanceSpec": "",
					"ProductName": "Elastic Container Instance",
					"InstanceID": "eci-2ze17odcc0em3ivkfrmg",
					"DeductedByCashCoupons": 0,
					"ListPriceUnit": "",
					"BillingDate": "",
					"ListPrice": "",
					"PaymentAmount": 0,
					"DeductedByPrepaidCard": 0,
					"InvoiceDiscount": 3.837338,
					"SubscriptionType": "PayAsYouGo",
					"Item": "PayAsYouGoBill",
					"PretaxGrossAmount": 306.986112,
					"InstanceConfig": "",
					"Currency": "CNY",
					"CostUnit": "Not allocated",
					"ResourceGroup": "",
					"BillingType": "Others",
					"Usage": "",
					"DeductedByCoupons": 0,
					"ProductDetail": "Elastic Container Instance",
					"ProductCode": "eci",
					"Zone": "",
					"ProductType": "eci_betav1",
					"OutstandingAmount": 302.18,
					"BillingItem": "",
					"NickName": "",
					"IntranetIP": "",
					"ServicePeriod": "2505600",
					"DeductedByResourcePackage": "",
					"UsageUnit": "",
					"OwnerID": "1783**********",
					"PretaxAmount": 302.18,
					"InternetIP": "",
					"Region": "",
					"Tag": ""
				}
			]
		},
		"AccountName": "******"
	},
	"Code": "Success",
	"Success": true
}