Merge · Capability

Merge Accounting API — Credit Notes

Merge Accounting API — Credit Notes. 1 operations. Lead operation: Merge List Credit Notes. Self-contained Naftiko capability covering one Merge business surface.

Run with Naftiko MergeCredit Notes

What You Can Do

GET
Listcreditnotes — Merge List Credit Notes
/v1/credit-notes

MCP Tools

merge-list-credit-notes

Merge List Credit Notes

read-only idempotent

Capability Spec

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