Lean Technologies · Capability

Lean Payments API — Account on File

Lean Payments — create AOF consents and initiate AOF payments against a previously linked customer bank account.

Lean Payments API — Account on File is a Naftiko capability published by Lean Technologies, one of 19 capabilities the APIs.io network indexes for this provider. It bundles 2 operations across the POST method.

The capability includes 2 state-changing operations. Lead operation: Lean Create Aof Consent. Can be deployed as a REST endpoint, MCP tool, or Agent Skill via Naftiko.

Tagged areas include Lean, Payments, and Account on File.

Run with Naftiko LeanPaymentsAccount on File

What You Can Do

POST
Createaofconsent — Lean Create Aof Consent
/v1/consents/account-on-file
POST
Initiateaofpayment — Lean Initiate Aof Payment
/v1/payments/account-on-file

MCP Tools

lean-createaofconsent

Lean Create Aof Consent

lean-initiateaofpayment

Lean Initiate Aof Payment

Capability Spec

payments-aof.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Lean Payments API — Account on File
  description: 'Lean Payments — create AOF consents and initiate AOF payments against a previously linked customer bank account.'
  tags:
  - Lean
  - Payments
  - Account on File
  created: '2026-05-25'
  modified: '2026-05-25'
binds:
- namespace: env
  keys:
    LEAN_API_TOKEN: LEAN_API_TOKEN
capability:
  consumes:
  - type: http
    namespace: payments-aof
    baseUri: https://api2.leantech.me
    description: Lean Payments API — Account on File business capability backed by Lean Technologies APIs.
    resources:
    - name: aof-consent
      path: /consents/account-on-file
      operations:
      - name: createAofConsent
        method: POST
        description: Lean Create Aof Consent
        outputRawFormat: json
        inputParameters:
        - name: body
          in: body
          type: object
          required: true
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: aof-payment
      path: /payments/account-on-file
      operations:
      - name: initiateAofPayment
        method: POST
        description: Lean Initiate Aof Payment
        outputRawFormat: json
        inputParameters:
        - name: body
          in: body
          type: object
          required: true
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: apikey
      key: Authorization
      value: 'Bearer {{env.LEAN_API_TOKEN}}'
      placement: header
  exposes:
  - type: rest
    namespace: payments-aof-rest
    port: 8080
    description: REST adapter for Lean Payments API — Account on File.
    resources:
    - path: /v1/consents/account-on-file
      name: aof-consent
      operations:
      - method: POST
        name: createAofConsent
        description: Lean Create Aof Consent
        call: payments-aof.createAofConsent
        with:
          body: rest.body
    - path: /v1/payments/account-on-file
      name: aof-payment
      operations:
      - method: POST
        name: initiateAofPayment
        description: Lean Initiate Aof Payment
        call: payments-aof.initiateAofPayment
        with:
          body: rest.body
  - type: mcp
    namespace: payments-aof-mcp
    port: 9090
    transport: http
    description: MCP adapter for Lean Payments API — Account on File.
    tools:
    - name: lean-createaofconsent
      description: Lean Create Aof Consent
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: payments-aof.createAofConsent
      with:
        body: tools.body
    - name: lean-initiateaofpayment
      description: Lean Initiate Aof Payment
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: payments-aof.initiateAofPayment
      with:
        body: tools.body