Corgi BankDocumentation
OpenAPI

Capture actual closing-day lending inputs and seal remaining cutoff window

POST/loans/closing/sources

Verified lending staff/service authority; fresh staff step-up for writes. Capture occurs only on the actual closing bank date during the final fifteen minutes before cutoff, binds an immutable plan version, verifies accrual/recognition and prepares due facility bills, retains risk/billing evidence, and seals instrument mutations until cutoff. A source cannot be reconstructed on a later day. Next-day billing consumes already-generated minimum/due state without inventing delivery evidence. CECL execution may name close_source_id and compares dated ledger receivables to the exact retained source.

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

business_datestring · dateRequired

A business date, YYYY-MM-DD

plan_versionstringRequired

Returns

200 OK

actorstringRequired
basisstringRequired
billing_countintegerRequired
business_datestring · dateRequired

A business date, YYYY-MM-DD

content_sha256stringRequired
idstringRequired
observed_atstring · date-timeRequired
plan_versionstringRequired
risk_export_idstringRequired
risk_sha256stringRequired
sealed_untilstring · date-timeRequired

Errors

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

400401403404409412413422424429500503

to move to open esc to close