Stripe · Capability

Stripe Customers API — Sources

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

Run with Naftiko StripeSources

What You Can Do

GET
Getcustomerscustomersources — Stripe Get Customers Customer Sources
/v1/v1/customers/{customer}/sources
POST
Postcustomerscustomersources — Stripe Post Customers Customer Sources
/v1/v1/customers/{customer}/sources
DELETE
Deletecustomerscustomersourcesid — Stripe Delete Customers Customer Sources Id
/v1/v1/customers/{customer}/sources/{id}
GET
Getcustomerscustomersourcesid — Stripe Get Customers Customer Sources Id
/v1/v1/customers/{customer}/sources/{id}
POST
Postcustomerscustomersourcesid — Stripe Post Customers Customer Sources Id
/v1/v1/customers/{customer}/sources/{id}
POST
Postcustomerscustomersourcesidverify — Stripe Post Customers Customer Sources Id Verify
/v1/v1/customers/{customer}/sources/{id}/verify

MCP Tools

stripe-get-customers-customer-sources

Stripe Get Customers Customer Sources

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

Stripe Post Customers Customer Sources

stripe-delete-customers-customer-sources

Stripe Delete Customers Customer Sources Id

idempotent
stripe-get-customers-customer-sources-2

Stripe Get Customers Customer Sources Id

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

Stripe Post Customers Customer Sources Id

stripe-post-customers-customer-sources-3

Stripe Post Customers Customer Sources Id Verify

Capability Spec

customers-sources.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Stripe Customers API — Sources
  description: 'Stripe Customers API — Sources. 6 operations. Lead operation: Stripe Get   Customers Customer Sources. Self-contained
    Naftiko capability covering one Stripe business surface.'
  tags:
  - Stripe
  - Sources
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    STRIPE_API_KEY: STRIPE_API_KEY
capability:
  consumes:
  - type: http
    namespace: customers-sources
    baseUri: https://api.stripe.com
    description: Stripe Customers API — Sources business capability. Self-contained, no shared references.
    resources:
    - name: v1-customers-customer-sources
      path: /v1/customers/{customer}/sources
      operations:
      - name: getcustomerscustomersources
        method: GET
        description: Stripe Get   Customers Customer Sources
        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: object
          in: query
          type: string
          description: Filter sources according to a particular object type.
        - 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: postcustomerscustomersources
        method: POST
        description: Stripe Post   Customers Customer Sources
        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-sources-id
      path: /v1/customers/{customer}/sources/{id}
      operations:
      - name: deletecustomerscustomersourcesid
        method: DELETE
        description: Stripe Delete   Customers Customer Sources 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: getcustomerscustomersourcesid
        method: GET
        description: Stripe Get   Customers Customer Sources 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: postcustomerscustomersourcesid
        method: POST
        description: Stripe Post   Customers Customer Sources 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: v1-customers-customer-sources-id-verify
      path: /v1/customers/{customer}/sources/{id}/verify
      operations:
      - name: postcustomerscustomersourcesidverify
        method: POST
        description: Stripe Post   Customers Customer Sources Id Verify
        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-sources-rest
    port: 8080
    description: REST adapter for Stripe Customers API — Sources. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/v1/customers/{customer}/sources
      name: v1-customers-customer-sources
      description: REST surface for v1-customers-customer-sources.
      operations:
      - method: GET
        name: getcustomerscustomersources
        description: Stripe Get   Customers Customer Sources
        call: customers-sources.getcustomerscustomersources
        with:
          customer: rest.customer
          ending_before: rest.ending_before
          expand: rest.expand
          limit: rest.limit
          object: rest.object
          starting_after: rest.starting_after
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: postcustomerscustomersources
        description: Stripe Post   Customers Customer Sources
        call: customers-sources.postcustomerscustomersources
        with:
          customer: rest.customer
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/customers/{customer}/sources/{id}
      name: v1-customers-customer-sources-id
      description: REST surface for v1-customers-customer-sources-id.
      operations:
      - method: DELETE
        name: deletecustomerscustomersourcesid
        description: Stripe Delete   Customers Customer Sources Id
        call: customers-sources.deletecustomerscustomersourcesid
        with:
          customer: rest.customer
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getcustomerscustomersourcesid
        description: Stripe Get   Customers Customer Sources Id
        call: customers-sources.getcustomerscustomersourcesid
        with:
          customer: rest.customer
          expand: rest.expand
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: postcustomerscustomersourcesid
        description: Stripe Post   Customers Customer Sources Id
        call: customers-sources.postcustomerscustomersourcesid
        with:
          customer: rest.customer
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/customers/{customer}/sources/{id}/verify
      name: v1-customers-customer-sources-id-verify
      description: REST surface for v1-customers-customer-sources-id-verify.
      operations:
      - method: POST
        name: postcustomerscustomersourcesidverify
        description: Stripe Post   Customers Customer Sources Id Verify
        call: customers-sources.postcustomerscustomersourcesidverify
        with:
          customer: rest.customer
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: customers-sources-mcp
    port: 9090
    transport: http
    description: MCP adapter for Stripe Customers API — Sources. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: stripe-get-customers-customer-sources
      description: Stripe Get   Customers Customer Sources
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: customers-sources.getcustomerscustomersources
      with:
        customer: tools.customer
        ending_before: tools.ending_before
        expand: tools.expand
        limit: tools.limit
        object: tools.object
        starting_after: tools.starting_after
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: stripe-post-customers-customer-sources
      description: Stripe Post   Customers Customer Sources
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: customers-sources.postcustomerscustomersources
      with:
        customer: tools.customer
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: stripe-delete-customers-customer-sources
      description: Stripe Delete   Customers Customer Sources Id
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: customers-sources.deletecustomerscustomersourcesid
      with:
        customer: tools.customer
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: stripe-get-customers-customer-sources-2
      description: Stripe Get   Customers Customer Sources Id
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: customers-sources.getcustomerscustomersourcesid
      with:
        customer: tools.customer
        expand: tools.expand
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: stripe-post-customers-customer-sources-2
      description: Stripe Post   Customers Customer Sources Id
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: customers-sources.postcustomerscustomersourcesid
      with:
        customer: tools.customer
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: stripe-post-customers-customer-sources-3
      description: Stripe Post   Customers Customer Sources Id Verify
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: customers-sources.postcustomerscustomersourcesidverify
      with:
        customer: tools.customer
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.