naftiko: 1.0.0-alpha2 info: label: Stripe Invoice API — Invoice description: 'Stripe Invoice API — Invoice. 15 operations. Lead operation: Stripe Get Invoice Items. Self-contained Naftiko capability covering one Stripe business surface.' tags: - Stripe - Invoice created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: STRIPE_API_KEY: STRIPE_API_KEY capability: consumes: - type: http namespace: invoice-invoice baseUri: https://api.stripe.com description: Stripe Invoice API — Invoice business capability. Self-contained, no shared references. resources: - name: v1-Invoice Items path: /v1/Invoice Items operations: - name: getinvoiceitems method: GET description: Stripe Get Invoice Items outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: created in: query type: string - name: customer in: query type: string description: The identifier of the customer whose invoice items to return. If none is provided, all invoice items will be returned. - name: ending_before in: query type: string description: A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 ob - name: expand in: query type: array description: Specifies which fields in the response should be expanded. - name: invoice in: query type: string description: Only return invoice items belonging to this invoice. If none is provided, all invoice items will be returned. If specifying an invoice, no customer identifier i - name: limit in: query type: integer description: A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. - name: pending in: query type: boolean description: Set to `true` to only show pending invoice items, which are not yet attached to any invoices. Set to `false` to only show invoice items already attached to invo - name: starting_after in: query type: string description: A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 o - name: body in: body type: object description: Request body (JSON). required: false - 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: deleteinvoiceitemsinvoiceitem method: DELETE description: Stripe Delete 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: getinvoiceitemsinvoiceitem method: GET description: Stripe Get Invoice Items outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: expand in: query type: array description: Specifies which fields in the response should be expanded. - name: invoiceitem in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: false - 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-invoice path: /v1/invoices/{invoice} operations: - name: deleteinvoicesinvoice method: DELETE description: Stripe Delete 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: getinvoicesinvoice method: GET description: Stripe Get Invoices Invoice outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: expand in: query type: array description: Specifies which fields in the response should be expanded. - name: invoice in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: false - 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 path: /v1/invoices/{invoice}/lines operations: - name: getinvoicesinvoicelines method: GET description: Stripe Get Invoices Invoice Lines outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: ending_before in: query type: string description: A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 ob - name: expand in: query type: array description: Specifies which fields in the response should be expanded. - name: invoice in: path type: string required: true - name: limit in: query type: integer description: A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. - name: starting_after in: query type: string description: A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 o - 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-invoice-rest port: 8080 description: REST adapter for Stripe Invoice API — Invoice. 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: GET name: getinvoiceitems description: Stripe Get Invoice Items call: invoice-invoice.getinvoiceitems with: created: rest.created customer: rest.customer ending_before: rest.ending_before expand: rest.expand invoice: rest.invoice limit: rest.limit pending: rest.pending starting_after: rest.starting_after body: rest.body outputParameters: - type: object mapping: $. - method: POST name: postinvoiceitems description: Stripe Post Invoice Items call: invoice-invoice.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: DELETE name: deleteinvoiceitemsinvoiceitem description: Stripe Delete Invoice Items call: invoice-invoice.deleteinvoiceitemsinvoiceitem with: invoiceitem: rest.invoiceitem body: rest.body outputParameters: - type: object mapping: $. - method: GET name: getinvoiceitemsinvoiceitem description: Stripe Get Invoice Items call: invoice-invoice.getinvoiceitemsinvoiceitem with: expand: rest.expand invoiceitem: rest.invoiceitem body: rest.body outputParameters: - type: object mapping: $. - method: POST name: postinvoiceitemsinvoiceitem description: Stripe Post Invoice Items call: invoice-invoice.postinvoiceitemsinvoiceitem with: invoiceitem: rest.invoiceitem 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: DELETE name: deleteinvoicesinvoice description: Stripe Delete Invoices Invoice call: invoice-invoice.deleteinvoicesinvoice with: invoice: rest.invoice body: rest.body outputParameters: - type: object mapping: $. - method: GET name: getinvoicesinvoice description: Stripe Get Invoices Invoice call: invoice-invoice.getinvoicesinvoice with: expand: rest.expand invoice: rest.invoice body: rest.body outputParameters: - type: object mapping: $. - method: POST name: postinvoicesinvoice description: Stripe Post Invoices Invoice call: invoice-invoice.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-invoice.postinvoicesinvoicefinalize with: invoice: rest.invoice body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v1/invoices/{invoice}/lines name: v1-invoices-invoice-lines description: REST surface for v1-invoices-invoice-lines. operations: - method: GET name: getinvoicesinvoicelines description: Stripe Get Invoices Invoice Lines call: invoice-invoice.getinvoicesinvoicelines with: ending_before: rest.ending_before expand: rest.expand invoice: rest.invoice limit: rest.limit starting_after: rest.starting_after 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-invoice.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-invoice.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-invoice.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-invoice.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-invoice.postinvoicesinvoicevoid with: invoice: rest.invoice body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: invoice-invoice-mcp port: 9090 transport: http description: MCP adapter for Stripe Invoice API — Invoice. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: stripe-get-invoice-items description: Stripe Get Invoice Items hints: readOnly: true destructive: false idempotent: true call: invoice-invoice.getinvoiceitems with: created: tools.created customer: tools.customer ending_before: tools.ending_before expand: tools.expand invoice: tools.invoice limit: tools.limit pending: tools.pending starting_after: tools.starting_after body: tools.body outputParameters: - type: object mapping: $. - name: stripe-post-invoice-items description: Stripe Post Invoice Items hints: readOnly: false destructive: false idempotent: false call: invoice-invoice.postinvoiceitems with: body: tools.body outputParameters: - type: object mapping: $. - name: stripe-delete-invoice-items description: Stripe Delete Invoice Items hints: readOnly: false destructive: true idempotent: true call: invoice-invoice.deleteinvoiceitemsinvoiceitem with: invoiceitem: tools.invoiceitem body: tools.body outputParameters: - type: object mapping: $. - name: stripe-get-invoice-items-2 description: Stripe Get Invoice Items hints: readOnly: true destructive: false idempotent: true call: invoice-invoice.getinvoiceitemsinvoiceitem with: expand: tools.expand invoiceitem: tools.invoiceitem 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-invoice.postinvoiceitemsinvoiceitem with: invoiceitem: tools.invoiceitem body: tools.body outputParameters: - type: object mapping: $. - name: stripe-delete-invoices-invoice description: Stripe Delete Invoices Invoice hints: readOnly: false destructive: true idempotent: true call: invoice-invoice.deleteinvoicesinvoice with: invoice: tools.invoice body: tools.body outputParameters: - type: object mapping: $. - name: stripe-get-invoices-invoice description: Stripe Get Invoices Invoice hints: readOnly: true destructive: false idempotent: true call: invoice-invoice.getinvoicesinvoice with: expand: tools.expand invoice: tools.invoice 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-invoice.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-invoice.postinvoicesinvoicefinalize with: invoice: tools.invoice body: tools.body outputParameters: - type: object mapping: $. - name: stripe-get-invoices-invoice-lines description: Stripe Get Invoices Invoice Lines hints: readOnly: true destructive: false idempotent: true call: invoice-invoice.getinvoicesinvoicelines with: ending_before: tools.ending_before expand: tools.expand invoice: tools.invoice limit: tools.limit starting_after: tools.starting_after 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-invoice.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-invoice.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-invoice.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-invoice.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-invoice.postinvoicesinvoicevoid with: invoice: tools.invoice body: tools.body outputParameters: - type: object mapping: $.