Paymob · Capability

Paymob Accept API — Transactions

Paymob Accept legacy v2 transaction operations: retrieve transaction by id, inquire by merchant order id, capture, void, refund.

Paymob Accept API — Transactions is a Naftiko capability published by Paymob, one of 6 capabilities the APIs.io network indexes for this provider. It bundles 4 operations.

The capability includes 1 read-only operation and 3 state-changing operations. Lead operation: Retrieve a Paymob transaction by id. Can be deployed as a REST endpoint, MCP tool, or Agent Skill via Naftiko.

Tagged areas include Paymob, Accept, and Transactions.

Run with Naftiko PaymobAcceptTransactions

MCP Tools

paymob-retrieve-transaction

Retrieve a Paymob transaction by id.

read-only idempotent
paymob-refund-transaction

Refund a Paymob transaction.

paymob-void-transaction

Void a Paymob transaction.

paymob-capture-transaction

Capture a Paymob transaction.

Capability Spec

accept-transactions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Paymob Accept API — Transactions
  description: 'Paymob Accept legacy v2 transaction operations: retrieve transaction by id, inquire by merchant order id, capture, void, refund.'
  tags:
  - Paymob
  - Accept
  - Transactions
  created: '2026-05-24'
  modified: '2026-05-24'
binds:
- namespace: env
  keys:
    PAYMOB_AUTH_TOKEN: PAYMOB_AUTH_TOKEN
capability:
  consumes:
  - type: http
    namespace: accept-transactions
    baseUri: https://accept.paymob.com
    description: Paymob Accept legacy v2 transactions.
    resources:
    - name: transaction
      path: /api/acceptance/transactions/{transaction_id}
      operations:
      - name: retrievetransaction
        method: GET
        description: Retrieve transaction details by id.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: transaction_id
          in: path
          type: integer
          required: true
    - name: refund
      path: /api/acceptance/void_refund/refund
      operations:
      - name: refundtransaction
        method: POST
        description: Refund a captured transaction.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          required: true
    - name: void
      path: /api/acceptance/void_refund/void
      operations:
      - name: voidtransaction
        method: POST
        description: Void an authorised transaction.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          required: true
    - name: capture
      path: /api/acceptance/capture
      operations:
      - name: capturetransaction
        method: POST
        description: Capture an authorised transaction.
        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.PAYMOB_AUTH_TOKEN}}'
      placement: header
  exposes:
  - type: mcp
    namespace: accept-transactions-mcp
    port: 9090
    transport: http
    description: MCP adapter for Paymob Accept transactions.
    tools:
    - name: paymob-retrieve-transaction
      description: Retrieve a Paymob transaction by id.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: accept-transactions.retrievetransaction
      with:
        transaction_id: tools.transaction_id
      outputParameters:
      - type: object
        mapping: $.
    - name: paymob-refund-transaction
      description: Refund a Paymob transaction.
      hints:
        readOnly: false
        destructive: true
        idempotent: false
      call: accept-transactions.refundtransaction
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: paymob-void-transaction
      description: Void a Paymob transaction.
      hints:
        readOnly: false
        destructive: true
        idempotent: false
      call: accept-transactions.voidtransaction
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: paymob-capture-transaction
      description: Capture a Paymob transaction.
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: accept-transactions.capturetransaction
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.