PayPal · Capability

Paypal Payments — Captures

Paypal Payments — Captures. 2 operations. Lead operation: Paypal Show captured payment details. Self-contained Naftiko capability covering one Paypal business surface.

Run with Naftiko PaypalCaptures

What You Can Do

GET
Capturesget — Paypal Show captured payment details
/v1/v2/payments/captures/{capture-id}
POST
Capturesrefund — Paypal Refund captured payment
/v1/v2/payments/captures/{capture-id}/refund

MCP Tools

paypal-show-captured-payment-details

Paypal Show captured payment details

read-only idempotent
paypal-refund-captured-payment

Paypal Refund captured payment

Capability Spec

payments-captures.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Paypal Payments — Captures
  description: 'Paypal Payments — Captures. 2 operations. Lead operation: Paypal Show captured payment details. Self-contained
    Naftiko capability covering one Paypal business surface.'
  tags:
  - Paypal
  - Captures
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    PAYPAL_API_KEY: PAYPAL_API_KEY
capability:
  consumes:
  - type: http
    namespace: payments-captures
    baseUri: https://api-m.sandbox.paypal.com
    description: Paypal Payments — Captures business capability. Self-contained, no shared references.
    resources:
    - name: v2-payments-captures-capture_id
      path: /v2/payments/captures/{capture_id}
      operations:
      - name: capturesget
        method: GET
        description: Paypal Show captured payment details
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: v2-payments-captures-capture_id-refund
      path: /v2/payments/captures/{capture_id}/refund
      operations:
      - name: capturesrefund
        method: POST
        description: Paypal Refund 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: bearer
      token: '{{env.PAYPAL_API_KEY}}'
  exposes:
  - type: rest
    namespace: payments-captures-rest
    port: 8080
    description: REST adapter for Paypal Payments — Captures. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/v2/payments/captures/{capture-id}
      name: v2-payments-captures-capture-id
      description: REST surface for v2-payments-captures-capture_id.
      operations:
      - method: GET
        name: capturesget
        description: Paypal Show captured payment details
        call: payments-captures.capturesget
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v2/payments/captures/{capture-id}/refund
      name: v2-payments-captures-capture-id-refund
      description: REST surface for v2-payments-captures-capture_id-refund.
      operations:
      - method: POST
        name: capturesrefund
        description: Paypal Refund captured payment
        call: payments-captures.capturesrefund
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: payments-captures-mcp
    port: 9090
    transport: http
    description: MCP adapter for Paypal Payments — Captures. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: paypal-show-captured-payment-details
      description: Paypal Show captured payment details
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: payments-captures.capturesget
      outputParameters:
      - type: object
        mapping: $.
    - name: paypal-refund-captured-payment
      description: Paypal Refund captured payment
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: payments-captures.capturesrefund
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.