A local-first personal finance app
Add getAccountBalance() API documentation (#403)
Robert Dyerba2f767f830f
diff --git a/docs/api/reference.md b/docs/api/reference.mdindex e783aa2b61..04ca4ccef6 100644--- a/docs/api/reference.md+++ b/docs/api/reference.md@@ -30,7 +30,8 @@ This is the documentation of all available API methods. The API has not been rel"updateAccount","closeAccount","reopenAccount",-"deleteAccount"+"deleteAccount",+"getAccountBalance"]} /><APIList title="Categories" sections={[@@ -306,6 +307,12 @@ Reopen a closed account.Delete an account.+#### `getAccountBalance`++<Method name="getAccountBalance" args={[{ name: 'id', type: 'id' }, { name: 'cutoff', type: 'Date?'}]} returns="Promise<number>" />++Gets the balance for an account. If a cutoff is given, it gives the account balance as of that date. If no cutoff is given, it uses the current date as the cutoff.+#### Examples```js