The Payment History object
PaymentHistory rebuilds an account's payment-and-fee sequence from retained journals and fee corrections, tied to the ledger's own running balance.
Attributes
account_idstringRequiredExample acct_2tVh8nqLxq4GbDe0K1F6S9zRcWm
closing_amountintegerRequiredcorrectionsarray of objectsRequired10 child attributes
actorstringRequiredapplicationobject or nullOptionalFeeCorrectionApplication is the posted balanced ledger correction.
3 child attributes
actorstringRequiredatstring · date-timeRequiredcorrection_journal_idstringRequiredExample jrnl_2tVh8nqLxq4GbDe0K1F6S9zRcWm
content_sha256stringRequiredcorrection_minorintegerRequiredcreated_atstring · date-timeRequiredcustomer_idstringOptionalExample cust_2tVh8nqLxq4GbDe0K1F6S9zRcWm
decisionobject or nullOptional5 child attributes
actorstringRequiredatstring · date-timeRequiredcontent_sha256stringRequireddecisionstringRequiredreasonstringRequiredfeeobjectRequiredAssessedFee is the retained fee the correction acts on.
6 child attributes
amount_minorintegerRequiredcurrency_codestringRequiredeffective_datestring · dateRequiredA business date, YYYY-MM-DD
journal_idstringRequiredExample jrnl_2tVh8nqLxq4GbDe0K1F6S9zRcWm
ledger_account_idstringRequiredExample lacc_2tVh8nqLxq4GbDe0K1F6S9zRcWm
source_refstringRequiredidstringRequiredrequestobjectRequiredFeeCorrectionRequest is a maker's proposal to reverse or adjust a fee the payments service assessed. The amount refunded is read from the retained fee journal, never from the request.
5 child attributes
account_idstringRequiredExample acct_2tVh8nqLxq4GbDe0K1F6S9zRcWm
fee_journal_idstringRequiredExample jrnl_2tVh8nqLxq4GbDe0K1F6S9zRcWm
methodstringRequiredreasonstringRequiredtarget_fee_minorintegerOptionalcurrency_codestringRequiredcustomer_idstringOptionalExample cust_2tVh8nqLxq4GbDe0K1F6S9zRcWm
eventsarray of objectsRequired11 child attributes
amountintegerRequiredcategorystringRequiredcommitted_atstring · date-timeRequiredcorrection_idstringOptionalcurrency_codestringRequireddirectionstringRequiredeffective_datestring · dateRequiredA business date, YYYY-MM-DD
journal_idstringRequiredExample jrnl_2tVh8nqLxq4GbDe0K1F6S9zRcWm
kindstringRequiredrunning_amountintegerRequiredsource_refstringRequiredfees_assessed_amountintegerRequiredfees_corrected_amountintegerRequiredfromstring · date or nullOptionalA business date, YYYY-MM-DD
ledger_account_idstringRequiredExample lacc_2tVh8nqLxq4GbDe0K1F6S9zRcWm
opening_amountintegerRequiredthroughstring · date or nullOptionalA business date, YYYY-MM-DD
ties_to_ledgerbooleanRequired