Skip to main content
GET
/
billing
/
costs
/
{organization_id}
/
items
Get itemized costs for the organization. Currently unavailable in self-hosted ECE.
curl --request GET \
  --url https://api.elastic-cloud.com/api/v1/billing/costs/{organization_id}/items \
  --header 'Authorization: <api-key>'
{
  "costs": {
    "dimensions": [
      {
        "cost": "<double>",
        "type": "capacity"
      },
      {
        "cost": "<double>",
        "type": "storage_api"
      }
    ],
    "total": "<double>"
  },
  "data_transfer_and_storage": [
    {
      "cost": "<double>",
      "name": "<string>",
      "quantity": {
        "formatted_value": "<string>",
        "value": "<long>"
      },
      "rate": {
        "formatted_value": "<string>",
        "value": "<double>"
      },
      "sku": "<string>",
      "type": "<string>"
    },
    {
      "cost": "<double>",
      "name": "<string>",
      "quantity": {
        "formatted_value": "<string>",
        "value": "<long>"
      },
      "rate": {
        "formatted_value": "<string>",
        "value": "<double>"
      },
      "sku": "<string>",
      "type": "<string>"
    }
  ],
  "resources": [
    {
      "hours": "<long>",
      "instance_count": "<integer>",
      "kind": "kibana",
      "name": "<string>",
      "period": {
        "end": "<dateTime>",
        "start": "<dateTime>"
      },
      "price": "<double>",
      "price_per_hour": "<double>",
      "sku": "<string>"
    },
    {
      "hours": "<long>",
      "instance_count": "<integer>",
      "kind": "kibana",
      "name": "<string>",
      "period": {
        "end": "<dateTime>",
        "start": "<dateTime>"
      },
      "price": "<double>",
      "price_per_hour": "<double>",
      "sku": "<string>"
    }
  ]
}

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

The costs associated to a set of items

costs
object
data_transfer_and_storage
object[]
Example:
[
{
"cost": "<double>",
"name": "<string>",
"quantity": {
"formatted_value": "<string>",
"value": "<long>"
},
"rate": {
"formatted_value": "<string>",
"value": "<double>"
},
"sku": "<string>",
"type": "<string>"
},
{
"cost": "<double>",
"name": "<string>",
"quantity": {
"formatted_value": "<string>",
"value": "<long>"
},
"rate": {
"formatted_value": "<string>",
"value": "<double>"
},
"sku": "<string>",
"type": "<string>"
}
]
resources
object[]
Example:
[
{
"hours": "<long>",
"instance_count": "<integer>",
"kind": "kibana",
"name": "<string>",
"period": {
"end": "<dateTime>",
"start": "<dateTime>"
},
"price": "<double>",
"price_per_hour": "<double>",
"sku": "<string>"
},
{
"hours": "<long>",
"instance_count": "<integer>",
"kind": "kibana",
"name": "<string>",
"period": {
"end": "<dateTime>",
"start": "<dateTime>"
},
"price": "<double>",
"price_per_hour": "<double>",
"sku": "<string>"
}
]
I