Merge · Capability

Merge Accounting API — Payments

Merge Accounting API — Payments. 2 operations. Lead operation: Merge List Payments. Self-contained Naftiko capability covering one Merge business surface.

Run with Naftiko MergePayments

What You Can Do

GET
Listpayments — Merge List Payments
/v1/payments
POST
Createpayment — Merge Create Payment
/v1/payments

MCP Tools

merge-list-payments

Merge List Payments

read-only idempotent
merge-create-payment

Merge Create Payment

Capability Spec

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