Montran · Capability

Montran Virtual Accounts API — Virtual Accounts

Montran Virtual Accounts API — Virtual Accounts. 5 operations. Lead operation: Montran List virtual accounts. Self-contained Naftiko capability covering one Montran business surface.

Run with Naftiko MontranVirtual Accounts

What You Can Do

GET
Listvirtualaccounts — Montran List virtual accounts
/v1/virtual-accounts
POST
Createvirtualaccount — Montran Create a virtual account
/v1/virtual-accounts
GET
Getvirtualaccount — Montran Get virtual account details
/v1/virtual-accounts/{accountid}
PUT
Updatevirtualaccount — Montran Update a virtual account
/v1/virtual-accounts/{accountid}
POST
Closevirtualaccount — Montran Close a virtual account
/v1/virtual-accounts/{accountid}/close

MCP Tools

montran-list-virtual-accounts

Montran List virtual accounts

read-only idempotent
montran-create-virtual-account

Montran Create a virtual account

montran-get-virtual-account-details

Montran Get virtual account details

read-only idempotent
montran-update-virtual-account

Montran Update a virtual account

idempotent
montran-close-virtual-account

Montran Close a virtual account

Capability Spec

virtual-accounts-virtual-accounts.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Montran Virtual Accounts API — Virtual Accounts
  description: 'Montran Virtual Accounts API — Virtual Accounts. 5 operations. Lead operation: Montran List virtual accounts.
    Self-contained Naftiko capability covering one Montran business surface.'
  tags:
  - Montran
  - Virtual Accounts
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MONTRAN_API_KEY: MONTRAN_API_KEY
capability:
  consumes:
  - type: http
    namespace: virtual-accounts-virtual-accounts
    baseUri: https://api.montran.com/vam/v1
    description: Montran Virtual Accounts API — Virtual Accounts business capability. Self-contained, no shared references.
    resources:
    - name: virtual-accounts
      path: /virtual-accounts
      operations:
      - name: listvirtualaccounts
        method: GET
        description: Montran List virtual accounts
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: status
          in: query
          type: string
          description: Filter by account status
        - name: currency
          in: query
          type: string
          description: Filter by ISO 4217 currency code
        - name: parentAccountId
          in: query
          type: string
          description: Filter by parent physical account
        - name: accountHolder
          in: query
          type: string
          description: Filter by account holder name
        - name: page
          in: query
          type: integer
        - name: pageSize
          in: query
          type: integer
      - name: createvirtualaccount
        method: POST
        description: Montran Create a virtual account
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: virtual-accounts-accountId
      path: /virtual-accounts/{accountId}
      operations:
      - name: getvirtualaccount
        method: GET
        description: Montran Get virtual account details
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatevirtualaccount
        method: PUT
        description: Montran Update a virtual account
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: virtual-accounts-accountId-close
      path: /virtual-accounts/{accountId}/close
      operations:
      - name: closevirtualaccount
        method: POST
        description: Montran Close a virtual account
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: bearer
      token: '{{env.MONTRAN_API_KEY}}'
  exposes:
  - type: rest
    namespace: virtual-accounts-virtual-accounts-rest
    port: 8080
    description: REST adapter for Montran Virtual Accounts API — Virtual Accounts. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/virtual-accounts
      name: virtual-accounts
      description: REST surface for virtual-accounts.
      operations:
      - method: GET
        name: listvirtualaccounts
        description: Montran List virtual accounts
        call: virtual-accounts-virtual-accounts.listvirtualaccounts
        with:
          status: rest.status
          currency: rest.currency
          parentAccountId: rest.parentAccountId
          accountHolder: rest.accountHolder
          page: rest.page
          pageSize: rest.pageSize
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createvirtualaccount
        description: Montran Create a virtual account
        call: virtual-accounts-virtual-accounts.createvirtualaccount
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/virtual-accounts/{accountid}
      name: virtual-accounts-accountid
      description: REST surface for virtual-accounts-accountId.
      operations:
      - method: GET
        name: getvirtualaccount
        description: Montran Get virtual account details
        call: virtual-accounts-virtual-accounts.getvirtualaccount
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatevirtualaccount
        description: Montran Update a virtual account
        call: virtual-accounts-virtual-accounts.updatevirtualaccount
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/virtual-accounts/{accountid}/close
      name: virtual-accounts-accountid-close
      description: REST surface for virtual-accounts-accountId-close.
      operations:
      - method: POST
        name: closevirtualaccount
        description: Montran Close a virtual account
        call: virtual-accounts-virtual-accounts.closevirtualaccount
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: virtual-accounts-virtual-accounts-mcp
    port: 9090
    transport: http
    description: MCP adapter for Montran Virtual Accounts API — Virtual Accounts. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: montran-list-virtual-accounts
      description: Montran List virtual accounts
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: virtual-accounts-virtual-accounts.listvirtualaccounts
      with:
        status: tools.status
        currency: tools.currency
        parentAccountId: tools.parentAccountId
        accountHolder: tools.accountHolder
        page: tools.page
        pageSize: tools.pageSize
      outputParameters:
      - type: object
        mapping: $.
    - name: montran-create-virtual-account
      description: Montran Create a virtual account
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: virtual-accounts-virtual-accounts.createvirtualaccount
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: montran-get-virtual-account-details
      description: Montran Get virtual account details
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: virtual-accounts-virtual-accounts.getvirtualaccount
      outputParameters:
      - type: object
        mapping: $.
    - name: montran-update-virtual-account
      description: Montran Update a virtual account
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: virtual-accounts-virtual-accounts.updatevirtualaccount
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: montran-close-virtual-account
      description: Montran Close a virtual account
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: virtual-accounts-virtual-accounts.closevirtualaccount
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.