request_accounts_refresh
Type: mutation
Requests Monarch to refresh account balances and transactions with source institutions. Returns True if request was successfully started. Otherwise, throws a RequestFailedException.
Signature
async def request_accounts_refresh(
account_ids: List[str]
) -> Dict[str, Any]
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
account_ids | List[str] | Yes | - |
Example
from monarchmoney import MonarchMoney
mm = MonarchMoney()
await mm.login(email, password)
result = await mm.request_accounts_refresh("example_account_ids")
print(result)
GraphQL Operation
Operation Name: Common_ForceRefreshAccountsMutation
GraphQL Query
mutation Common_ForceRefreshAccountsMutation($input: ForceRefreshAccountsInput!) {
forceRefreshAccounts(input: $input) {
success
errors {
...PayloadErrorFields
__typename
}
__typename
}
}
fragment PayloadErrorFields on PayloadError {
fieldErrors {
field
messages
__typename
}
message
code
__typename
}
Try It Out
To test this API method locally:
- Install the package:
pip install monarchmoney - Create a Python script with the example code above
- Replace
emailandpasswordwith your Monarch Money credentials - Run the script
See the Authentication Guide for details on logging in.