Corgi BankDocumentation
OpenAPI

Record the register's effective-dated parameters: the draw approval threshold and the break age that blocks the close, pending independent review (treasury staff)

POST/ledger/collateral/parameters

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. draw_approval_threshold_amount is the draw above which a second approver books the advance; break_block_age_days (0 to 365) how old a break or an unreviewed lender statement may be before it blocks the close. With none approved every draw needs a second approver and every open break or unreviewed statement blocks.

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

break_block_age_daysintegerRequired

An open reconciliation break older than this blocks the bank's close

draw_approval_threshold_amountintegerRequired

A draw above it needs a second treasury approver

effective_datestring · dateRequired

A business date, YYYY-MM-DD

source_refstringRequired

Returns

200 OK

break_block_age_daysintegerRequired
draw_approval_threshold_amountintegerRequired
effective_datestring · dateRequired

A business date, YYYY-MM-DD

idintegerRequired
makerstringRequired
recorded_atstring · date-timeRequired
reviewobject or nullOptional

ReviewRecord is a retained review.

5 child attributes
approvebooleanRequired
checkerstringRequired
journal_idstringOptional

Example jrnl_2tVh8nqLxq4GbDe0K1F6S9zRcWm

reasonstringRequired
recorded_atstring · date-timeRequired
source_refstringRequired
statusstringRequired

Errors

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

400401403404409412413422424429500503

to move to open esc to close