Get full account info, get bank account details

Navigation

Get user full account info

Parameters:

  • userId - moneymade user id or client_user_id you set on user creation
  • accountId - moneymade account id (you can find in user accounts array)

Response: It returns user account with array of subaccounts

// USING https://www.npmjs.com/package/@moneymade/connect-api

const moneymade = new MoneymadeSDK({
  secret: process.env.MONEYMADE_API_SECRET,
  apiKey: process.env.MONEYMADE_API_KEY,
});

await moneymade.init();

// use previously stored MoneyMade user id to get user with connected accounts
const account = await moneymade.users.getAccount({
  userId: 'moneymade-user-id',
  accountId: 'moneymade-account-id', 
});

Get account bank details

Parameters:

  • accountId - moneymade account id

Response: bank details array for subaccounts in the account.
NOTE: not all subaccounts have bank requisites. Sometimes, bank details array length may be lesser than subaccounts length.

// USING https://www.npmjs.com/package/@moneymade/connect-api

const moneymade = new MoneymadeSDK({
  secret: process.env.MONEYMADE_API_SECRET,
  apiKey: process.env.MONEYMADE_API_KEY,
});

await moneymade.init();

const accountBankDetails = await moneymade.users.getAccount('moneymade-account-id');

Get account transactions

Parameters:

  • userId - moneymade user id
  • accountId - moneymade account id

Response:
returns paginated response with Transactions objects.

// USING https://www.npmjs.com/package/@moneymade/connect-api

const moneymade = new MoneymadeSDK({
  secret: process.env.MONEYMADE_API_SECRET,
  apiKey: process.env.MONEYMADE_API_KEY,
});

await moneymade.init();

const transactions = await moneymade.transactions.getList({
  userId: 'some-user-id',
  accountId: 'some-account-id',
});

Get account holdings

Parameters:

  • accountId - moneymade account id

Response:
returns response with Holdings objects.