# history.rollback.preview

Check whether one change from History can be rolled back and exactly what rolling it back would do, record by record: the values it puts back, what is already back, and what blocks it (a later edit, a deleted record, a closed period). For a statement or CSV import it previews undoing every line that can be undone. Returns previewFingerprint for history.rollback.apply. Nothing changes.

`GET | POST /api/v1/accounting/history.rollback.preview`

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

MCP tool: `accounting_history_rollback_preview`

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `id` | string | Yes | The record's ID. Matches ^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\|sig-[0-9]{1,19})$. |

## Example request

```bash
curl -G https://app.getoatmilk.com/api/v1/accounting/history.rollback.preview \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  --data-urlencode 'id=11111111-1111-1111-1111-111111111111'
```

Reference page: https://app.getoatmilk.com/docs/api/history.rollback.preview
