naftiko: 1.0.0-alpha2 info: label: Amazon Pay API — Refunds description: 'Amazon Pay API — Refunds. 2 operations. Lead operation: Amazon Create a Refund. Self-contained Naftiko capability covering one Amazon business surface.' tags: - Amazon - Refunds created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: AMAZON_API_KEY: AMAZON_API_KEY capability: consumes: - type: http namespace: pay-refunds baseUri: https://pay-api.amazon.com/live/v2 description: Amazon Pay API — Refunds business capability. Self-contained, no shared references. resources: - name: refunds path: /refunds operations: - name: createrefund method: POST description: Amazon Create a Refund outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: refunds-refundId path: /refunds/{refundId} operations: - name: getrefund method: GET description: Amazon Get Refund Details outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: refundId in: path type: string required: true authentication: type: apikey key: authorization value: '{{env.AMAZON_API_KEY}}' placement: header exposes: - type: rest namespace: pay-refunds-rest port: 8080 description: REST adapter for Amazon Pay API — Refunds. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/refunds name: refunds description: REST surface for refunds. operations: - method: POST name: createrefund description: Amazon Create a Refund call: pay-refunds.createrefund with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/refunds/{refundid} name: refunds-refundid description: REST surface for refunds-refundId. operations: - method: GET name: getrefund description: Amazon Get Refund Details call: pay-refunds.getrefund with: refundId: rest.refundId outputParameters: - type: object mapping: $. - type: mcp namespace: pay-refunds-mcp port: 9090 transport: http description: MCP adapter for Amazon Pay API — Refunds. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: amazon-create-refund description: Amazon Create a Refund hints: readOnly: false destructive: false idempotent: false call: pay-refunds.createrefund with: body: tools.body outputParameters: - type: object mapping: $. - name: amazon-get-refund-details description: Amazon Get Refund Details hints: readOnly: true destructive: false idempotent: true call: pay-refunds.getrefund with: refundId: tools.refundId outputParameters: - type: object mapping: $.