Corgi BankDocumentation
OpenAPI

Import the lender's signed collateral statement for as_of through its connection: recognise the interest its advances accrued, then reconcile the statement against the register (treasury staff)

POST/ledger/collateral/lenders/{id}/statement-imports

The ledger's guard admits ledger:treasury:write; the store admits only verified treasury staff (never a service or an API key) who stepped up within five minutes. The lender is a simulator reached through the lender kind's configured connection; a kind with none answers 424 dependency_failed. Reads the lender's signed statement for as_of (not after today, else 422), recognises each connected advance's accrued interest as the difference from what was recognised (GL 5200 against the advance), then records the statement in the register's lender-report form and opens a break for every difference. The same key or the same signed document replays.

Path parameters

idstringRequired

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

as_ofstring · dateOptional

A business date, YYYY-MM-DD

Returns

200 OK

actorstringRequired
content_sha256stringRequired
documentobjectRequired

Document is every signed answer the lender gives, one payload per kind.

13 child attributes
advanceobject or nullOptional

AdvanceConfirmation is the lender's answer to an advance request: made, with the terms it was made on, or declined with the reason.

11 child attributes
advance_numberstringOptional
available_amountintegerRequired

The collateral value available before the advance

day_count_basisstringRequired

Actual/365 or actual/360

maturity_datestring · dateRequired

A business date, YYYY-MM-DD

principal_amountintegerRequired
programstringRequired
rate_bpsintegerRequired
reasonstringOptional
referencestringRequired
statusstringRequired

Made or declined

value_datestring · dateRequired

A business date, YYYY-MM-DD

borrowerstringRequired

The bank as the lender names it

collateralobject or nullOptional

CollateralDecision answers a collateral submission item by item.

3 child attributes
actionstringRequired
itemsarray of objectsRequired
7 child attributes
item_referencestringOptional
kindstringRequired

Loan or security

operator_referencestringOptional

The Fedwire Securities transfer of a pledge or a release

par_amountintegerOptional
reasonstringOptional
referencestringRequired

The loan id or the CUSIP

statusstringRequired

Accepted, refused, withdrawn or released

referencestringRequired
issued_atstring · date-timeRequired
issuerstringRequired

The Reserve Bank or the Federal Home Loan Bank

key_idstringRequired
kindstringRequired
lenderstringRequired
repaymentobject or nullOptional

RepaymentConfirmation is the lender's answer to a repayment request: the principal repaid, the interest charged on the advance for the days since interest was last paid, any fee, and the total debited to the bank.

13 child attributes
advance_numberstringRequired
fee_amountintegerRequired
interest_amountintegerRequired
interest_fromstring · dateRequired

A business date, YYYY-MM-DD

interest_throughstring · dateRequired

A business date, YYYY-MM-DD

principal_amountintegerRequired
principal_outstanding_amountintegerRequired
rate_bpsintegerRequired
reasonstringOptional
referencestringRequired
statusstringRequired

Repaid or refused

total_amountintegerRequired
value_datestring · dateRequired

A business date, YYYY-MM-DD

scheduleobject or nullOptional

CollateralSchedule is the lender's collateral schedule in force from a date.

3 child attributes
classesarray of objectsRequired
6 child attributes
asset_classstringRequired
eligiblebooleanRequired
margin_bpsintegerRequired

The share of the basis lent against

max_days_past_dueintegerOptional
pledge_methodstringOptional

Restricted_account, borrower_in_custody, listing, delivery

valuation_basisstringOptional

Market_value or unpaid_principal

effective_datestring · dateRequired

A business date, YYYY-MM-DD

sourcestringRequired
signaturestringRequired
statementobject or nullOptional

CollateralStatement is the lender's collateral valuation and margin statement at the close of a day: every item, the total lendable value, the principal of advances outstanding, the interest accrued on them and unpaid, and what remains available. Collateral secures the interest as well as the principal: a Reserve Bank's Advance Repayment Amount is the advance plus accrued interest, and its security interest secures all Obligations (Operating Circular No. 10, 2.1 and 6.0), so the available value is the lendable value less both.

7 child attributes
accrued_interest_amountintegerRequired
advancesarray of objectsRequired
7 child attributes
accrued_interest_amountintegerRequired
advance_numberstringRequired
maturity_datestring · dateRequired

A business date, YYYY-MM-DD

principal_amountintegerRequired
programstringRequired
rate_bpsintegerRequired
value_datestring · dateRequired

A business date, YYYY-MM-DD

advances_outstanding_amountintegerRequired
as_ofstring · dateRequired

A business date, YYYY-MM-DD

available_amountintegerRequired
itemsarray of objectsRequired
11 child attributes
asset_classstringRequired
basis_value_amountintegerRequired
eligiblebooleanRequired
ineligible_reasonstringOptional
kindstringRequired
lendable_amountintegerRequired
margin_bpsintegerRequired

The share of the basis value lent against

par_amountintegerOptional
price_microsintegerOptional

Per 100 of par, scaled by 1,000,000

principal_amountintegerOptional
referencestringRequired
lendable_amountintegerRequired
versionstringRequired
idintegerRequired
interest_recognizedarray of objectsRequired
5 child attributes
advance_numberstringRequired
borrowing_idstringRequired
journal_idstringOptional

Example jrnl_2tVh8nqLxq4GbDe0K1F6S9zRcWm

lender_accrued_amountintegerRequired
previously_recognized_amountintegerRequired
kindstringRequired

Collateral_statement or collateral_schedule

lender_idintegerRequired
recorded_atstring · date-timeRequired
schedule_idintegerOptional
statement_idintegerOptional

Errors

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

400401403404409412413422424429500503

to move to open esc to close