Adyen · Capability

Adyen Payment API — Refund

Adyen Payment API — Refund. 1 operations. Lead operation: Adyen Refund a Captured Payment. Self-contained Naftiko capability covering one Adyen business surface.

Run with Naftiko AdyenRefund

What You Can Do

POST
Postrefund — Adyen Refund a Captured Payment
/v1/refund

MCP Tools

adyen-refund-captured-payment

Adyen Refund a Captured Payment

Capability Spec

payments-refund.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Adyen Payment API — Refund
  description: 'Adyen Payment API — Refund. 1 operations. Lead operation: Adyen Refund a Captured Payment. Self-contained
    Naftiko capability covering one Adyen business surface.'
  tags:
  - Adyen
  - Refund
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ADYEN_API_KEY: ADYEN_API_KEY
capability:
  consumes:
  - type: http
    namespace: payments-refund
    baseUri: https://pal-test.adyen.com/pal/servlet/Payment/v68
    description: Adyen Payment API — Refund business capability. Self-contained, no shared references.
    resources:
    - name: refund
      path: /refund
      operations:
      - name: postrefund
        method: POST
        description: Adyen Refund a Captured Payment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: apikey
      key: X-API-Key
      value: '{{env.ADYEN_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: payments-refund-rest
    port: 8080
    description: REST adapter for Adyen Payment API — Refund. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/refund
      name: refund
      description: REST surface for refund.
      operations:
      - method: POST
        name: postrefund
        description: Adyen Refund a Captured Payment
        call: payments-refund.postrefund
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: payments-refund-mcp
    port: 9090
    transport: http
    description: MCP adapter for Adyen Payment API — Refund. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: adyen-refund-captured-payment
      description: Adyen Refund a Captured Payment
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: payments-refund.postrefund
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.