Tratta · Capability

Tratta API — Payment Plans

Tratta API — Payment Plans. 4 operations. Lead operation: List Payment Plans. Self-contained Naftiko capability covering one Tratta business surface.

Run with Naftiko TrattaPayment Plans

What You Can Do

GET
Listpaymentplans — List Payment Plans
/v1/payment-plans
POST
Createpaymentplan — Create Payment Plan
/v1/payment-plans
GET
Getpaymentplan — Get Payment Plan
/v1/payment-plans/{id}
PUT
Updatepaymentplan — Update Payment Plan
/v1/payment-plans/{id}

MCP Tools

list-payment-plans

List Payment Plans

read-only idempotent
create-payment-plan

Create Payment Plan

get-payment-plan

Get Payment Plan

read-only idempotent
update-payment-plan

Update Payment Plan

idempotent

Capability Spec

tratta-payment-plans.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Tratta API — Payment Plans
  description: 'Tratta API — Payment Plans. 4 operations. Lead operation: List Payment Plans. Self-contained Naftiko capability
    covering one Tratta business surface.'
  tags:
  - Tratta
  - Payment Plans
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    TRATTA_API_KEY: TRATTA_API_KEY
capability:
  consumes:
  - type: http
    namespace: tratta-payment-plans
    baseUri: https://{org-uuid}.production.tratta.io/api/v1
    description: Tratta API — Payment Plans business capability. Self-contained, no shared references.
    resources:
    - name: payment_plans
      path: /payment_plans
      operations:
      - name: listpaymentplans
        method: GET
        description: List Payment Plans
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createpaymentplan
        method: POST
        description: Create Payment Plan
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: payment_plans-id
      path: /payment_plans/{id}
      operations:
      - name: getpaymentplan
        method: GET
        description: Get Payment Plan
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatepaymentplan
        method: PUT
        description: Update Payment Plan
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.TRATTA_API_KEY}}'
  exposes:
  - type: rest
    namespace: tratta-payment-plans-rest
    port: 8080
    description: REST adapter for Tratta API — Payment Plans. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/payment-plans
      name: payment-plans
      description: REST surface for payment_plans.
      operations:
      - method: GET
        name: listpaymentplans
        description: List Payment Plans
        call: tratta-payment-plans.listpaymentplans
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createpaymentplan
        description: Create Payment Plan
        call: tratta-payment-plans.createpaymentplan
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/payment-plans/{id}
      name: payment-plans-id
      description: REST surface for payment_plans-id.
      operations:
      - method: GET
        name: getpaymentplan
        description: Get Payment Plan
        call: tratta-payment-plans.getpaymentplan
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatepaymentplan
        description: Update Payment Plan
        call: tratta-payment-plans.updatepaymentplan
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: tratta-payment-plans-mcp
    port: 9090
    transport: http
    description: MCP adapter for Tratta API — Payment Plans. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: list-payment-plans
      description: List Payment Plans
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: tratta-payment-plans.listpaymentplans
      outputParameters:
      - type: object
        mapping: $.
    - name: create-payment-plan
      description: Create Payment Plan
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: tratta-payment-plans.createpaymentplan
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-payment-plan
      description: Get Payment Plan
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: tratta-payment-plans.getpaymentplan
      outputParameters:
      - type: object
        mapping: $.
    - name: update-payment-plan
      description: Update Payment Plan
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: tratta-payment-plans.updatepaymentplan
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.