Skip to main content
GET
/
billing
/
costs
/
{organization_id}
Get costs overview for the organization. Currently unavailable in self-hosted ECE.
curl --request GET \
  --url https://api.elastic-cloud.com/api/v1/billing/costs/{organization_id} \
  --header 'Authorization: <api-key>'
{
  "balance": {
    "available": "<double>",
    "line_items": [
      {
        "ecu_balance": "<double>",
        "ecu_quantity": "<double>",
        "end": "<dateTime>",
        "id": "<string>",
        "start": "<dateTime>"
      },
      {
        "ecu_balance": "<double>",
        "ecu_quantity": "<double>",
        "end": "<dateTime>",
        "id": "<string>",
        "start": "<dateTime>"
      }
    ],
    "remaining": "<double>"
  },
  "costs": {
    "dimensions": [
      {
        "cost": "<double>",
        "type": "data_out"
      },
      {
        "cost": "<double>",
        "type": "data_out"
      }
    ],
    "total": "<double>"
  },
  "hourly_rate": "<double>",
  "trials": "<double>"
}

Authorizations

Authorization
string
header
required

Path Parameters

organization_id
string
required

(Required) Identifier for the organization

Example:

"<string>"

Query Parameters

from
string

A datetime for the beginning of the desired range for which to fetch costs. Defaults to start of current month.

Example:

"<string>"

to
string

A datetime for the end of the desired range for which to fetch costs. Defaults to the current date.

Example:

"<string>"

Response

Top-level cost overview for the organization

balance
object
costs
object
hourly_rate
string
Example:

"<double>"

trials
string
Example:

"<double>"

I