Create a borrowing
/ledger/borrowingsThe 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-KeystringRequiredSend 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_bpsintegerRequiredkindstringRequiredlender_idintegerRequiredmaturity_datestring · dateRequiredA business date, YYYY-MM-DD
principal_amountintegerRequiredreferencestringOptionalReturns
200 OK
The Borrowing object.
Errors
Every error is a problem document with a stable code. See Errors.
400401403404409412413422424429500503