Get costs overview for the organization. Currently unavailable in self-hosted ECE. Deprecated
EXPERIMENTAL (it may change in future versions): Retrieves an overview of the costs by organization ID.
Path parameters
-
Identifier for the organization
Responses
-
Top-level cost overview for the organization
-
The specified date range is invalid. (code:
costs.invalid_date_range
) -
The current user does not have access to the requested organization. (code:
organization.invalid_access
) -
Organization not found. (code:
organization.not_found
) -
An error occurred when fetching an overview of the costs for the organization. (code:
billing_service.failed_request
)
GET /billing/costs/{organization_id}
curl \
-X GET https://api.elastic-cloud.com/api/v1/billing/costs/{organization_id}
Response examples (200)
{
"costs": {
"total": 42.0,
"dimensions": [
{
"type": "capacity",
"cost": 42.0
}
]
},
"trials": 42.0,
"hourly_rate": 42.0,
"balance": {
"available": 42.0,
"remaining": 42.0,
"line_items": [
{
"id": "string",
"ecu_quantity": 42.0,
"ecu_balance": 42.0,
"start": "2024-05-04T09:42:00+00:00",
"end": "2024-05-04T09:42:00+00:00"
}
]
}
}
Response examples (400)
# Headers
x-cloud-error-codes: costs.invalid_date_range
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
Response examples (403)
# Headers
x-cloud-error-codes: organization.invalid_access
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
Response examples (404)
# Headers
x-cloud-error-codes: organization.not_found
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
Response examples (500)
# Headers
x-cloud-error-codes: billing_service.failed_request
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}