---
title: "Get the billing report for an organization"
method: POST
path: "/organization/{organization_id}/billing-report"
tags: ["Organizations"]
---

# Get the billing report for an organization

`POST /organization/{organization_id}/billing-report`

> This endpoint **may be changed or removed at any time**. Don't use it in production environments.

## Path parameters

- `organization_id` string, required

## Request body

- OrganizationBillingReportReadRequestBody — OrganizationBillingReportReadRequestBody
  - `billing_group_name` string — Name of the Billing Group to fetch invoice lines for
  - `ending_date` string, required — Date before which invoice lines should be returned (exclusive)
  - `service_name` string — Name of the service to fetch invoice lines for
  - `starting_date` string, required — Date after which invoice lines should be returned (inclusive)

## Response `200`

Response

- OrganizationBillingReportReadResponse — OrganizationBillingReportReadResponse
  - `line_items` object[], required — List of invoice line items
    - `billing_group_id` string, required — Billing group ID
    - `ending_before` string, required — Ending time for the time slice for which this line item was accrued
    - `list_price` number, required — The list price associated with the line item.
    - `name` string, required — Product name
    - `presentation_group_values` object, required — Metadata for this particular product consumption
    - `pricing_group_values` object, required — Pricing dimensions for this particular product's consumption
    - `product_custom_fields` object, required — Custom fields for this product
    - `product_tags` string[], required — The current product tags associated with the line item's product_id.
    - `product_type` 'FixedProductListItem' | 'UsageProductListItem' | 'SubscriptionProductListItem' | 'CompositeProductListItem', required — The type of the line item's product
    - `quantity` number, required — How much of this product was metered in this time slice
    - `starting_at` string, required — Starting time for the time slice for which this line item was accrued
    - `total` number, required — Total price in USD of this line item
    - `type` 'scheduled' | 'commit_purchase' | 'usage' | 'subscription' | 'applied_commit_or_credit' | 'cpu_conversion', required — The type of line item
    - `unit_price` number, required — The unit price associated with the line item.

## Other responses

- `404` — Resource not found

---

[API](https://skmtc.net/aiven/apis/aiven-api-documentation.md) · [All operations](https://skmtc.net/aiven/apis/aiven-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aiven/aiven-api-documentation/versions/ecaeabf1da31/schema)
