Corgi BankDocumentation
OpenAPI

Current obligation including principal, accrued interest and fees for affiliate coverage

GET/loans/{id}/affiliate-exposure

Verified staff/service lending:read required. Current observation date (optional current as_of). Optional accrued_through instead requires accrual through a nonfuture close cutoff, returning actual accrued_through and current AsOf; it does not reconstruct historical balances. No pending commands; sold, purchased and charged-off legal obligations refuse. Includes approved undrawn commitment, gross principal, uncollected interest including not-yet-due amounts and due fees. Positive fractions of an interest cent round up for collateral protection; exact rational interest is in minor units. Hash binds full source loan revision.

Path parameters

idstringRequired

Returns

200 OK

accrued_interest_exactstringRequired
accrued_interest_minorintegerRequired
accrued_throughstring · dateRequired

A business date, YYYY-MM-DD

as_ofstring · dateRequired

A business date, YYYY-MM-DD

creditobjectRequired

CreditRequest is created by the lending service from its immutable legal terms, never accepted from a customer as an authorization assertion. Amount is gross full commitment, including undrawn obligatory funds, not net cash after fees.

7 child attributes
amountintegerRequired
currency_codestringRequired
customer_idstringRequired

Example cust_2tVh8nqLxq4GbDe0K1F6S9zRcWm

destination_account_idstringRequired

Example acct_2tVh8nqLxq4GbDe0K1F6S9zRcWm

kindstringRequired

Term_loan or facility; affiliate facility execution is refused

terms_sha256stringRequired
transaction_refstringRequired
customer_idstringRequired

Example cust_2tVh8nqLxq4GbDe0K1F6S9zRcWm

destination_account_idstringRequired

Example acct_2tVh8nqLxq4GbDe0K1F6S9zRcWm

fees_due_minorintegerRequired
ledger_account_idstringRequired

Example lacc_2tVh8nqLxq4GbDe0K1F6S9zRcWm

loan_idstringRequired

Example loan_2tVh8nqLxq4GbDe0K1F6S9zRcWm

principal_outstanding_minorintegerRequired
source_sha256stringRequired
source_updated_atstring · date-timeRequired
statusstringRequired
undrawn_obligated_minorintegerRequired

Errors

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

400401403404409412413422424429500503

to move to open esc to close