# invoices.projectTotals

Invoiced revenue per project and currency: how much was invoiced, collected and is still owed, and how many invoices, for issued invoices that aren't cancelled. Filter by projectIds and an issue-date range. Pair with tags.report for the project's spend and income from transactions.

`GET | POST /api/v1/accounting/invoices.projectTotals`

Permissions: `accounting:read` · Roles: admin, finance

MCP tool: `accounting_invoices_project_totals`

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `projectIds` | array of strings (ID) |  | A list of record IDs. at most 100 items. |
| `from` | string |  | The first date to include, as YYYY-MM-DD. |
| `to` | string |  | The last date to include, as YYYY-MM-DD. |

## Example request

```bash
curl https://app.getoatmilk.com/api/v1/accounting/invoices.projectTotals \
  -H "Authorization: Bearer $OATMILK_API_KEY"
```

Reference page: https://app.getoatmilk.com/docs/api/invoices.projectTotals
