Corgi BankDocumentation
OpenAPI

Repay a borrowing in part or in full (treasury staff, no second approver); the last dollar closes it

POST/ledger/borrowings/{id}/repayments

The 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

idstringRequired

Headers

Idempotency-KeystringOptional

Send on every write that creates or changes money or state; a replay with the same key returns the original result with 200.

Body parameters

amountintegerRequired
currency_codestringRequired

Returns

200 OK

The Borrowing object.

Errors

Every error is a problem document with a stable code. See Errors.

400401403404409412413422424429500503

to move to open esc to close