Stripe · Capability

Stripe Customers API — Cards

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

Run with Naftiko StripeCards

What You Can Do

GET
Getcustomerscustomercards — Stripe Get Customers Customer Cards
/v1/v1/customers/{customer}/cards
POST
Postcustomerscustomercards — Stripe Post Customers Customer Cards
/v1/v1/customers/{customer}/cards
DELETE
Deletecustomerscustomercardsid — Stripe Delete Customers Customer Cards Id
/v1/v1/customers/{customer}/cards/{id}
GET
Getcustomerscustomercardsid — Stripe Get Customers Customer Cards Id
/v1/v1/customers/{customer}/cards/{id}
POST
Postcustomerscustomercardsid — Stripe Post Customers Customer Cards Id
/v1/v1/customers/{customer}/cards/{id}

MCP Tools

stripe-get-customers-customer-cards

Stripe Get Customers Customer Cards

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

Stripe Post Customers Customer Cards

stripe-delete-customers-customer-cards

Stripe Delete Customers Customer Cards Id

idempotent
stripe-get-customers-customer-cards-2

Stripe Get Customers Customer Cards Id

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

Stripe Post Customers Customer Cards Id

Capability Spec

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