Corgi BankDocumentation
OpenAPI

Run end of day for a business date

POST/ledger/end-of-day-runs

Headers

Idempotency-KeystringOptional

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_datestringRequired
operatorstringRequired

Returns

200 OK

accrual_journalsintegerRequired

Deposit interest recognised on GL 2150, and any disagreement with its evidence or the GL.

accrual_posted_amountintegerRequired
accrual_variancesintegerRequired
bank_investment_accrued_booksintegerRequired
bank_source_hashesobjectRequired
business_datestring · dateRequired

A business date, YYYY-MM-DD

hold_variancesintegerRequired

Accounts whose held amount is not the sum of their active holds

holds_expiredintegerRequired
interest_accrualsintegerRequired
interest_journalsintegerRequired
interest_posted_amountintegerRequired
reserve_interest_amountintegerRequired
reserve_interest_daysintegerRequired

Interest on reserve balances accrued at the close and recognised on GL 1470 / 4020.

reserve_interest_variancesintegerRequired
snapshotsintegerRequired
stepsarray of stringsRequired
total_creditsintegerRequired
total_debitsintegerRequired
trial_balance_tiesbooleanRequired
variancesintegerRequired

Errors

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

400401403404409412413422424429500503

to move to open esc to close