> ## Documentation Index
> Fetch the complete documentation index at: https://docs.methodfi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# The managed accounts endpoint

export const ParamList = ({items = [], is_child = false}) => {
  return items.map(item => {
    const field_props = {
      id: Math.random().toString(),
      body: item.name,
      name: item.name,
      type: item.type,
      required: item.required
    };
    const enums = item.enums || [];
    const items = item.items || [];
    const has_items = items?.length > 0;
    const has_enums = enums?.length > 0;
    const should_default_open = item.defaultOpen || false;
    const render_child_item = () => {
      const child_props = {
        title: has_enums ? "Possible enum values" : "properties"
      };
      if (should_default_open) child_props.defaultOpen = true;
      const has_inline_enums = has_enums && enums.every(enum_item => typeof enum_item === 'string') && enums.map((enum_item, idx) => {
        const is_last = idx === enums.length - 1;
        const is_2nd_to_last = idx === enums.length - 2;
        return <>
            <code>{enum_item}</code>
            {is_last && ''}
            {is_2nd_to_last && ' or '}
            {!is_last && !is_2nd_to_last && ', '}
          </>;
      });
      const enum_list = has_enums && !has_inline_enums && <Accordion {...child_props}>
          {enums.map((enum_item, index) => <div key={`enum-${index}`}>
              <code>{enum_item.name}</code>
              <br />
              <p>{enum_item.description}</p>
            </div>)}
        </Accordion>;
      const item_list = has_items && <Expandable {...child_props}>
          <ParamList items={items || []} is_child />
        </Expandable>;
      return <>
          <p>
            {item.description}
            {has_inline_enums && [has_inline_enums.length > 1 ? ' One of ' : ' Must be ', ...has_inline_enums]}
          </p>

          {enum_list}
          {item_list}
        </>;
    };
    return is_child ? <ResponseField {...field_props}>{render_child_item()}</ResponseField> : <ParamField {...field_props}>{render_child_item()}</ParamField>;
  });
};

Managed Accounts are FBO (For Benefit Of) accounts managed and provisioned by Method.
This endpoint allows you to retrieve managed account balance and transaction information.

## Managed Account Object

<ParamList
  items={[
{
name: 'id',
type: 'string',
required: false,
description: 'Unique identifier for the Managed Account. Prefixed with `macc_`.',
},
{
name: 'routing',
type: 'string',
required: false,
description: 'The routing number of the Managed Account.',
},
{
name: 'number',
type: 'string',
required: false,
description: 'The account number of the Managed Account.',
},
{
name: 'current_balance',
type: 'number',
required: false,
description: 'The current balance of the Managed Account, in cents. (e.g. $20,000.00 = 2000000)',
},
{
name: 'available_balance',
type: 'number',
required: false,
description: 'The available balance of the Managed Account, in cents. (e.g. $20,000.00 = 2000000)',
},
]}
/>

## Managed Account Transaction Object

<ParamList
  items={[
{
name: 'id',
type: 'string',
required: false,
description: 'Unique identifier for the Managed Account Transaction. Prefixed with `macc_txn_`.',
},
{
name: 'description',
type: 'string',
required: false,
description: 'A description of the transaction.',
},
{
name: 'date',
type: 'string',
required: false,
description: 'The date of the transaction in ISO 8601 format (YYYY-MM-DD).',
},
{
name: 'amount',
type: 'number',
required: false,
description: 'The amount of the transaction, in cents. Positive for deposits, negative for withdrawals/charges.',
},
]}
/>

<RequestExample>
  ```json THE MANAGED ACCOUNT OBJECT theme={null}
  {
    "id": "macc_123456789",
    "routing": "123456789",
    "number": "0123456789",
    "current_balance": 2000000,
    "available_balance": 2000000
  }
  ```
</RequestExample>
