Repay a borrowing in part or in full (treasury staff, no second approver); the last dollar closes it
POST
/ledger/borrowings/{id}/repaymentsThe ledger's guard admits ledger:treasury:write on this route and refuses ledger:post; the store admits only verified treasury staff (never a service or an API key) who stepped up within five minutes. No second approver. The last dollar closes the advance once no whole cent of interest has accrued since the last month-end.
Path parameters
idstringRequiredHeaders
Idempotency-KeystringOptionalSend on every write that creates or changes money or state; a replay with the same key returns the original result with 200.
Body parameters
amountintegerRequiredcurrency_codestringRequiredReturns
200 OK
The Borrowing object.
Errors
Every error is a problem document with a stable code. See Errors.
400401403404409412413422424429500503