Decentro · Capability

Decentro Ledger API — Journals

Decentro Ledger API — Journals. 1 operations. Lead operation: Create a journal entry. Self-contained Naftiko capability covering one Decentro business surface.

Run with Naftiko DecentroJournals

What You Can Do

POST
Createjournalentry — Create a journal entry
/v1/v2/ledger/journal

MCP Tools

create-journal-entry

Create a journal entry

Capability Spec

ledger-journals.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Decentro Ledger API — Journals
  description: 'Decentro Ledger API — Journals. 1 operations. Lead operation: Create a journal entry. Self-contained Naftiko
    capability covering one Decentro business surface.'
  tags:
  - Decentro
  - Journals
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    DECENTRO_API_KEY: DECENTRO_API_KEY
capability:
  consumes:
  - type: http
    namespace: ledger-journals
    baseUri: https://in.decentro.tech
    description: Decentro Ledger API — Journals business capability. Self-contained, no shared references.
    resources:
    - name: v2-ledger-journal
      path: /v2/ledger/journal
      operations:
      - name: createjournalentry
        method: POST
        description: Create a journal entry
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: apikey
      key: client_secret
      value: '{{env.DECENTRO_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: ledger-journals-rest
    port: 8080
    description: REST adapter for Decentro Ledger API — Journals. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/v2/ledger/journal
      name: v2-ledger-journal
      description: REST surface for v2-ledger-journal.
      operations:
      - method: POST
        name: createjournalentry
        description: Create a journal entry
        call: ledger-journals.createjournalentry
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: ledger-journals-mcp
    port: 9090
    transport: http
    description: MCP adapter for Decentro Ledger API — Journals. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: create-journal-entry
      description: Create a journal entry
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: ledger-journals.createjournalentry
      outputParameters:
      - type: object
        mapping: $.