Skip to content
These docs describe Tradr v0.17.0. Running an older release? Check the release notes for what changed.

Reverse a deposit or withdrawal.

DELETE
/api/ledger/{accountId}/cash-movements/{entryId}
curl --request DELETE \
--url https://api.tradr.cloud/api/ledger/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/cash-movements/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0

Appends a flipped-direction reversal entry that returns the balance to what it was before the movement. The original row is never removed — both persist. A second call against the same movement answers 409.

accountId
required
string format: uuid
entryId
required
string format: uuid

The reversal entry, plus the balance either side of it.

Media typeapplication/json
object
newBalance
string
previousBalance
string
reversal
object
Example
{
"newBalance": "1000.0000",
"previousBalance": "2000.0000"
}

Not authenticated.

No such account for this user

The movement has already been reversed.