Corgi BankDocumentation
OpenAPI

Create a borrowing

POST/ledger/borrowings

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. Draws from a reviewed lender whose kind matches (fhlb_advance from fhlb, discount_window from federal_reserve_discount_window), refused 409 conflict beyond the lender's capacity. Above the approval threshold the draw is accepted 202 with a borrowing proposal instead of the borrowing, for a second treasury approver.

Headers

Idempotency-KeystringRequired

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

annual_rate_bpsintegerRequired
kindstringRequired
lender_idintegerRequired
maturity_datestring · dateRequired

A business date, YYYY-MM-DD

principal_amountintegerRequired
referencestringOptional

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