createAccount
createAccount - Creates a new account for the authenticated user.
Authentication: required
createAccount - Creates a new account for the authenticated user.
Parameters:
- ownerId (string, required): ID of the user this account belongs to
- name (string, required): Display name of the account
- description (string, optional): Description of the account
- industryAccountRateId (string, optional): If provided, auto-creates rewards from that industry account rate introOffers
- accountType (string, required): Type of account (DEPOSITORY, CREDIT, LOAN, INVESTMENT, CASH, ASSET, GIFT_CARD, OTHER, GOVERNMENT)
- accountSubtype (string, required): Specific subtype of account
- assetType (string, optional): Asset type (only for ASSET accounts)
- investmentType (string, optional): Investment type (only for INVESTMENT accounts)
- giftCardVendorId (string, optional): Vendor ID (only for GIFT_CARD accounts)
- giftCardVendorName (string, optional): Vendor name fallback (only for GIFT_CARD accounts)
- defaultCurrency (string, required): Currency code (default: CAD)
- savingInterestRate (float, optional): Interest rate for savings accounts
- debtInterestRate (float, optional): Interest rate for debt accounts
- creditLimit (number, optional): Credit limit in cents for credit accounts
- isVariableInterestRate (bool, optional): Variable rate flag for debt accounts
- interestRecurrenceRate (string, optional): DAILY, WEEKLY, BIWEEKLY, MONTHLY, QUARTERLY, SEMIANNUALLY, ANNUALLY
- gracePeriod (string, optional): ISO8601/RFC3339 datetime for debt grace period
- positionOrder (int, optional): Display order
- countryId (int, optional): Country ID for regional availability
- governmentAccountType (string, optional): Government account subtype
- stockSymbol (string, optional): Stock symbol for investment accounts
- stockPrice (float, optional): Stock price
- stockQuantity (float, optional): Stock quantity
- fuelEfficiency (float, optional): KM per liter (only for CAR asset type)
Returns:
- accountId (string): Newly created account ID
- autoRewardsAttemptedCount (int): Number of auto reward creations attempted
- autoRewardsCreatedCount (int): Number of auto rewards created
- autoRewardsSkippedCount (int): Number of auto rewards skipped
Example:
{
"method": "createAccount",
"params": {
"ownerId": "u_abc123",
"name": "My Checking Account",
"accountType": "DEPOSITORY",
"accountSubtype": "CHECKING",
"defaultCurrency": "CAD"
}
}