Corgi BankDocumentation
OpenAPI

Approve (booking the advance after a fresh capacity check) or reject a proposed draw (a treasury checker other than its maker)

POST/ledger/borrowing-proposals/{id}/review

The ledger's guard admits ledger:treasury:write; the store also requires operations:approve, a step-up within five minutes and a checker other than the record's maker, refused 422 ledger.maker_checker_required. The same decision by the same checker replays; a different one is 409 conflict. Approval rechecks the lender's capacity on the day and books the advance under the proposal's own key.

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

approvebooleanRequired
reasonstringRequired

Returns

200 OK

borrowing_idstringOptional
idintegerRequired
makerstringRequired
recorded_atstring · date-timeRequired
requestobjectRequired

BorrowingRequest draws an advance from a reviewed lender; kind must match the lender's kind.

6 child attributes
annual_rate_bpsintegerRequired
kindstringRequired
lender_idintegerRequired
maturity_datestring · dateRequired

A business date, YYYY-MM-DD

principal_amountintegerRequired
referencestringOptional
reviewobject or nullOptional

ReviewRecord is a retained review.

5 child attributes
approvebooleanRequired
checkerstringRequired
journal_idstringOptional

Example jrnl_2tVh8nqLxq4GbDe0K1F6S9zRcWm

reasonstringRequired
recorded_atstring · date-timeRequired
statusstringRequired

Pending_review, approved or rejected

Errors

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

400401403404409412413422424429500503

to move to open esc to close