Reference
LEDGER_INVALID_SETTLEMENT
Settlement is invalid
Settlement is invalid
HTTP status 400 Bad Request, code LEDGER_INVALID_SETTLEMENT.
What it means#
A settlement was requested that the ledger cannot record: a zero or negative amount, the same account on both sides, or a currency the parties have no balance in. The message says which.
What to do#
Correct the settlement and resend.
On the wire#
Every error response carrying this code names this page in error.moreInfo,
with the request id in the query string. See Error codes for
the response shape and the list of every code.