Visa Acceptance · Capability

Visa Acceptance Payments API — Payments

Visa Acceptance Payments API — Payments. 2 operations. Lead operation: Authorize Payment. Self-contained Naftiko capability covering one Visa Acceptance business surface.

Run with Naftiko Visa AcceptancePayments

What You Can Do

POST
Authorizepayment — Authorize Payment
/v1/pts/v2/payments
POST
Reverseauthorization — Reverse Authorization
/v1/pts/v2/payments/{paymentid}/reversals

MCP Tools

authorize-payment

Authorize Payment

reverse-authorization

Reverse Authorization

Capability Spec

payments-payments.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Visa Acceptance Payments API — Payments
  description: 'Visa Acceptance Payments API — Payments. 2 operations. Lead operation: Authorize Payment. Self-contained Naftiko
    capability covering one Visa Acceptance business surface.'
  tags:
  - Visa Acceptance
  - Payments
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    VISA_ACCEPTANCE_API_KEY: VISA_ACCEPTANCE_API_KEY
capability:
  consumes:
  - type: http
    namespace: payments-payments
    baseUri: https://api.visaacceptance.com
    description: Visa Acceptance Payments API — Payments business capability. Self-contained, no shared references.
    resources:
    - name: pts-v2-payments
      path: /pts/v2/payments
      operations:
      - name: authorizepayment
        method: POST
        description: Authorize Payment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: pts-v2-payments-paymentId-reversals
      path: /pts/v2/payments/{paymentId}/reversals
      operations:
      - name: reverseauthorization
        method: POST
        description: Reverse Authorization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: paymentId
          in: path
          type: string
          description: The authorization payment ID to reverse
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.VISA_ACCEPTANCE_API_KEY}}'
  exposes:
  - type: rest
    namespace: payments-payments-rest
    port: 8080
    description: REST adapter for Visa Acceptance Payments API — Payments. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/pts/v2/payments
      name: pts-v2-payments
      description: REST surface for pts-v2-payments.
      operations:
      - method: POST
        name: authorizepayment
        description: Authorize Payment
        call: payments-payments.authorizepayment
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/pts/v2/payments/{paymentid}/reversals
      name: pts-v2-payments-paymentid-reversals
      description: REST surface for pts-v2-payments-paymentId-reversals.
      operations:
      - method: POST
        name: reverseauthorization
        description: Reverse Authorization
        call: payments-payments.reverseauthorization
        with:
          paymentId: rest.paymentId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: payments-payments-mcp
    port: 9090
    transport: http
    description: MCP adapter for Visa Acceptance Payments API — Payments. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: authorize-payment
      description: Authorize Payment
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: payments-payments.authorizepayment
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: reverse-authorization
      description: Reverse Authorization
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: payments-payments.reverseauthorization
      with:
        paymentId: tools.paymentId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.