# invoices.groups.preview

Preview each payer's draft, bill-to snapshot, tax settings, due dates and exact reconciled total. Returns previewHash bound to this revision and the current billing profiles. Does not write or send anything.

`GET | POST /api/v1/accounting/invoices.groups.preview`

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

MCP tool: `accounting_invoices_groups_preview`

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `id` | string (ID) | Yes | The record's ID. |
| `expectedRevision` | integer | Yes | The record's current revision, from the last time you read it. If someone changed the record since, the request is refused with a conflict so you can reload and check before trying again. at most 9007199254740991; greater than 0. |

## Example request

```bash
curl -G https://app.getoatmilk.com/api/v1/accounting/invoices.groups.preview \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  --data-urlencode 'id=9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d' \
  --data-urlencode 'expectedRevision=3'
```

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