Lago · Capability

Lago API documentation — Payment_requests

Lago API documentation — Payment_requests. 2 operations. Lead operation: Lago Create a payment request. Self-contained Naftiko capability covering one Lago business surface.

Run with Naftiko LagoPayment_requests

What You Can Do

POST
Createpaymentrequest — Lago Create a payment request
/v1/payment-requests
GET
Findallpaymentrequests — Lago List all payment requests
/v1/payment-requests

MCP Tools

lago-create-payment-request

Lago Create a payment request

lago-list-all-payment-requests

Lago List all payment requests

read-only idempotent

Capability Spec

lago-payment-requests.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Lago API documentation — Payment_requests
  description: 'Lago API documentation — Payment_requests. 2 operations. Lead operation: Lago Create a payment request. Self-contained
    Naftiko capability covering one Lago business surface.'
  tags:
  - Lago
  - Payment_requests
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    LAGO_API_KEY: LAGO_API_KEY
capability:
  consumes:
  - type: http
    namespace: lago-payment-requests
    baseUri: https://api.getlago.com/api/v1
    description: Lago API documentation — Payment_requests business capability. Self-contained, no shared references.
    resources:
    - name: payment_requests
      path: /payment_requests
      operations:
      - name: createpaymentrequest
        method: POST
        description: Lago Create a payment request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: findallpaymentrequests
        method: GET
        description: Lago List all payment requests
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.LAGO_API_KEY}}'
  exposes:
  - type: rest
    namespace: lago-payment-requests-rest
    port: 8080
    description: REST adapter for Lago API documentation — Payment_requests. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/payment-requests
      name: payment-requests
      description: REST surface for payment_requests.
      operations:
      - method: POST
        name: createpaymentrequest
        description: Lago Create a payment request
        call: lago-payment-requests.createpaymentrequest
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: findallpaymentrequests
        description: Lago List all payment requests
        call: lago-payment-requests.findallpaymentrequests
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: lago-payment-requests-mcp
    port: 9090
    transport: http
    description: MCP adapter for Lago API documentation — Payment_requests. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: lago-create-payment-request
      description: Lago Create a payment request
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: lago-payment-requests.createpaymentrequest
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: lago-list-all-payment-requests
      description: Lago List all payment requests
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: lago-payment-requests.findallpaymentrequests
      outputParameters:
      - type: object
        mapping: $.