Record card statement
record_card_statementOne credit-card statement, as the bank printed it. Give the statement date and the closing balance owed and the ledger is anchored to the bank: card terms (limit, statement day, due date, minimum due) are set from the statement, the lines you list are matched or added, and whatever still separates the ledger from the closing balance becomes one dated 'Balance adjustment' row that never counts as spending. Send statements oldest first, one call each; re-sending the same statement date replaces its adjustment instead of stacking. Dry-run unless commit=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bank | No | Issuer name for the notes, e.g. 'Emirates NBD' | |
| fees | No | Total fees this period; used only when lines are not given | |
| lines | No | The transaction lines, if you read them. Leave out to anchor the balance only. | |
| commit | No | Write it. Default false: report what would change | |
| interest | No | Total interest/finance charges this period; used only when lines are not given | |
| account_id | Yes | An account of type card | |
| apr_percent | No | Annual rate if the statement states one (a monthly rate × 12) | |
| minimum_due | No | Minimum payment due, as printed | |
| credit_limit | No | As printed. Needed the first time a card is recorded | |
| statement_date | Yes | The statement's closing date (ISO or the bank's format) | |
| closing_balance | Yes | Total outstanding at the statement date, positive as printed (the 'current balance' / 'closing balance', not the minimum or total *due*). Negative only if the bank owes you. | |
| payment_due_date | No | As printed; 'immediate' or 'overdue' is accepted | |
| previous_balance | No | The previous statement's closing balance as printed, to check the statement's own arithmetic |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||