naftiko: 1.0.0-alpha2 info: label: Stripe Invoice API — Items description: 'Stripe Invoice API — Items. 5 operations. Lead operation: Stripe Get Invoice Items. Self-contained Naftiko capability covering one Stripe business surface.' tags: - Stripe - Items created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: STRIPE_API_KEY: STRIPE_API_KEY capability: consumes: - type: http namespace: invoice-items baseUri: https://api.stripe.com description: Stripe Invoice API — Items 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 authentication: type: bearer token: '{{env.STRIPE_API_KEY}}' exposes: - type: rest namespace: invoice-items-rest port: 8080 description: REST adapter for Stripe Invoice API — Items. 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-items.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-items.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-items.deleteinvoiceitemsinvoiceitem with: invoiceitem: rest.invoiceitem body: rest.body outputParameters: - type: object mapping: $. - method: GET name: getinvoiceitemsinvoiceitem description: Stripe Get Invoice Items call: invoice-items.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-items.postinvoiceitemsinvoiceitem with: invoiceitem: rest.invoiceitem body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: invoice-items-mcp port: 9090 transport: http description: MCP adapter for Stripe Invoice API — Items. 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-items.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-items.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-items.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-items.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-items.postinvoiceitemsinvoiceitem with: invoiceitem: tools.invoiceitem body: tools.body outputParameters: - type: object mapping: $.