Debbie Collect · Capability

Debbie Platform API — Case Vouchers

Debbie Platform API — Case Vouchers. 2 operations. Lead operation: Get case vouchers. Self-contained Naftiko capability covering one Debbie Collect business surface.

Run with Naftiko Debbie CollectCase Vouchers

What You Can Do

GET
Getcasevouchers — Get case vouchers
/v1/cases/{caseid}/vouchers
POST
Addcasevoucher — Add case voucher
/v1/cases/{caseid}/vouchers

MCP Tools

get-case-vouchers

Get case vouchers

read-only idempotent
add-case-voucher

Add case voucher

Capability Spec

debbie-platform-case-vouchers.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Debbie Platform API — Case Vouchers
  description: 'Debbie Platform API — Case Vouchers. 2 operations. Lead operation: Get case vouchers. Self-contained Naftiko
    capability covering one Debbie Collect business surface.'
  tags:
  - Debbie Collect
  - Case Vouchers
  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-case-vouchers
    baseUri: https://api.debbie.dk
    description: Debbie Platform API — Case Vouchers business capability. Self-contained, no shared references.
    resources:
    - name: cases-caseId-vouchers
      path: /cases/{caseId}/vouchers
      operations:
      - name: getcasevouchers
        method: GET
        description: Get case vouchers
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: caseId
          in: path
          type: string
          required: true
      - name: addcasevoucher
        method: POST
        description: Add case voucher
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: caseId
          in: path
          type: string
          required: true
    authentication:
      type: bearer
      token: '{{env.DEBBIE_COLLECT_API_KEY}}'
  exposes:
  - type: rest
    namespace: debbie-platform-case-vouchers-rest
    port: 8080
    description: REST adapter for Debbie Platform API — Case Vouchers. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/cases/{caseid}/vouchers
      name: cases-caseid-vouchers
      description: REST surface for cases-caseId-vouchers.
      operations:
      - method: GET
        name: getcasevouchers
        description: Get case vouchers
        call: debbie-platform-case-vouchers.getcasevouchers
        with:
          caseId: rest.caseId
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: addcasevoucher
        description: Add case voucher
        call: debbie-platform-case-vouchers.addcasevoucher
        with:
          caseId: rest.caseId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: debbie-platform-case-vouchers-mcp
    port: 9090
    transport: http
    description: MCP adapter for Debbie Platform API — Case Vouchers. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: get-case-vouchers
      description: Get case vouchers
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: debbie-platform-case-vouchers.getcasevouchers
      with:
        caseId: tools.caseId
      outputParameters:
      - type: object
        mapping: $.
    - name: add-case-voucher
      description: Add case voucher
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: debbie-platform-case-vouchers.addcasevoucher
      with:
        caseId: tools.caseId
      outputParameters:
      - type: object
        mapping: $.