naftiko: 1.0.0-alpha2 info: label: Stripe Customers API — Discount description: 'Stripe Customers API — Discount. 4 operations. Lead operation: Stripe Delete Customers Customer Discount. Self-contained Naftiko capability covering one Stripe business surface.' tags: - Stripe - Discount created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: STRIPE_API_KEY: STRIPE_API_KEY capability: consumes: - type: http namespace: customers-discount baseUri: https://api.stripe.com description: Stripe Customers API — Discount business capability. Self-contained, no shared references. resources: - name: v1-customers-customer-discount path: /v1/customers/{customer}/discount operations: - name: deletecustomerscustomerdiscount method: DELETE description: Stripe Delete Customers Customer Discount outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: customer in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: false - name: getcustomerscustomerdiscount method: GET description: Stripe Get Customers Customer Discount outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: customer in: path type: string required: true - name: expand in: query type: array description: Specifies which fields in the response should be expanded. - name: body in: body type: object description: Request body (JSON). required: false - name: v1-customers-customer-subscriptions-subscription_exposed_id-discount path: /v1/customers/{customer}/subscriptions/{subscription_exposed_id}/discount operations: - name: deletecustomerscustomersubscriptionssubscriptionexposediddiscount method: DELETE description: Stripe Delete Customers Customer Subscriptions Subscription Exposed Id Discount outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: customer in: path type: string required: true - name: subscription_exposed_id in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: false - name: getcustomerscustomersubscriptionssubscriptionexposediddiscount method: GET description: Stripe Get Customers Customer Subscriptions Subscription Exposed Id Discount outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: customer in: path type: string required: true - name: expand in: query type: array description: Specifies which fields in the response should be expanded. - name: subscription_exposed_id 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: customers-discount-rest port: 8080 description: REST adapter for Stripe Customers API — Discount. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v1/customers/{customer}/discount name: v1-customers-customer-discount description: REST surface for v1-customers-customer-discount. operations: - method: DELETE name: deletecustomerscustomerdiscount description: Stripe Delete Customers Customer Discount call: customers-discount.deletecustomerscustomerdiscount with: customer: rest.customer body: rest.body outputParameters: - type: object mapping: $. - method: GET name: getcustomerscustomerdiscount description: Stripe Get Customers Customer Discount call: customers-discount.getcustomerscustomerdiscount with: customer: rest.customer expand: rest.expand body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v1/customers/{customer}/subscriptions/{subscription-exposed-id}/discount name: v1-customers-customer-subscriptions-subscription-exposed-id-discount description: REST surface for v1-customers-customer-subscriptions-subscription_exposed_id-discount. operations: - method: DELETE name: deletecustomerscustomersubscriptionssubscriptionexposediddiscount description: Stripe Delete Customers Customer Subscriptions Subscription Exposed Id Discount call: customers-discount.deletecustomerscustomersubscriptionssubscriptionexposediddiscount with: customer: rest.customer subscription_exposed_id: rest.subscription_exposed_id body: rest.body outputParameters: - type: object mapping: $. - method: GET name: getcustomerscustomersubscriptionssubscriptionexposediddiscount description: Stripe Get Customers Customer Subscriptions Subscription Exposed Id Discount call: customers-discount.getcustomerscustomersubscriptionssubscriptionexposediddiscount with: customer: rest.customer expand: rest.expand subscription_exposed_id: rest.subscription_exposed_id body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: customers-discount-mcp port: 9090 transport: http description: MCP adapter for Stripe Customers API — Discount. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: stripe-delete-customers-customer-discount description: Stripe Delete Customers Customer Discount hints: readOnly: false destructive: true idempotent: true call: customers-discount.deletecustomerscustomerdiscount with: customer: tools.customer body: tools.body outputParameters: - type: object mapping: $. - name: stripe-get-customers-customer-discount description: Stripe Get Customers Customer Discount hints: readOnly: true destructive: false idempotent: true call: customers-discount.getcustomerscustomerdiscount with: customer: tools.customer expand: tools.expand body: tools.body outputParameters: - type: object mapping: $. - name: stripe-delete-customers-customer-subscriptions description: Stripe Delete Customers Customer Subscriptions Subscription Exposed Id Discount hints: readOnly: false destructive: true idempotent: true call: customers-discount.deletecustomerscustomersubscriptionssubscriptionexposediddiscount with: customer: tools.customer subscription_exposed_id: tools.subscription_exposed_id body: tools.body outputParameters: - type: object mapping: $. - name: stripe-get-customers-customer-subscriptions description: Stripe Get Customers Customer Subscriptions Subscription Exposed Id Discount hints: readOnly: true destructive: false idempotent: true call: customers-discount.getcustomerscustomersubscriptionssubscriptionexposediddiscount with: customer: tools.customer expand: tools.expand subscription_exposed_id: tools.subscription_exposed_id body: tools.body outputParameters: - type: object mapping: $.