naftiko: 1.0.0-alpha2 info: label: Stripe Invoice API — Post description: 'Stripe Invoice API — Post. 10 operations. Lead operation: Stripe Post Invoice Items. Self-contained Naftiko capability covering one Stripe business surface.' tags: - Stripe - Post created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: STRIPE_API_KEY: STRIPE_API_KEY capability: consumes: - type: http namespace: invoice-post baseUri: https://api.stripe.com description: Stripe Invoice API — Post business capability. Self-contained, no shared references. resources: - name: v1-Invoice Items path: /v1/Invoice Items operations: - name: postinvoiceitems method: POST description: Stripe Post Invoice Items outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: v1-Invoice Items-invoiceitem path: /v1/Invoice Items/{invoiceitem} operations: - name: postinvoiceitemsinvoiceitem method: POST description: Stripe Post Invoice Items outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: invoiceitem in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: false - name: v1-invoices path: /v1/invoices operations: - name: postinvoices method: POST description: Stripe Post Invoices outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: v1-invoices-invoice path: /v1/invoices/{invoice} operations: - name: postinvoicesinvoice method: POST description: Stripe Post Invoices Invoice outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: invoice in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: false - name: v1-invoices-invoice-finalize path: /v1/invoices/{invoice}/finalize operations: - name: postinvoicesinvoicefinalize method: POST description: Stripe Post Invoices Invoice Finalize outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: invoice in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: false - name: v1-invoices-invoice-lines-line_item_id path: /v1/invoices/{invoice}/lines/{line_item_id} operations: - name: postinvoicesinvoicelineslineitemid method: POST description: Stripe Post Invoices Invoice Lines Line Item Id outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: invoice in: path type: string description: Invoice ID of line item required: true - name: line_item_id in: path type: string description: Invoice line item ID required: true - name: body in: body type: object description: Request body (JSON). required: false - name: v1-invoices-invoice-mark_uncollectible path: /v1/invoices/{invoice}/mark_uncollectible operations: - name: postinvoicesinvoicemarkuncollectible method: POST description: Stripe Post Invoices Invoice Mark Uncollectible outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: invoice in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: false - name: v1-invoices-invoice-pay path: /v1/invoices/{invoice}/pay operations: - name: postinvoicesinvoicepay method: POST description: Stripe Post Invoices Invoice Pay outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: invoice in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: false - name: v1-invoices-invoice-send path: /v1/invoices/{invoice}/send operations: - name: postinvoicesinvoicesend method: POST description: Stripe Post Invoices Invoice Send outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: invoice in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: false - name: v1-invoices-invoice-void path: /v1/invoices/{invoice}/void operations: - name: postinvoicesinvoicevoid method: POST description: Stripe Post Invoices Invoice Void outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: invoice in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: false authentication: type: bearer token: '{{env.STRIPE_API_KEY}}' exposes: - type: rest namespace: invoice-post-rest port: 8080 description: REST adapter for Stripe Invoice API — Post. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v1/invoice-items name: v1-invoice-items description: REST surface for v1-Invoice Items. operations: - method: POST name: postinvoiceitems description: Stripe Post Invoice Items call: invoice-post.postinvoiceitems with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v1/invoice-items/{invoiceitem} name: v1-invoice-items-invoiceitem description: REST surface for v1-Invoice Items-invoiceitem. operations: - method: POST name: postinvoiceitemsinvoiceitem description: Stripe Post Invoice Items call: invoice-post.postinvoiceitemsinvoiceitem with: invoiceitem: rest.invoiceitem body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v1/invoices name: v1-invoices description: REST surface for v1-invoices. operations: - method: POST name: postinvoices description: Stripe Post Invoices call: invoice-post.postinvoices with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v1/invoices/{invoice} name: v1-invoices-invoice description: REST surface for v1-invoices-invoice. operations: - method: POST name: postinvoicesinvoice description: Stripe Post Invoices Invoice call: invoice-post.postinvoicesinvoice with: invoice: rest.invoice body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v1/invoices/{invoice}/finalize name: v1-invoices-invoice-finalize description: REST surface for v1-invoices-invoice-finalize. operations: - method: POST name: postinvoicesinvoicefinalize description: Stripe Post Invoices Invoice Finalize call: invoice-post.postinvoicesinvoicefinalize with: invoice: rest.invoice body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v1/invoices/{invoice}/lines/{line-item-id} name: v1-invoices-invoice-lines-line-item-id description: REST surface for v1-invoices-invoice-lines-line_item_id. operations: - method: POST name: postinvoicesinvoicelineslineitemid description: Stripe Post Invoices Invoice Lines Line Item Id call: invoice-post.postinvoicesinvoicelineslineitemid with: invoice: rest.invoice line_item_id: rest.line_item_id body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v1/invoices/{invoice}/mark-uncollectible name: v1-invoices-invoice-mark-uncollectible description: REST surface for v1-invoices-invoice-mark_uncollectible. operations: - method: POST name: postinvoicesinvoicemarkuncollectible description: Stripe Post Invoices Invoice Mark Uncollectible call: invoice-post.postinvoicesinvoicemarkuncollectible with: invoice: rest.invoice body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v1/invoices/{invoice}/pay name: v1-invoices-invoice-pay description: REST surface for v1-invoices-invoice-pay. operations: - method: POST name: postinvoicesinvoicepay description: Stripe Post Invoices Invoice Pay call: invoice-post.postinvoicesinvoicepay with: invoice: rest.invoice body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v1/invoices/{invoice}/send name: v1-invoices-invoice-send description: REST surface for v1-invoices-invoice-send. operations: - method: POST name: postinvoicesinvoicesend description: Stripe Post Invoices Invoice Send call: invoice-post.postinvoicesinvoicesend with: invoice: rest.invoice body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v1/invoices/{invoice}/void name: v1-invoices-invoice-void description: REST surface for v1-invoices-invoice-void. operations: - method: POST name: postinvoicesinvoicevoid description: Stripe Post Invoices Invoice Void call: invoice-post.postinvoicesinvoicevoid with: invoice: rest.invoice body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: invoice-post-mcp port: 9090 transport: http description: MCP adapter for Stripe Invoice API — Post. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: stripe-post-invoice-items description: Stripe Post Invoice Items hints: readOnly: false destructive: false idempotent: false call: invoice-post.postinvoiceitems with: body: tools.body outputParameters: - type: object mapping: $. - name: stripe-post-invoice-items-2 description: Stripe Post Invoice Items hints: readOnly: false destructive: false idempotent: false call: invoice-post.postinvoiceitemsinvoiceitem with: invoiceitem: tools.invoiceitem body: tools.body outputParameters: - type: object mapping: $. - name: stripe-post-invoices description: Stripe Post Invoices hints: readOnly: false destructive: false idempotent: false call: invoice-post.postinvoices with: body: tools.body outputParameters: - type: object mapping: $. - name: stripe-post-invoices-invoice description: Stripe Post Invoices Invoice hints: readOnly: false destructive: false idempotent: false call: invoice-post.postinvoicesinvoice with: invoice: tools.invoice body: tools.body outputParameters: - type: object mapping: $. - name: stripe-post-invoices-invoice-finalize description: Stripe Post Invoices Invoice Finalize hints: readOnly: false destructive: false idempotent: false call: invoice-post.postinvoicesinvoicefinalize with: invoice: tools.invoice body: tools.body outputParameters: - type: object mapping: $. - name: stripe-post-invoices-invoice-lines description: Stripe Post Invoices Invoice Lines Line Item Id hints: readOnly: false destructive: false idempotent: false call: invoice-post.postinvoicesinvoicelineslineitemid with: invoice: tools.invoice line_item_id: tools.line_item_id body: tools.body outputParameters: - type: object mapping: $. - name: stripe-post-invoices-invoice-mark description: Stripe Post Invoices Invoice Mark Uncollectible hints: readOnly: false destructive: false idempotent: false call: invoice-post.postinvoicesinvoicemarkuncollectible with: invoice: tools.invoice body: tools.body outputParameters: - type: object mapping: $. - name: stripe-post-invoices-invoice-pay description: Stripe Post Invoices Invoice Pay hints: readOnly: false destructive: false idempotent: false call: invoice-post.postinvoicesinvoicepay with: invoice: tools.invoice body: tools.body outputParameters: - type: object mapping: $. - name: stripe-post-invoices-invoice-send description: Stripe Post Invoices Invoice Send hints: readOnly: false destructive: false idempotent: false call: invoice-post.postinvoicesinvoicesend with: invoice: tools.invoice body: tools.body outputParameters: - type: object mapping: $. - name: stripe-post-invoices-invoice-void description: Stripe Post Invoices Invoice Void hints: readOnly: false destructive: false idempotent: false call: invoice-post.postinvoicesinvoicevoid with: invoice: tools.invoice body: tools.body outputParameters: - type: object mapping: $.