Corgi BankDocumentation
OpenAPI

Create a bank repo

POST/bank-repos

Fresh verified staff with ledger:repo:write is required. Retains exact actor/key/request replay, fixed principal/rate/start/maturity, proceeds use and full original settled AFS Treasury lots. Requires repo repayment before every bill maturity, actual original custody mapping and signed bid valuation. Collateral remains a bank asset; no funds are recognized merely from proposal. Every route requires verified non-API-key authority even locally; customer actors are refused. JSON evidence is one strict object bounded at 5 MiB. Complete responses are bounded at 16 MiB and fail explicitly without truncation.

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

currency_codestringRequired
lot_idsarray of stringsRequired
maturity_datestring · dateRequired

A business date, YYYY-MM-DD

principal_amountintegerRequired
proceeds_beneficiary_customer_idsarray of stringsRequired
proceeds_useobjectRequired
2 child attributes
referencestringRequired
sha256stringRequired
program_idstringRequired
rate_bpsintegerRequired
rationalestringRequired
start_datestring · dateRequired

A business date, YYYY-MM-DD

Returns

200 OK

The Bank Repo object.

Errors

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

400401403404409412413422424429500503

to move to open esc to close