Corgi BankDocumentation
OpenAPI

Read a carrier invoice, review and posting

GET/cash-operations/invoices/{invoice}

Path parameters

invoicestringRequired

Returns

200 OK

actorstringRequired
amountintegerRequired
business_datestring · dateRequired

A business date, YYYY-MM-DD

carrier_idstringRequired
contract_idstringRequired
created_atstring · date-timeRequired
decisionobject or nullOptional
4 child attributes
actorstringRequired
approvebooleanRequired
evidencestringRequired
recorded_atstring · date-timeRequired
evidencestringRequired
evidence_sha256stringRequired
idstringRequired
journalobject or nullOptional
18 child attributes
adjusts_periodstringOptional

A sealed period this journal corrects, YYYY-MM

approved_bystringOptional
backdatedbooleanOptional

Effective_date is before posting_date (read only)

committed_atstring · date-timeOptional
effective_datestring · dateRequired

A business date, YYYY-MM-DD

entriesarray of objectsRequired
4 child attributes
amountintegerRequired

Minor units of the currency (cents for USD)

currency_codestringRequired

ISO 4217 code

directionstringRequired
ledger_account_idstringRequired

Example lacc_2tVh8nqLxq4GbDe0K1F6S9zRcWm

fx_legsarray of objectsOptional

FXLegs is read only: the legs of a cross-currency journal the ledger's own conversion and close commands posted. A caller's posting never carries them.

7 child attributes
currency_codestringRequired
equivalent_ledger_account_idstringRequired

Example lacc_2tVh8nqLxq4GbDe0K1F6S9zRcWm

native_amountintegerRequired
position_ledger_account_idstringRequired

Example lacc_2tVh8nqLxq4GbDe0K1F6S9zRcWm

rate_sheet_idstringRequired
usd_equivalent_amountintegerRequired
usd_per_foreign_majorstringRequired
idstringOptional
kindstringRequired
posted_bystringOptional
posting_datestring · dateOptional

A business date, YYYY-MM-DD

protected_command_idstringOptional
reasonstringOptional

Required on a backdated journal

release_hold_idstringOptional

Example hold_2tVh8nqLxq4GbDe0K1F6S9zRcWm

require_availablebooleanOptional
reversal_ofstringOptional
source_refstringRequired
source_servicestringRequired
period_fromstring · dateRequired

A business date, YYYY-MM-DD

period_untilstring · dateRequired

A business date, YYYY-MM-DD

postingobject or nullOptional
5 child attributes
actorstringRequired
credit_idstringOptional
journal_idstringRequired

Example jrnl_2tVh8nqLxq4GbDe0K1F6S9zRcWm

movement_idstringRequired
recorded_atstring · date-timeRequired
referencestringRequired
stopsintegerRequired

Errors

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

400401403404409412413422424429500503

to move to open esc to close