Corgi BankDocumentation
OpenAPI

Create a collateral pledge

POST/ledger/collateral/pledges

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. One live pledge per asset across every program, refused 409 conflict. A loan's facts are read from lending and the reservation is mirrored onto the loan after it commits; if lending does not answer the reservation stands and the call answers 424 dependency_failed, and replaying the key repeats the mirror.

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

asset_kindstringRequired

Securities_lot or loan

lender_idintegerRequired
referencestringRequired

The lot or loan id

Returns

200 OK

The Collateral Pledge object.

Errors

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

400401403404409412413422424429500503

to move to open esc to close