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