Interswitch · Capability

Interswitch Payment Gateway API — Payments

Server-to-server card payments and payment-link creation on the Interswitch Payment Gateway.

Interswitch Payment Gateway API — Payments is a Naftiko capability published by Interswitch, one of 12 capabilities the APIs.io network indexes for this provider. It bundles 3 operations across the POST and GET methods.

The capability includes 1 read-only operation and 2 state-changing operations. Lead operation: Authorize and capture a card payment. Can be deployed as a REST endpoint, MCP tool, or Agent Skill via Naftiko.

Tagged areas include Interswitch, Payments, and Card Payments.

Run with Naftiko InterswitchPaymentsCard Payments

What You Can Do

POST
Createcardpayment
/v1/payments
GET
Getpayment
/v1/payments
POST
Createpaymentlink
/v1/payment-links

MCP Tools

interswitch-create-card-payment

Authorize and capture a card payment.

interswitch-get-payment

Retrieve a card payment by ID.

read-only idempotent
interswitch-create-payment-link

Create a hosted payment link.

Capability Spec

payment-gateway-payments.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Interswitch Payment Gateway API — Payments
  description: Server-to-server card payments and payment-link creation on the Interswitch Payment Gateway.
  tags:
  - Interswitch
  - Payments
  - Card Payments
  created: '2026-05-24'
  modified: '2026-05-24'
binds:
- namespace: env
  keys:
    INTERSWITCH_BEARER_TOKEN: INTERSWITCH_BEARER_TOKEN
capability:
  consumes:
  - type: http
    namespace: payment-gateway-payments
    baseUri: https://qa.interswitchng.com
    description: Interswitch Payment Gateway business capability.
    resources:
    - name: payments
      path: /paymentgateway/api/v1/payments
      operations:
      - name: createCardPayment
        method: POST
        description: Authorize and capture a card payment.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          required: true
    - name: payment-by-id
      path: /paymentgateway/api/v1/payments/{paymentId}
      operations:
      - name: getPayment
        method: GET
        description: Retrieve a payment by ID.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: paymentId
          in: path
          type: string
          required: true
    - name: payment-links
      path: /paymentgateway/api/v1/payment-links
      operations:
      - name: createPaymentLink
        method: POST
        description: Create a hosted payment link.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          required: true
    authentication:
      type: apikey
      key: Authorization
      value: 'Bearer {{env.INTERSWITCH_BEARER_TOKEN}}'
      placement: header
  exposes:
  - type: rest
    namespace: payment-gateway-payments-rest
    port: 8080
    resources:
    - path: /v1/payments
      name: payments
      operations:
      - method: POST
        name: createCardPayment
        call: payment-gateway-payments.createCardPayment
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getPayment
        path: /v1/payments/{paymentId}
        call: payment-gateway-payments.getPayment
        with:
          paymentId: rest.path.paymentId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/payment-links
      name: payment-links
      operations:
      - method: POST
        name: createPaymentLink
        call: payment-gateway-payments.createPaymentLink
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: payment-gateway-payments-mcp
    port: 9090
    transport: http
    tools:
    - name: interswitch-create-card-payment
      description: Authorize and capture a card payment.
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: payment-gateway-payments.createCardPayment
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: interswitch-get-payment
      description: Retrieve a card payment by ID.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: payment-gateway-payments.getPayment
      with:
        paymentId: tools.paymentId
      outputParameters:
      - type: object
        mapping: $.
    - name: interswitch-create-payment-link
      description: Create a hosted payment link.
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: payment-gateway-payments.createPaymentLink
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.