v1
latestOpenAPI 3.0.32026-07-1765123145.7 KBledger.v2
Revert a ledger transaction by its ID
post/v2/{ledger}/transactions/{id}/revert
Path parameters
ledgerstring required
Example:ledger001
Name of the ledger.
idinteger required
Example:1234
Transaction ID.
Query parameters
forceboolean
Force revert
atEffectiveDateboolean
Revert transaction at effective date of the original tx
dryRunboolean
Example:true
Set the dryRun mode. dry run mode doesn't add the logs to the database or publish a message to the message broker.
schemaVersionstring
Example:v1.0.0
Schema version to use for validation
Headers
Idempotency-Keystring
Use an idempotency key
Request body
Response
OK
Example response
{
"data": {
"postings": [
{
"amount": 100,
"asset": "COIN",
"destination": "users:002",
"source": "users:001"
}
],
"reference": "ref:001",
"metadata": {
"admin": "true"
},
"preCommitVolumes": {
"orders:1": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
},
"orders:2": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
}
},
"postCommitVolumes": {
"orders:1": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
},
"orders:2": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
}
},
"preCommitEffectiveVolumes": {
"orders:1": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
},
"orders:2": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
}
},
"postCommitEffectiveVolumes": {
"orders:1": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
},
"orders:2": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
}
}
}
}