Modern Treasury · Capability
Modern Treasury — PaymentFlow
Modern Treasury — PaymentFlow. 4 operations. Lead operation: list payment_flows. Self-contained Naftiko capability covering one Modern Treasury business surface.
What You Can Do
GET
Listpaymentflows
— list payment_flows
/v1/api/payment-flows
POST
Createpaymentflow
— create payment_flow
/v1/api/payment-flows
GET
Getpaymentflow
— get payment_flow
/v1/api/payment-flows/{id}
PATCH
Updatepaymentflow
— update payment_flow
/v1/api/payment-flows/{id}
MCP Tools
list-payment-flows
list payment_flows
read-only
idempotent
create-payment-flow
create payment_flow
get-payment-flow
get payment_flow
read-only
idempotent
update-payment-flow
update payment_flow
idempotent
Capability Spec
naftiko: 1.0.0-alpha2
info:
label: Modern Treasury — PaymentFlow
description: 'Modern Treasury — PaymentFlow. 4 operations. Lead operation: list payment_flows. Self-contained Naftiko capability
covering one Modern Treasury business surface.'
tags:
- Modern Treasury
- PaymentFlow
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-paymentflow
baseUri: http://localhost:3000
description: Modern Treasury — PaymentFlow business capability. Self-contained, no shared references.
resources:
- name: api-payment_flows
path: /api/payment_flows
operations:
- name: listpaymentflows
method: GET
description: list payment_flows
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: after_cursor
in: query
type: string
- name: per_page
in: query
type: integer
- name: client_token
in: query
type: string
- name: status
in: query
type: string
- name: counterparty_id
in: query
type: string
- name: receiving_account_id
in: query
type: string
- name: originating_account_id
in: query
type: string
- name: payment_order_id
in: query
type: string
- name: createpaymentflow
method: POST
description: create payment_flow
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: Idempotency-Key
in: header
type: string
description: This key should be something unique, preferably something like an UUID.
- name: body
in: body
type: object
description: Request body (JSON).
required: false
- name: api-payment_flows-id
path: /api/payment_flows/{id}
operations:
- name: getpaymentflow
method: GET
description: get payment_flow
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: Idempotency-Key
in: header
type: string
description: This key should be something unique, preferably something like an UUID.
- name: updatepaymentflow
method: PATCH
description: update payment_flow
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: Idempotency-Key
in: header
type: string
description: This key should be something unique, preferably something like an UUID.
- name: body
in: body
type: object
description: Request body (JSON).
required: false
authentication:
type: basic
username: '{{env.MODERN_TREASURY_USER}}'
password: '{{env.MODERN_TREASURY_PASS}}'
exposes:
- type: rest
namespace: modern-treasury-paymentflow-rest
port: 8080
description: REST adapter for Modern Treasury — PaymentFlow. One Spectral-compliant resource per consumed operation, prefixed
with /v1.
resources:
- path: /v1/api/payment-flows
name: api-payment-flows
description: REST surface for api-payment_flows.
operations:
- method: GET
name: listpaymentflows
description: list payment_flows
call: modern-treasury-paymentflow.listpaymentflows
with:
after_cursor: rest.after_cursor
per_page: rest.per_page
client_token: rest.client_token
status: rest.status
counterparty_id: rest.counterparty_id
receiving_account_id: rest.receiving_account_id
originating_account_id: rest.originating_account_id
payment_order_id: rest.payment_order_id
outputParameters:
- type: object
mapping: $.
- method: POST
name: createpaymentflow
description: create payment_flow
call: modern-treasury-paymentflow.createpaymentflow
with:
Idempotency-Key: rest.Idempotency-Key
body: rest.body
outputParameters:
- type: object
mapping: $.
- path: /v1/api/payment-flows/{id}
name: api-payment-flows-id
description: REST surface for api-payment_flows-id.
operations:
- method: GET
name: getpaymentflow
description: get payment_flow
call: modern-treasury-paymentflow.getpaymentflow
with:
Idempotency-Key: rest.Idempotency-Key
outputParameters:
- type: object
mapping: $.
- method: PATCH
name: updatepaymentflow
description: update payment_flow
call: modern-treasury-paymentflow.updatepaymentflow
with:
Idempotency-Key: rest.Idempotency-Key
body: rest.body
outputParameters:
- type: object
mapping: $.
- type: mcp
namespace: modern-treasury-paymentflow-mcp
port: 9090
transport: http
description: MCP adapter for Modern Treasury — PaymentFlow. One tool per consumed operation, routed inline through this
capability's consumes block.
tools:
- name: list-payment-flows
description: list payment_flows
hints:
readOnly: true
destructive: false
idempotent: true
call: modern-treasury-paymentflow.listpaymentflows
with:
after_cursor: tools.after_cursor
per_page: tools.per_page
client_token: tools.client_token
status: tools.status
counterparty_id: tools.counterparty_id
receiving_account_id: tools.receiving_account_id
originating_account_id: tools.originating_account_id
payment_order_id: tools.payment_order_id
outputParameters:
- type: object
mapping: $.
- name: create-payment-flow
description: create payment_flow
hints:
readOnly: false
destructive: false
idempotent: false
call: modern-treasury-paymentflow.createpaymentflow
with:
Idempotency-Key: tools.Idempotency-Key
body: tools.body
outputParameters:
- type: object
mapping: $.
- name: get-payment-flow
description: get payment_flow
hints:
readOnly: true
destructive: false
idempotent: true
call: modern-treasury-paymentflow.getpaymentflow
with:
Idempotency-Key: tools.Idempotency-Key
outputParameters:
- type: object
mapping: $.
- name: update-payment-flow
description: update payment_flow
hints:
readOnly: false
destructive: false
idempotent: true
call: modern-treasury-paymentflow.updatepaymentflow
with:
Idempotency-Key: tools.Idempotency-Key
body: tools.body
outputParameters:
- type: object
mapping: $.