Bank of America · Capability

Bank of America CashPro API — Statements

Bank of America CashPro API — Statements. 2 operations. Lead operation: List Statements. Self-contained Naftiko capability covering one Bank Of America business surface.

Run with Naftiko Bank Of AmericaStatements

What You Can Do

GET
Liststatements — List Statements
/v1/statements
GET
Getstatement — Get Statement
/v1/statements/{statementid}

MCP Tools

list-statements

List Statements

read-only idempotent
get-statement

Get Statement

read-only idempotent

Capability Spec

cashpro-statements.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Bank of America CashPro API — Statements
  description: 'Bank of America CashPro API — Statements. 2 operations. Lead operation: List Statements. Self-contained Naftiko
    capability covering one Bank Of America business surface.'
  tags:
  - Bank Of America
  - Statements
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    BANK_OF_AMERICA_API_KEY: BANK_OF_AMERICA_API_KEY
capability:
  consumes:
  - type: http
    namespace: cashpro-statements
    baseUri: https://api.bankofamerica.com/cashpro/v1
    description: Bank of America CashPro API — Statements business capability. Self-contained, no shared references.
    resources:
    - name: statements
      path: /statements
      operations:
      - name: liststatements
        method: GET
        description: List Statements
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: accountId
          in: query
          type: string
          description: Filter statements by account ID
        - name: year
          in: query
          type: integer
          description: Filter by statement year
    - name: statements-statementId
      path: /statements/{statementId}
      operations:
      - name: getstatement
        method: GET
        description: Get Statement
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: statementId
          in: path
          type: string
          description: Unique statement identifier
          required: true
    authentication:
      type: bearer
      token: '{{env.BANK_OF_AMERICA_API_KEY}}'
  exposes:
  - type: rest
    namespace: cashpro-statements-rest
    port: 8080
    description: REST adapter for Bank of America CashPro API — Statements. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/statements
      name: statements
      description: REST surface for statements.
      operations:
      - method: GET
        name: liststatements
        description: List Statements
        call: cashpro-statements.liststatements
        with:
          accountId: rest.accountId
          year: rest.year
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/statements/{statementid}
      name: statements-statementid
      description: REST surface for statements-statementId.
      operations:
      - method: GET
        name: getstatement
        description: Get Statement
        call: cashpro-statements.getstatement
        with:
          statementId: rest.statementId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: cashpro-statements-mcp
    port: 9090
    transport: http
    description: MCP adapter for Bank of America CashPro API — Statements. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: list-statements
      description: List Statements
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: cashpro-statements.liststatements
      with:
        accountId: tools.accountId
        year: tools.year
      outputParameters:
      - type: object
        mapping: $.
    - name: get-statement
      description: Get Statement
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: cashpro-statements.getstatement
      with:
        statementId: tools.statementId
      outputParameters:
      - type: object
        mapping: $.