naftiko: 1.0.0-alpha2 info: label: Bunq user/{userID}/invoice — User description: 'Bunq user/{userID}/invoice — User. 3 operations. Lead operation: User. Self-contained Naftiko capability covering one Bunq business surface.' tags: - Bunq - User created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: BUNQ_API_KEY: BUNQ_API_KEY capability: consumes: - type: http namespace: user-userid-invoice-user baseUri: https://public-api.sandbox.bunq.com/{basePath} description: Bunq user/{userID}/invoice — User business capability. Self-contained, no shared references. resources: - name: user-userID-invoice path: /user/{userID}/invoice operations: - name: listallinvoiceforuser method: GET description: Used to list bunq invoices by user. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: userID in: path type: integer required: true - name: user-userID-invoice-invoiceID-pdf-content path: /user/{userID}/invoice/{invoiceID}/pdf-content operations: - name: listallpdfcontentforuserinvoice method: GET description: Get a PDF export of an invoice. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: userID in: path type: integer required: true - name: invoiceID in: path type: integer required: true - name: user-userID-invoice-itemId path: /user/{userID}/invoice/{itemId} operations: - name: readinvoiceforuser method: GET description: Used to list bunq invoices by user. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: userID in: path type: integer required: true - name: itemId in: path type: integer required: true exposes: - type: rest namespace: user-userid-invoice-user-rest port: 8080 description: REST adapter for Bunq user/{userID}/invoice — User. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/user/{userid}/invoice name: user-userid-invoice description: REST surface for user-userID-invoice. operations: - method: GET name: listallinvoiceforuser description: Used to list bunq invoices by user. call: user-userid-invoice-user.listallinvoiceforuser with: userID: rest.userID outputParameters: - type: object mapping: $. - path: /v1/user/{userid}/invoice/{invoiceid}/pdf-content name: user-userid-invoice-invoiceid-pdf-content description: REST surface for user-userID-invoice-invoiceID-pdf-content. operations: - method: GET name: listallpdfcontentforuserinvoice description: Get a PDF export of an invoice. call: user-userid-invoice-user.listallpdfcontentforuserinvoice with: userID: rest.userID invoiceID: rest.invoiceID outputParameters: - type: object mapping: $. - path: /v1/user/{userid}/invoice/{itemid} name: user-userid-invoice-itemid description: REST surface for user-userID-invoice-itemId. operations: - method: GET name: readinvoiceforuser description: Used to list bunq invoices by user. call: user-userid-invoice-user.readinvoiceforuser with: userID: rest.userID itemId: rest.itemId outputParameters: - type: object mapping: $. - type: mcp namespace: user-userid-invoice-user-mcp port: 9090 transport: http description: MCP adapter for Bunq user/{userID}/invoice — User. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: used-list-bunq-invoices-user description: Used to list bunq invoices by user. hints: readOnly: true destructive: false idempotent: true call: user-userid-invoice-user.listallinvoiceforuser with: userID: tools.userID outputParameters: - type: object mapping: $. - name: get-pdf-export-invoice description: Get a PDF export of an invoice. hints: readOnly: true destructive: false idempotent: true call: user-userid-invoice-user.listallpdfcontentforuserinvoice with: userID: tools.userID invoiceID: tools.invoiceID outputParameters: - type: object mapping: $. - name: used-list-bunq-invoices-user-2 description: Used to list bunq invoices by user. hints: readOnly: true destructive: false idempotent: true call: user-userid-invoice-user.readinvoiceforuser with: userID: tools.userID itemId: tools.itemId outputParameters: - type: object mapping: $.