Debbie Collect · Capability

Debbie Platform API — Creditors

Debbie Platform API — Creditors. 3 operations. Lead operation: Create a creditor. Self-contained Naftiko capability covering one Debbie Collect business surface.

Run with Naftiko Debbie CollectCreditors

What You Can Do

POST
Createcreditor — Create a creditor
/v1/creditors
GET
Getcreditor — Get a creditor
/v1/creditors/{creditorid}
PATCH
Patchcreditor — Update a creditor
/v1/creditors/{creditorid}

MCP Tools

create-creditor

Create a creditor

get-creditor

Get a creditor

read-only idempotent
update-creditor

Update a creditor

idempotent

Capability Spec

debbie-platform-creditors.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Debbie Platform API — Creditors
  description: 'Debbie Platform API — Creditors. 3 operations. Lead operation: Create a creditor. Self-contained Naftiko capability
    covering one Debbie Collect business surface.'
  tags:
  - Debbie Collect
  - Creditors
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    DEBBIE_COLLECT_API_KEY: DEBBIE_COLLECT_API_KEY
capability:
  consumes:
  - type: http
    namespace: debbie-platform-creditors
    baseUri: https://api.debbie.dk
    description: Debbie Platform API — Creditors business capability. Self-contained, no shared references.
    resources:
    - name: creditors
      path: /creditors
      operations:
      - name: createcreditor
        method: POST
        description: Create a creditor
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: creditors-creditorId
      path: /creditors/{creditorId}
      operations:
      - name: getcreditor
        method: GET
        description: Get a creditor
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: creditorId
          in: path
          type: string
          required: true
      - name: patchcreditor
        method: PATCH
        description: Update a creditor
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: creditorId
          in: path
          type: string
          required: true
    authentication:
      type: bearer
      token: '{{env.DEBBIE_COLLECT_API_KEY}}'
  exposes:
  - type: rest
    namespace: debbie-platform-creditors-rest
    port: 8080
    description: REST adapter for Debbie Platform API — Creditors. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/creditors
      name: creditors
      description: REST surface for creditors.
      operations:
      - method: POST
        name: createcreditor
        description: Create a creditor
        call: debbie-platform-creditors.createcreditor
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/creditors/{creditorid}
      name: creditors-creditorid
      description: REST surface for creditors-creditorId.
      operations:
      - method: GET
        name: getcreditor
        description: Get a creditor
        call: debbie-platform-creditors.getcreditor
        with:
          creditorId: rest.creditorId
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: patchcreditor
        description: Update a creditor
        call: debbie-platform-creditors.patchcreditor
        with:
          creditorId: rest.creditorId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: debbie-platform-creditors-mcp
    port: 9090
    transport: http
    description: MCP adapter for Debbie Platform API — Creditors. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: create-creditor
      description: Create a creditor
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: debbie-platform-creditors.createcreditor
      outputParameters:
      - type: object
        mapping: $.
    - name: get-creditor
      description: Get a creditor
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: debbie-platform-creditors.getcreditor
      with:
        creditorId: tools.creditorId
      outputParameters:
      - type: object
        mapping: $.
    - name: update-creditor
      description: Update a creditor
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: debbie-platform-creditors.patchcreditor
      with:
        creditorId: tools.creditorId
      outputParameters:
      - type: object
        mapping: $.