Create a lender advance
/ledger/collateral/lender-advancesThe ledger's guard admits ledger:treasury:write; the store admits only verified treasury staff (never a service or an API key) who stepped up within five minutes. The lender is a simulator reached through the lender kind's configured connection; a kind with none answers 424 dependency_failed. Refused 409 conflict beyond the register's capacity for the lender. At or below the approval threshold the request is sent at once (201); above it the advance is accepted 202 pending_review for a second treasury approver. The lender's confirmation books the borrowing on GL 2410 or 2420 at the confirmed rate with no interest plan; a declined request is retained with the lender's reason. A lost confirmation is 424 dependency_failed and the same key resends.
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
lender_idintegerRequiredmaturity_datestring · dateRequiredA business date, YYYY-MM-DD
principal_amountintegerRequiredprogramstringRequiredPrimary_credit or secondary_credit (discount window); overnight or fixed_rate (FHLB simulator)
Returns
200 OK
Errors
Every error is a problem document with a stable code. See Errors.
400401403404409412413422424429500503