Fiserv · Capability

Fiserv CommerceHub API — Refunds

Fiserv CommerceHub API — Refunds. 1 operations. Lead operation: Fiserv Refund a captured transaction. Self-contained Naftiko capability covering one Fiserv business surface.

Run with Naftiko FiservRefunds

What You Can Do

POST
Refundcharge — Fiserv Refund a captured transaction
/v1/payments/v1/charges/{transactionid}/refund

MCP Tools

fiserv-refund-captured-transaction

Fiserv Refund a captured transaction

Capability Spec

commercehub-refunds.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Fiserv CommerceHub API — Refunds
  description: 'Fiserv CommerceHub API — Refunds. 1 operations. Lead operation: Fiserv Refund a captured transaction. Self-contained
    Naftiko capability covering one Fiserv business surface.'
  tags:
  - Fiserv
  - Refunds
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    FISERV_API_KEY: FISERV_API_KEY
capability:
  consumes:
  - type: http
    namespace: commercehub-refunds
    baseUri: https://connect-cert.fiservapis.com/ch
    description: Fiserv CommerceHub API — Refunds business capability. Self-contained, no shared references.
    resources:
    - name: payments-v1-charges-transactionId-refund
      path: /payments/v1/charges/{transactionId}/refund
      operations:
      - name: refundcharge
        method: POST
        description: Fiserv Refund a captured transaction
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: apikey
      key: Api-Key
      value: '{{env.FISERV_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: commercehub-refunds-rest
    port: 8080
    description: REST adapter for Fiserv CommerceHub API — Refunds. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/payments/v1/charges/{transactionid}/refund
      name: payments-v1-charges-transactionid-refund
      description: REST surface for payments-v1-charges-transactionId-refund.
      operations:
      - method: POST
        name: refundcharge
        description: Fiserv Refund a captured transaction
        call: commercehub-refunds.refundcharge
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: commercehub-refunds-mcp
    port: 9090
    transport: http
    description: MCP adapter for Fiserv CommerceHub API — Refunds. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: fiserv-refund-captured-transaction
      description: Fiserv Refund a captured transaction
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: commercehub-refunds.refundcharge
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.