naftiko: 1.0.0-alpha2 info: label: Core API — Balance Refunds description: 'Core API — Balance Refunds. 1 operations. Lead operation: Create balance refund. Self-contained Naftiko capability covering one Marqeta business surface.' tags: - Marqeta - Balance Refunds created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MARQETA_API_KEY: MARQETA_API_KEY capability: consumes: - type: http namespace: core-balance-refunds baseUri: '' description: Core API — Balance Refunds business capability. Self-contained, no shared references. resources: - name: accounts-account_token-creditbalancerefunds path: /accounts/{account_token}/creditbalancerefunds operations: - name: createbalancerefund method: POST description: Create balance refund outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: account_token in: path type: string description: Unique identifier of the credit account for which you want to create a balance refund. required: true - name: body in: body type: object description: Request body (JSON). required: true authentication: type: basic username: '{{env.MARQETA_USER}}' password: '{{env.MARQETA_PASS}}' exposes: - type: rest namespace: core-balance-refunds-rest port: 8080 description: REST adapter for Core API — Balance Refunds. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/accounts/{account-token}/creditbalancerefunds name: accounts-account-token-creditbalancerefunds description: REST surface for accounts-account_token-creditbalancerefunds. operations: - method: POST name: createbalancerefund description: Create balance refund call: core-balance-refunds.createbalancerefund with: account_token: rest.account_token body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: core-balance-refunds-mcp port: 9090 transport: http description: MCP adapter for Core API — Balance Refunds. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: create-balance-refund description: Create balance refund hints: readOnly: false destructive: false idempotent: false call: core-balance-refunds.createbalancerefund with: account_token: tools.account_token body: tools.body outputParameters: - type: object mapping: $.