Apideck · Capability

Apideck Accounting API — Credit Notes

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

Run with Naftiko ApideckCredit Notes

What You Can Do

GET
Creditnotesall — Apideck List Credit Notes
/v1/accounting/credit-notes
POST
Creditnotesadd — Apideck Create Credit Note
/v1/accounting/credit-notes
GET
Creditnotesone — Apideck Get Credit Note
/v1/accounting/credit-notes/{id}
PATCH
Creditnotesupdate — Apideck Update Credit Note
/v1/accounting/credit-notes/{id}
DELETE
Creditnotesdelete — Apideck Delete Credit Note
/v1/accounting/credit-notes/{id}

MCP Tools

apideck-list-credit-notes

Apideck List Credit Notes

read-only idempotent
apideck-create-credit-note

Apideck Create Credit Note

apideck-get-credit-note

Apideck Get Credit Note

read-only idempotent
apideck-update-credit-note

Apideck Update Credit Note

idempotent
apideck-delete-credit-note

Apideck Delete Credit Note

idempotent

Capability Spec

accounting-credit-notes.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Apideck Accounting API — Credit Notes
  description: 'Apideck Accounting API — Credit Notes. 5 operations. Lead operation: Apideck List Credit Notes. Self-contained
    Naftiko capability covering one Apideck business surface.'
  tags:
  - Apideck
  - Credit Notes
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    APIDECK_API_KEY: APIDECK_API_KEY
capability:
  consumes:
  - type: http
    namespace: accounting-credit-notes
    baseUri: https://unify.apideck.com
    description: Apideck Accounting API — Credit Notes business capability. Self-contained, no shared references.
    resources:
    - name: accounting-credit-notes
      path: /accounting/credit-notes
      operations:
      - name: creditnotesall
        method: GET
        description: Apideck List Credit Notes
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: creditnotesadd
        method: POST
        description: Apideck Create Credit Note
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: accounting-credit-notes-id
      path: /accounting/credit-notes/{id}
      operations:
      - name: creditnotesone
        method: GET
        description: Apideck Get Credit Note
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: creditnotesupdate
        method: PATCH
        description: Apideck Update Credit Note
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: creditnotesdelete
        method: DELETE
        description: Apideck Delete Credit Note
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.APIDECK_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: accounting-credit-notes-rest
    port: 8080
    description: REST adapter for Apideck Accounting API — Credit Notes. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/accounting/credit-notes
      name: accounting-credit-notes
      description: REST surface for accounting-credit-notes.
      operations:
      - method: GET
        name: creditnotesall
        description: Apideck List Credit Notes
        call: accounting-credit-notes.creditnotesall
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: creditnotesadd
        description: Apideck Create Credit Note
        call: accounting-credit-notes.creditnotesadd
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/accounting/credit-notes/{id}
      name: accounting-credit-notes-id
      description: REST surface for accounting-credit-notes-id.
      operations:
      - method: GET
        name: creditnotesone
        description: Apideck Get Credit Note
        call: accounting-credit-notes.creditnotesone
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: creditnotesupdate
        description: Apideck Update Credit Note
        call: accounting-credit-notes.creditnotesupdate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: creditnotesdelete
        description: Apideck Delete Credit Note
        call: accounting-credit-notes.creditnotesdelete
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: accounting-credit-notes-mcp
    port: 9090
    transport: http
    description: MCP adapter for Apideck Accounting API — Credit Notes. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: apideck-list-credit-notes
      description: Apideck List Credit Notes
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: accounting-credit-notes.creditnotesall
      outputParameters:
      - type: object
        mapping: $.
    - name: apideck-create-credit-note
      description: Apideck Create Credit Note
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: accounting-credit-notes.creditnotesadd
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: apideck-get-credit-note
      description: Apideck Get Credit Note
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: accounting-credit-notes.creditnotesone
      outputParameters:
      - type: object
        mapping: $.
    - name: apideck-update-credit-note
      description: Apideck Update Credit Note
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: accounting-credit-notes.creditnotesupdate
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: apideck-delete-credit-note
      description: Apideck Delete Credit Note
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: accounting-credit-notes.creditnotesdelete
      outputParameters:
      - type: object
        mapping: $.