Lean Technologies · Capability

Lean Payments API — Payment Intents

Lean Payments — create, list, and retrieve single-instant Pay by Bank payment intents.

Lean Payments API — Payment Intents is a Naftiko capability published by Lean Technologies, one of 19 capabilities the APIs.io network indexes for this provider. It bundles 4 operations across the GET and POST methods rooted at /v1/payments/v1.

The capability includes 3 read-only operations and 1 state-changing operation. Lead operation: Lean Create Payment Intent. Can be deployed as a REST endpoint, MCP tool, or Agent Skill via Naftiko.

Tagged areas include Lean, Payments, and Pay by Bank.

Run with Naftiko LeanPaymentsPay by Bank

What You Can Do

POST
Createpaymentintent — Lean Create Payment Intent
/v1/payments/v1/intents
GET
Listpaymentintents — Lean List Payment Intents
/v1/payments/v1/intents
GET
Getpaymentbyintentid — Lean Get Payment By Intent Id
/v1/payments/v1/intents/{intent_id}
GET
Getpaymentbypaymentid — Lean Get Payment By Payment Id
/v1/payments/v1/{payment_id}

MCP Tools

lean-createpaymentintent

Lean Create Payment Intent

lean-listpaymentintents

Lean List Payment Intents

read-only idempotent
lean-getpaymentbyintentid

Lean Get Payment By Intent Id

read-only idempotent
lean-getpaymentbypaymentid

Lean Get Payment By Payment Id

read-only idempotent

Capability Spec

payments-intents.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Lean Payments API — Payment Intents
  description: 'Lean Payments — create, list, and retrieve single-instant Pay by Bank payment intents.'
  tags:
  - Lean
  - Payments
  - Pay by Bank
  created: '2026-05-25'
  modified: '2026-05-25'
binds:
- namespace: env
  keys:
    LEAN_API_TOKEN: LEAN_API_TOKEN
capability:
  consumes:
  - type: http
    namespace: payments-intents
    baseUri: https://api2.leantech.me
    description: Lean Payments API — Payment Intents business capability backed by Lean Technologies APIs.
    resources:
    - name: payment-intents
      path: /payments/v1/intents
      operations:
      - name: createPaymentIntent
        method: POST
        description: Lean Create Payment Intent
        outputRawFormat: json
        inputParameters:
        - name: body
          in: body
          type: object
          required: true
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: listPaymentIntents
        method: GET
        description: Lean List Payment Intents
        outputRawFormat: json
        inputParameters: []
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: payment-intent
      path: /payments/v1/intents/{intent_id}
      operations:
      - name: getPaymentByIntentId
        method: GET
        description: Lean Get Payment By Intent Id
        outputRawFormat: json
        inputParameters:
        - name: intent_id
          in: path
          type: string
          required: true
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: payment-by-id
      path: /payments/v1/{payment_id}
      operations:
      - name: getPaymentByPaymentId
        method: GET
        description: Lean Get Payment By Payment Id
        outputRawFormat: json
        inputParameters:
        - name: payment_id
          in: path
          type: string
          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-intents-rest
    port: 8080
    description: REST adapter for Lean Payments API — Payment Intents.
    resources:
    - path: /v1/payments/v1/intents
      name: payment-intents
      operations:
      - method: POST
        name: createPaymentIntent
        description: Lean Create Payment Intent
        call: payments-intents.createPaymentIntent
        with:
          body: rest.body
      - method: GET
        name: listPaymentIntents
        description: Lean List Payment Intents
        call: payments-intents.listPaymentIntents
        with: {}
    - path: /v1/payments/v1/intents/{intent_id}
      name: payment-intent
      operations:
      - method: GET
        name: getPaymentByIntentId
        description: Lean Get Payment By Intent Id
        call: payments-intents.getPaymentByIntentId
        with:
          intent_id: rest.path.intent_id
    - path: /v1/payments/v1/{payment_id}
      name: payment-by-id
      operations:
      - method: GET
        name: getPaymentByPaymentId
        description: Lean Get Payment By Payment Id
        call: payments-intents.getPaymentByPaymentId
        with:
          payment_id: rest.path.payment_id
  - type: mcp
    namespace: payments-intents-mcp
    port: 9090
    transport: http
    description: MCP adapter for Lean Payments API — Payment Intents.
    tools:
    - name: lean-createpaymentintent
      description: Lean Create Payment Intent
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: payments-intents.createPaymentIntent
      with:
        body: tools.body
    - name: lean-listpaymentintents
      description: Lean List Payment Intents
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: payments-intents.listPaymentIntents
      with: {}
    - name: lean-getpaymentbyintentid
      description: Lean Get Payment By Intent Id
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: payments-intents.getPaymentByIntentId
      with:
        intent_id: tools.intent_id
    - name: lean-getpaymentbypaymentid
      description: Lean Get Payment By Payment Id
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: payments-intents.getPaymentByPaymentId
      with:
        payment_id: tools.payment_id