naftiko: 1.0.0-alpha2 info: label: Klarna Settlements API — Transactions description: 'Klarna Settlements API — Transactions. 1 operations. Lead operation: Klarna List transactions in a payout. Self-contained Naftiko capability covering one Klarna business surface.' tags: - Klarna - Transactions created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: KLARNA_API_KEY: KLARNA_API_KEY capability: consumes: - type: http namespace: settlements-transactions baseUri: https://api.klarna.com/settlements/v1 description: Klarna Settlements API — Transactions business capability. Self-contained, no shared references. resources: - name: transactions path: /transactions operations: - name: gettransactions method: GET description: Klarna List transactions in a payout outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: payment_reference in: query type: string description: The reference id of the payout - name: order_id in: query type: string description: The Klarna assigned order id reference - name: size in: query type: integer description: How many elements to include in the result. If no value for size is provided, a default of 20 will be used. A maximum of 500 can be set. - name: offset in: query type: integer description: The current offset. Describes "where" in a collection the current starts. authentication: type: basic username: '{{env.KLARNA_USER}}' password: '{{env.KLARNA_PASS}}' exposes: - type: rest namespace: settlements-transactions-rest port: 8080 description: REST adapter for Klarna Settlements API — Transactions. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/transactions name: transactions description: REST surface for transactions. operations: - method: GET name: gettransactions description: Klarna List transactions in a payout call: settlements-transactions.gettransactions with: payment_reference: rest.payment_reference order_id: rest.order_id size: rest.size offset: rest.offset outputParameters: - type: object mapping: $. - type: mcp namespace: settlements-transactions-mcp port: 9090 transport: http description: MCP adapter for Klarna Settlements API — Transactions. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: klarna-list-transactions-payout description: Klarna List transactions in a payout hints: readOnly: true destructive: false idempotent: true call: settlements-transactions.gettransactions with: payment_reference: tools.payment_reference order_id: tools.order_id size: tools.size offset: tools.offset outputParameters: - type: object mapping: $.