Stripe · Capability

Stripe Customer Portal API — Customer Portal

Stripe Customer Portal API — Customer Portal. 5 operations. Lead operation: Stripe List Portal Configurations. Self-contained Naftiko capability covering one Stripe business surface.

Run with Naftiko StripeCustomer Portal

What You Can Do

GET
Getbillingportalconfigurations — Stripe List Portal Configurations
/v1/v1/billing-portal/configurations
POST
Postbillingportalconfigurations — Stripe Create Portal Configuration
/v1/v1/billing-portal/configurations
GET
Getbillingportalconfigurationsconfiguration — Stripe Retrieve Portal Configuration
/v1/v1/billing-portal/configurations/{configuration}
POST
Postbillingportalconfigurationsconfiguration — Stripe Update Portal Configuration
/v1/v1/billing-portal/configurations/{configuration}
POST
Postbillingportalsessions — Stripe Create Portal Session
/v1/v1/billing-portal/sessions

MCP Tools

stripe-list-portal-configurations

Stripe List Portal Configurations

read-only idempotent
stripe-create-portal-configuration

Stripe Create Portal Configuration

stripe-retrieve-portal-configuration

Stripe Retrieve Portal Configuration

read-only idempotent
stripe-update-portal-configuration

Stripe Update Portal Configuration

stripe-create-portal-session

Stripe Create Portal Session

Capability Spec

customer-portal-customer-portal.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Stripe Customer Portal API — Customer Portal
  description: 'Stripe Customer Portal API — Customer Portal. 5 operations. Lead operation: Stripe List Portal Configurations.
    Self-contained Naftiko capability covering one Stripe business surface.'
  tags:
  - Stripe
  - Customer Portal
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    STRIPE_API_KEY: STRIPE_API_KEY
capability:
  consumes:
  - type: http
    namespace: customer-portal-customer-portal
    baseUri: https://api.stripe.com
    description: Stripe Customer Portal API — Customer Portal business capability. Self-contained, no shared references.
    resources:
    - name: v1-billing_portal-configurations
      path: /v1/billing_portal/configurations
      operations:
      - name: getbillingportalconfigurations
        method: GET
        description: Stripe List Portal Configurations
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: active
          in: query
          type: boolean
          description: Only return configurations that are active or inactive.
        - name: is_default
          in: query
          type: boolean
          description: Only return the default or non-default configurations.
        - name: ending_before
          in: query
          type: string
        - name: limit
          in: query
          type: integer
        - name: starting_after
          in: query
          type: string
      - name: postbillingportalconfigurations
        method: POST
        description: Stripe Create Portal Configuration
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: v1-billing_portal-configurations-configuration
      path: /v1/billing_portal/configurations/{configuration}
      operations:
      - name: getbillingportalconfigurationsconfiguration
        method: GET
        description: Stripe Retrieve Portal Configuration
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: configuration
          in: path
          type: string
          required: true
      - name: postbillingportalconfigurationsconfiguration
        method: POST
        description: Stripe Update Portal Configuration
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: configuration
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: v1-billing_portal-sessions
      path: /v1/billing_portal/sessions
      operations:
      - name: postbillingportalsessions
        method: POST
        description: Stripe Create Portal Session
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.STRIPE_API_KEY}}'
  exposes:
  - type: rest
    namespace: customer-portal-customer-portal-rest
    port: 8080
    description: REST adapter for Stripe Customer Portal API — Customer Portal. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/v1/billing-portal/configurations
      name: v1-billing-portal-configurations
      description: REST surface for v1-billing_portal-configurations.
      operations:
      - method: GET
        name: getbillingportalconfigurations
        description: Stripe List Portal Configurations
        call: customer-portal-customer-portal.getbillingportalconfigurations
        with:
          active: rest.active
          is_default: rest.is_default
          ending_before: rest.ending_before
          limit: rest.limit
          starting_after: rest.starting_after
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: postbillingportalconfigurations
        description: Stripe Create Portal Configuration
        call: customer-portal-customer-portal.postbillingportalconfigurations
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/billing-portal/configurations/{configuration}
      name: v1-billing-portal-configurations-configuration
      description: REST surface for v1-billing_portal-configurations-configuration.
      operations:
      - method: GET
        name: getbillingportalconfigurationsconfiguration
        description: Stripe Retrieve Portal Configuration
        call: customer-portal-customer-portal.getbillingportalconfigurationsconfiguration
        with:
          configuration: rest.configuration
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: postbillingportalconfigurationsconfiguration
        description: Stripe Update Portal Configuration
        call: customer-portal-customer-portal.postbillingportalconfigurationsconfiguration
        with:
          configuration: rest.configuration
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/billing-portal/sessions
      name: v1-billing-portal-sessions
      description: REST surface for v1-billing_portal-sessions.
      operations:
      - method: POST
        name: postbillingportalsessions
        description: Stripe Create Portal Session
        call: customer-portal-customer-portal.postbillingportalsessions
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: customer-portal-customer-portal-mcp
    port: 9090
    transport: http
    description: MCP adapter for Stripe Customer Portal API — Customer Portal. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: stripe-list-portal-configurations
      description: Stripe List Portal Configurations
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: customer-portal-customer-portal.getbillingportalconfigurations
      with:
        active: tools.active
        is_default: tools.is_default
        ending_before: tools.ending_before
        limit: tools.limit
        starting_after: tools.starting_after
      outputParameters:
      - type: object
        mapping: $.
    - name: stripe-create-portal-configuration
      description: Stripe Create Portal Configuration
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: customer-portal-customer-portal.postbillingportalconfigurations
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: stripe-retrieve-portal-configuration
      description: Stripe Retrieve Portal Configuration
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: customer-portal-customer-portal.getbillingportalconfigurationsconfiguration
      with:
        configuration: tools.configuration
      outputParameters:
      - type: object
        mapping: $.
    - name: stripe-update-portal-configuration
      description: Stripe Update Portal Configuration
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: customer-portal-customer-portal.postbillingportalconfigurationsconfiguration
      with:
        configuration: tools.configuration
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: stripe-create-portal-session
      description: Stripe Create Portal Session
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: customer-portal-customer-portal.postbillingportalsessions
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.