---
title: "Export invoice lines for a client project"
method: GET
path: "/clients/{id}/invoice-lines"
tags: ["Agencies"]
---

# Export invoice lines for a client project

`GET /clients/{id}/invoice-lines`

## Request

- Base URL: `https://api.hypamoon.com/api/v1`
- URL: `https://api.hypamoon.com/api/v1/clients/{id}/invoice-lines`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://app.hypamoon.com/oauth/authorize`, token URL `https://api.hypamoon.com/oauth/token`, scopes: `clients:read`)

The usage of a client project as invoice lines per month, payer and source, from the same numbers as GET /clients/{id}/usage, so you invoice your client in your own accounting with your own markup. format=csv returns text/csv. Hypamoon does not send the invoice.

## Path parameters

- `id` string, uuid, required

## Query parameters

- `months` integer
- `payer` 'agency' | 'client' | 'all'
- `format` 'json' | 'csv'

## Response `200`

The invoice lines.

- object
  - `object` 'list', required
  - `project_id` string, uuid, required
  - `currency` 'EUR', required
  - `months` string[], required
  - `total_eur` number, required
  - `data` object[], required
    - `month` string, required
    - `project_id` string, uuid, required
    - `project_name` string, required
    - `payer` 'client' | 'agency', required
    - `source` string, required
    - `description` string, required
    - `amount_eur` number, required
    - `currency` 'EUR', required

## Other responses

- `401`: Unauthorized: unauthorized, missing_api_key, invalid_api_key, api_key_revoked, project_deleted.
- `403`: Forbidden: project_not_enabled, key_mode_mismatch, missing_scope, verification_required.
- `404`: Not Found: not_found.
- `422`: Unprocessable Content: validation_failed.
- `429`: Too Many Requests: rate_limited.
- `500`: Internal Server Error: internal_error.
- `503`: Service Unavailable: service_unavailable.

---

[API](https://skmtc.dev/hypamoon/apis/hypamoon-api.md) · [All operations](https://skmtc.dev/hypamoon/apis/hypamoon-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hypamoon/apis/hypamoon-api/revisions/9f0b90004c06?raw)
