Stripe · Capability

Stripe Customers API — Subscriptions

Stripe Customers API — Subscriptions. 7 operations. Lead operation: Stripe Get Customers Customer Subscriptions. Self-contained Naftiko capability covering one Stripe business surface.

Run with Naftiko StripeSubscriptions

What You Can Do

GET
Getcustomerscustomersubscriptions — Stripe Get Customers Customer Subscriptions
/v1/v1/customers/{customer}/subscriptions
POST
Postcustomerscustomersubscriptions — Stripe Post Customers Customer Subscriptions
/v1/v1/customers/{customer}/subscriptions
DELETE
Deletecustomerscustomersubscriptionssubscriptionexposedid — Stripe Delete Customers Customer Subscriptions Subscription Exposed Id
/v1/v1/customers/{customer}/subscriptions/{subscription-exposed-id}
GET
Getcustomerscustomersubscriptionssubscriptionexposedid — Stripe Get Customers Customer Subscriptions Subscription Exposed Id
/v1/v1/customers/{customer}/subscriptions/{subscription-exposed-id}
POST
Postcustomerscustomersubscriptionssubscriptionexposedid — Stripe Post Customers Customer Subscriptions Subscription Exposed Id
/v1/v1/customers/{customer}/subscriptions/{subscription-exposed-id}
DELETE
Deletecustomerscustomersubscriptionssubscriptionexposediddiscount — Stripe Delete Customers Customer Subscriptions Subscription Exposed Id Discount
/v1/v1/customers/{customer}/subscriptions/{subscription-exposed-id}/discount
GET
Getcustomerscustomersubscriptionssubscriptionexposediddiscount — Stripe Get Customers Customer Subscriptions Subscription Exposed Id Discount
/v1/v1/customers/{customer}/subscriptions/{subscription-exposed-id}/discount

MCP Tools

stripe-get-customers-customer-subscriptions

Stripe Get Customers Customer Subscriptions

read-only idempotent
stripe-post-customers-customer-subscriptions

Stripe Post Customers Customer Subscriptions

stripe-delete-customers-customer-subscriptions

Stripe Delete Customers Customer Subscriptions Subscription Exposed Id

idempotent
stripe-get-customers-customer-subscriptions-2

Stripe Get Customers Customer Subscriptions Subscription Exposed Id

read-only idempotent
stripe-post-customers-customer-subscriptions-2

Stripe Post Customers Customer Subscriptions Subscription Exposed Id

stripe-delete-customers-customer-subscriptions-2

Stripe Delete Customers Customer Subscriptions Subscription Exposed Id Discount

idempotent
stripe-get-customers-customer-subscriptions-3

Stripe Get Customers Customer Subscriptions Subscription Exposed Id Discount

read-only idempotent

Capability Spec

customers-subscriptions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Stripe Customers API — Subscriptions
  description: 'Stripe Customers API — Subscriptions. 7 operations. Lead operation: Stripe Get   Customers Customer Subscriptions.
    Self-contained Naftiko capability covering one Stripe business surface.'
  tags:
  - Stripe
  - Subscriptions
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    STRIPE_API_KEY: STRIPE_API_KEY
capability:
  consumes:
  - type: http
    namespace: customers-subscriptions
    baseUri: https://api.stripe.com
    description: Stripe Customers API — Subscriptions business capability. Self-contained, no shared references.
    resources:
    - name: v1-customers-customer-subscriptions
      path: /v1/customers/{customer}/subscriptions
      operations:
      - name: getcustomerscustomersubscriptions
        method: GET
        description: Stripe Get   Customers Customer Subscriptions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: customer
          in: path
          type: string
          required: true
        - 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: 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: postcustomerscustomersubscriptions
        method: POST
        description: Stripe Post   Customers Customer Subscriptions
        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: v1-customers-customer-subscriptions-subscription_exposed_id
      path: /v1/customers/{customer}/subscriptions/{subscription_exposed_id}
      operations:
      - name: deletecustomerscustomersubscriptionssubscriptionexposedid
        method: DELETE
        description: Stripe Delete   Customers Customer Subscriptions Subscription Exposed Id
        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: getcustomerscustomersubscriptionssubscriptionexposedid
        method: GET
        description: Stripe Get   Customers Customer Subscriptions Subscription Exposed Id
        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
      - name: postcustomerscustomersubscriptionssubscriptionexposedid
        method: POST
        description: Stripe Post   Customers Customer Subscriptions Subscription Exposed Id
        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: 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-subscriptions-rest
    port: 8080
    description: REST adapter for Stripe Customers API — Subscriptions. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/v1/customers/{customer}/subscriptions
      name: v1-customers-customer-subscriptions
      description: REST surface for v1-customers-customer-subscriptions.
      operations:
      - method: GET
        name: getcustomerscustomersubscriptions
        description: Stripe Get   Customers Customer Subscriptions
        call: customers-subscriptions.getcustomerscustomersubscriptions
        with:
          customer: rest.customer
          ending_before: rest.ending_before
          expand: rest.expand
          limit: rest.limit
          starting_after: rest.starting_after
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: postcustomerscustomersubscriptions
        description: Stripe Post   Customers Customer Subscriptions
        call: customers-subscriptions.postcustomerscustomersubscriptions
        with:
          customer: rest.customer
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/customers/{customer}/subscriptions/{subscription-exposed-id}
      name: v1-customers-customer-subscriptions-subscription-exposed-id
      description: REST surface for v1-customers-customer-subscriptions-subscription_exposed_id.
      operations:
      - method: DELETE
        name: deletecustomerscustomersubscriptionssubscriptionexposedid
        description: Stripe Delete   Customers Customer Subscriptions Subscription Exposed Id
        call: customers-subscriptions.deletecustomerscustomersubscriptionssubscriptionexposedid
        with:
          customer: rest.customer
          subscription_exposed_id: rest.subscription_exposed_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getcustomerscustomersubscriptionssubscriptionexposedid
        description: Stripe Get   Customers Customer Subscriptions Subscription Exposed Id
        call: customers-subscriptions.getcustomerscustomersubscriptionssubscriptionexposedid
        with:
          customer: rest.customer
          expand: rest.expand
          subscription_exposed_id: rest.subscription_exposed_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: postcustomerscustomersubscriptionssubscriptionexposedid
        description: Stripe Post   Customers Customer Subscriptions Subscription Exposed Id
        call: customers-subscriptions.postcustomerscustomersubscriptionssubscriptionexposedid
        with:
          customer: rest.customer
          subscription_exposed_id: rest.subscription_exposed_id
          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-subscriptions.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-subscriptions.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-subscriptions-mcp
    port: 9090
    transport: http
    description: MCP adapter for Stripe Customers API — Subscriptions. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: stripe-get-customers-customer-subscriptions
      description: Stripe Get   Customers Customer Subscriptions
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: customers-subscriptions.getcustomerscustomersubscriptions
      with:
        customer: tools.customer
        ending_before: tools.ending_before
        expand: tools.expand
        limit: tools.limit
        starting_after: tools.starting_after
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: stripe-post-customers-customer-subscriptions
      description: Stripe Post   Customers Customer Subscriptions
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: customers-subscriptions.postcustomerscustomersubscriptions
      with:
        customer: tools.customer
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: stripe-delete-customers-customer-subscriptions
      description: Stripe Delete   Customers Customer Subscriptions Subscription Exposed Id
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: customers-subscriptions.deletecustomerscustomersubscriptionssubscriptionexposedid
      with:
        customer: tools.customer
        subscription_exposed_id: tools.subscription_exposed_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: stripe-get-customers-customer-subscriptions-2
      description: Stripe Get   Customers Customer Subscriptions Subscription Exposed Id
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: customers-subscriptions.getcustomerscustomersubscriptionssubscriptionexposedid
      with:
        customer: tools.customer
        expand: tools.expand
        subscription_exposed_id: tools.subscription_exposed_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: stripe-post-customers-customer-subscriptions-2
      description: Stripe Post   Customers Customer Subscriptions Subscription Exposed Id
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: customers-subscriptions.postcustomerscustomersubscriptionssubscriptionexposedid
      with:
        customer: tools.customer
        subscription_exposed_id: tools.subscription_exposed_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: stripe-delete-customers-customer-subscriptions-2
      description: Stripe Delete   Customers Customer Subscriptions Subscription Exposed Id Discount
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: customers-subscriptions.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-3
      description: Stripe Get   Customers Customer Subscriptions Subscription Exposed Id Discount
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: customers-subscriptions.getcustomerscustomersubscriptionssubscriptionexposediddiscount
      with:
        customer: tools.customer
        expand: tools.expand
        subscription_exposed_id: tools.subscription_exposed_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.