Corgi BankDocumentation
OpenAPI

Read what the close retained for a business date's foreign currencies: each currency's sweep and remeasurement and every GL line's USD equivalent

GET/ledger/fx/close-evidence

Ledger reader authority and business_date required. For every foreign currency the books held, the close that runs inside end of day before the date closes retains the approved closing sheet and rate, the foreign income and expense sweeps into USD, the position's native balance and its USD equivalent before and after remeasurement, and the adjustment posted to GL 4230 (net nontrading foreign exchange gains or losses). lines are every GL code held in the currency translated at the closing rate in the GL's normal balance direction; a currency's translated lines, its position and the position's equivalent net to zero in USD.

Query parameters

business_datestringOptional

Returns

200 OK

business_datestring · dateRequired

A business date, YYYY-MM-DD

linesarray of objectsRequired
8 child attributes
business_datestring · dateRequired

A business date, YYYY-MM-DD

closing_rate_sheet_idstringRequired
currency_codestringRequired
gl_codestringRequired
native_amountintegerRequired
normal_balancestringRequired
usd_equivalent_amountintegerRequired
usd_per_foreign_majorstringRequired
runsarray of objectsRequired
11 child attributes
adjustment_amountintegerRequired

Positive is a gain

business_datestring · dateRequired

A business date, YYYY-MM-DD

closing_rate_sheet_idstringRequired
currency_codestringRequired
equivalent_before_amountintegerRequired
equivalent_target_amountintegerRequired
position_native_amountintegerRequired
recorded_atstring · date-timeRequired
revaluation_journal_idstringOptional

Example jrnl_2tVh8nqLxq4GbDe0K1F6S9zRcWm

sweep_journal_idsarray of stringsRequired
usd_per_foreign_majorstringRequired

Errors

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

400401403404409412413422424429500503

to move to open esc to close