entries.delete.preview
Before deleting a transaction, read everything tied to it by id: its bank lines (and whether each can be excluded with it), the receipts and company email it came from, a reimbursement claim, its trip, splits, tags and open questions, the default for each choice, and anything that blocks deleting it (a closed period, a Stripe record, the book record of a synced Wise movement, an approved or paid reimbursement). A deleted transaction returns who deleted it, when and why. Finance access required.
GETPOST
/api/v1/accounting/entries.delete.previewPermissions
accounting:read
Who can call it
admin, finance
Retries
Safe to retry: it only reads
MCP
accounting_entries_delete_previewFields
idstring (ID)RequiredThe record's ID.
Example
curl -G https://app.getoatmilk.com/api/v1/accounting/entries.delete.preview \
-H "Authorization: Bearer $OATMILK_API_KEY" \
--data-urlencode 'id=9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d'{
"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/entries.delete.preview
curl -G https://app.getoatmilk.com/api/v1/accounting/entries.delete.preview \
-H "Authorization: Bearer $OATMILK_API_KEY" \
--data-urlencode 'id=9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d'More in Transactions.