Skip to main content
Version: 0.1.21 (Current)

create_manual_account

Type: mutation

Creates a new manual account

Signature

async def create_manual_account(
account_type: str,
account_sub_type: str,
is_in_net_worth: bool,
account_name: str,
account_balance: float = 0
) -> Dict[str, Any]

Parameters

ParameterTypeRequiredDescription
account_typestrYesThe string of account group type (i.e. loan, other_liability, other_asset, etc)
account_sub_typestrYesThe string sub type of the account (i.e. auto, commercial, mortgage, line_of_credit, etc)
is_in_net_worthboolYesA boolean if the account should be considered in the net worth calculation
account_namestrYesThe string of the account name
account_balancefloatNo-

Example

from monarchmoney import MonarchMoney

mm = MonarchMoney()
await mm.login(email, password)

result = await mm.create_manual_account("example_account_type", "example_account_sub_type", True, "example_account_name")
print(result)

GraphQL Operation

Operation Name: Web_CreateManualAccount

GraphQL Query

mutation Web_CreateManualAccount($input: CreateManualAccountMutationInput!) {
createManualAccount(input: $input) {
account {
id
__typename
}
errors {
...PayloadErrorFields
__typename
}
__typename
}
}
fragment PayloadErrorFields on PayloadError {
fieldErrors {
field
messages
__typename
}
message
code
__typename
}

Try It Out

To test this API method locally:

  1. Install the package: pip install monarchmoney
  2. Create a Python script with the example code above
  3. Replace email and password with your Monarch Money credentials
  4. Run the script

See the Authentication Guide for details on logging in.