Adyen · Capability

Adyen Checkout API — Session

Adyen Checkout API — Session. 2 operations. Lead operation: Adyen Create a Payment Session. Self-contained Naftiko capability covering one Adyen business surface.

Run with Naftiko AdyenSession

What You Can Do

POST
Postpaymentsession — Adyen Create a Payment Session
/v1/paymentsession
GET
Getsessionssessionid — Adyen Get the Result of a Payment Session
/v1/sessions/{sessionid}

MCP Tools

adyen-create-payment-session

Adyen Create a Payment Session

adyen-get-result-payment-session

Adyen Get the Result of a Payment Session

read-only idempotent

Capability Spec

checkout-session.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Adyen Checkout API — Session
  description: 'Adyen Checkout API — Session. 2 operations. Lead operation: Adyen Create a Payment Session. Self-contained
    Naftiko capability covering one Adyen business surface.'
  tags:
  - Adyen
  - Session
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ADYEN_API_KEY: ADYEN_API_KEY
capability:
  consumes:
  - type: http
    namespace: checkout-session
    baseUri: https://checkout-test.adyen.com/v71
    description: Adyen Checkout API — Session business capability. Self-contained, no shared references.
    resources:
    - name: paymentSession
      path: /paymentSession
      operations:
      - name: postpaymentsession
        method: POST
        description: Adyen Create a Payment Session
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: sessions-sessionId
      path: /sessions/{sessionId}
      operations:
      - name: getsessionssessionid
        method: GET
        description: Adyen Get the Result of a Payment Session
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: sessionId
          in: path
          type: string
          description: A unique identifier of the session.
          required: true
        - name: sessionResult
          in: query
          type: string
          description: The `sessionResult` value from the Drop-in or Component.
          required: true
    authentication:
      type: apikey
      key: X-API-Key
      value: '{{env.ADYEN_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: checkout-session-rest
    port: 8080
    description: REST adapter for Adyen Checkout API — Session. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/paymentsession
      name: paymentsession
      description: REST surface for paymentSession.
      operations:
      - method: POST
        name: postpaymentsession
        description: Adyen Create a Payment Session
        call: checkout-session.postpaymentsession
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/sessions/{sessionid}
      name: sessions-sessionid
      description: REST surface for sessions-sessionId.
      operations:
      - method: GET
        name: getsessionssessionid
        description: Adyen Get the Result of a Payment Session
        call: checkout-session.getsessionssessionid
        with:
          sessionId: rest.sessionId
          sessionResult: rest.sessionResult
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: checkout-session-mcp
    port: 9090
    transport: http
    description: MCP adapter for Adyen Checkout API — Session. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: adyen-create-payment-session
      description: Adyen Create a Payment Session
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: checkout-session.postpaymentsession
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: adyen-get-result-payment-session
      description: Adyen Get the Result of a Payment Session
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: checkout-session.getsessionssessionid
      with:
        sessionId: tools.sessionId
        sessionResult: tools.sessionResult
      outputParameters:
      - type: object
        mapping: $.