# /v1/billing-group/{}/invoice/{}/csv stops working

Calls to /v1/billing-group/{id}/invoice/{id}/csv on Aiven API stopped working on September 22, 2026.

On September 22, 2026, the endpoint /v1/billing-group/{id}/invoice/{id}/csv was removed. Requests made to this endpoint fail since that date. The removal affects calls fetching invoice CSV data at the billing group level.

## What to use instead

Update requests to call /v1/organization/{organization_id}/invoice/{invoice_number}/csv instead, which serves as the organization-level replacement.

- API: Aiven API (api.aiven.io)
- Kind: Endpoint removal
- Takes effect: September 22, 2026
- Calls after that day: fail
- Calls it hits: `/v1/billing-group/{id}/invoice/{id}/csv`
- Source: [Announcement](https://api.aiven.io/doc/openapi.json)
- Verified: November 6, 2026, against Aiven API's own pages
- Page: https://www.okapi.bot/providers/aiven-api/breaking-changes/v1-billing-group-invoice-csv-stops-working/

## Aiven API's words

> The API endpoint /v1/billing-group/{billing_group_id}/invoice/{invoice_number}/csv is deprecated. Use https://api.aiven.io/v1/organization/{organization_id}/invoice/{invoice_number}/csv instead. It will be removed on 2026-09-22.

Okapi finds the calls this change hits in your repo and opens the pull request with the fix: https://github.com/apps/okapi-agent
