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.
GETPOST
/api/v1/accounting/history.rollback.previewPermissions
accounting:read
Who can call it
admin, finance
Retries
Safe to retry: it only reads
MCP
accounting_history_rollback_previewFields
idstringRequiredThe 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
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'{
"data": { … }
}Try it
Try it
Checks your input with this action’s real schema and answers like the API, with synthetic data. No key needed, and nothing changes.
GET/api/v1/accounting/history.rollback.preview
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'More in History and rollback.