action youneedabudget_create_account { label: "Create a new account" description: "Creates a new account" provider: youneedabudget method: POST path: "/budgets/{budget_id}/accounts" encoding: json input: { type: "object" properties: { account: { type: "object" required: ["balance", "name", "type"] properties: { balance: { type: "integer" format: "int64" description: "The current balance of the account in milliunits format" } name: { type: "string" description: "The name of the account" } type: { type: "string" description: "The type of account" enum: ["checking", "savings", "cash", "creditCard", "lineOfCredit", "otherAsset", "otherLiability", "mortgage", "autoLoan", "studentLoan", "personalLoan", "medicalDebt", "otherDebt"] } } } budget_id: { type: "string" } } required: ["account", "budget_id"] additionalProperties: false } output: { type: "object" required: ["data"] properties: { data: { type: "object" required: ["account"] properties: { account: { type: "object" required: ["balance", "cleared_balance", "closed", "deleted", "id", "name", "on_budget", "transfer_payee_id", "type", "uncleared_balance"] properties: { balance: { type: "integer" format: "int64" description: "The current balance of the account in milliunits format" } cleared_balance: { type: "integer" format: "int64" description: "The current cleared balance of the account in milliunits format" } closed: { type: "boolean" description: "Whether this account is closed or not" } debt_escrow_amounts: { type: "object" } debt_interest_rates: { type: "object" additionalProperties: true } debt_minimum_payments: { type: "object" additionalProperties: true } debt_original_balance: { type: "integer" format: "int64" description: "The original debt/loan account balance, specified in milliunits format." } deleted: { type: "boolean" description: "Whether or not the account has been deleted. Deleted accounts will only be included in delta requests." } direct_import_in_error: { type: "boolean" description: "If an account linked to a financial institution (direct_import_linked=true) and the linked connection is not in a healthy state, this will be true." } direct_import_linked: { type: "boolean" description: "Whether or not the account is linked to a financial institution for automatic transaction import." } id: { type: "string" format: "uuid" } last_reconciled_at: { type: "string" format: "date-time" description: "A date/time specifying when the account was last reconciled." } name: { type: "string" } note: { type: "string" } on_budget: { type: "boolean" description: "Whether this account is on budget or not" } transfer_payee_id: { type: "string" format: "uuid" description: "The payee id which should be used when transferring to this account" } type: { type: "string" description: "The type of account" enum: ["checking", "savings", "cash", "creditCard", "lineOfCredit", "otherAsset", "otherLiability", "mortgage", "autoLoan", "studentLoan", "personalLoan", "medicalDebt", "otherDebt"] } uncleared_balance: { type: "integer" format: "int64" description: "The current uncleared balance of the account in milliunits format" } } } } } } } }