Atomically settle final interest, taxes and payout, then close
POST
/ledger/accounts/{id}/closurePath parameters
idstringRequiredHeaders
Idempotency-KeystringOptionalSend on every write that creates or changes money or state; a replay with the same key returns the original result with 200.
Body parameters
actorstringRequiredfeesarray of objectsOptional3 child attributes
amountintegerRequiredkindstringRequiredwaiver_min_balanceintegerRequiredpayout_ledger_account_idstringRequiredExample lacc_2tVh8nqLxq4GbDe0K1F6S9zRcWm
reasonstringRequiredremit_interestbooleanRequiredwithholding_bpsintegerRequiredReturns
200 OK
closing_fee_amountintegerRequireddatestring · dateRequiredA business date, YYYY-MM-DD
fee_journal_idstringOptionalExample jrnl_2tVh8nqLxq4GbDe0K1F6S9zRcWm
interest_amountintegerRequiredinterest_journal_idstringOptionalExample jrnl_2tVh8nqLxq4GbDe0K1F6S9zRcWm
keystringRequiredledger_account_idstringRequiredExample lacc_2tVh8nqLxq4GbDe0K1F6S9zRcWm
payout_amountintegerRequiredpayout_journal_idstringOptionalExample jrnl_2tVh8nqLxq4GbDe0K1F6S9zRcWm
payout_ledger_account_idstringRequiredExample lacc_2tVh8nqLxq4GbDe0K1F6S9zRcWm
principal_amountintegerRequiredremittance_journal_idstringOptionalExample jrnl_2tVh8nqLxq4GbDe0K1F6S9zRcWm
remitted_amountintegerRequiredrounding_adjustmentstringRequiredwithheld_amountintegerRequiredwithholding_journal_idstringOptionalExample jrnl_2tVh8nqLxq4GbDe0K1F6S9zRcWm
Errors
Every error is a problem document with a stable code. See Errors.
400401403404409412413422424429500503