Modern Treasury · Capability

Modern Treasury — PaymentReference

Modern Treasury — PaymentReference. 2 operations. Lead operation: list payment_references. Self-contained Naftiko capability covering one Modern Treasury business surface.

Run with Naftiko Modern TreasuryPaymentReference

What You Can Do

GET
Listpaymentreferences — list payment_references
/v1/api/payment-references
GET
Getpaymentreference — get payment_reference
/v1/api/payment-references/{id}

MCP Tools

list-payment-references

list payment_references

read-only idempotent
get-payment-reference

get payment_reference

read-only idempotent

Capability Spec

modern-treasury-paymentreference.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Modern Treasury — PaymentReference
  description: 'Modern Treasury — PaymentReference. 2 operations. Lead operation: list payment_references. Self-contained
    Naftiko capability covering one Modern Treasury business surface.'
  tags:
  - Modern Treasury
  - PaymentReference
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MODERN_TREASURY_API_KEY: MODERN_TREASURY_API_KEY
capability:
  consumes:
  - type: http
    namespace: modern-treasury-paymentreference
    baseUri: http://localhost:3000
    description: Modern Treasury — PaymentReference business capability. Self-contained, no shared references.
    resources:
    - name: api-payment_references
      path: /api/payment_references
      operations:
      - name: listpaymentreferences
        method: GET
        description: list payment_references
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: after_cursor
          in: query
          type: string
        - name: per_page
          in: query
          type: integer
        - name: referenceable_id
          in: query
          type: string
          description: The id of the referenceable to search for. Must be accompanied by the referenceable_type or will return
            an error.
        - name: referenceable_type
          in: query
          type: string
          description: One of the referenceable types. This must be accompanied by the id of the referenceable or will return
            an error.
        - name: reference_number
          in: query
          type: string
          description: The actual reference number assigned by the bank.
    - name: api-payment_references-id
      path: /api/payment_references/{id}
      operations:
      - name: getpaymentreference
        method: GET
        description: get payment_reference
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: basic
      username: '{{env.MODERN_TREASURY_USER}}'
      password: '{{env.MODERN_TREASURY_PASS}}'
  exposes:
  - type: rest
    namespace: modern-treasury-paymentreference-rest
    port: 8080
    description: REST adapter for Modern Treasury — PaymentReference. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/payment-references
      name: api-payment-references
      description: REST surface for api-payment_references.
      operations:
      - method: GET
        name: listpaymentreferences
        description: list payment_references
        call: modern-treasury-paymentreference.listpaymentreferences
        with:
          after_cursor: rest.after_cursor
          per_page: rest.per_page
          referenceable_id: rest.referenceable_id
          referenceable_type: rest.referenceable_type
          reference_number: rest.reference_number
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/payment-references/{id}
      name: api-payment-references-id
      description: REST surface for api-payment_references-id.
      operations:
      - method: GET
        name: getpaymentreference
        description: get payment_reference
        call: modern-treasury-paymentreference.getpaymentreference
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: modern-treasury-paymentreference-mcp
    port: 9090
    transport: http
    description: MCP adapter for Modern Treasury — PaymentReference. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-payment-references
      description: list payment_references
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: modern-treasury-paymentreference.listpaymentreferences
      with:
        after_cursor: tools.after_cursor
        per_page: tools.per_page
        referenceable_id: tools.referenceable_id
        referenceable_type: tools.referenceable_type
        reference_number: tools.reference_number
      outputParameters:
      - type: object
        mapping: $.
    - name: get-payment-reference
      description: get payment_reference
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: modern-treasury-paymentreference.getpaymentreference
      outputParameters:
      - type: object
        mapping: $.