Stripe · Capability

Stripe Billing Meters API — Billing Meters

Stripe Billing Meters API — Billing Meters. 8 operations. Lead operation: Stripe Create Meter Event. Self-contained Naftiko capability covering one Stripe business surface.

Run with Naftiko StripeBilling Meters

What You Can Do

POST
Postbillingmeterevents — Stripe Create Meter Event
/v1/v1/billing/meter-events
GET
Getbillingmeters — Stripe List Billing Meters
/v1/v1/billing/meters
POST
Postbillingmeters — Stripe Create Billing Meter
/v1/v1/billing/meters
GET
Getbillingmetersid — Stripe Retrieve Billing Meter
/v1/v1/billing/meters/{id}
POST
Postbillingmetersid — Stripe Update Billing Meter
/v1/v1/billing/meters/{id}
POST
Postbillingmetersiddeactivate — Stripe Deactivate Billing Meter
/v1/v1/billing/meters/{id}/deactivate
GET
Getbillingmetersideventsummaries — Stripe List Meter Event Summaries
/v1/v1/billing/meters/{id}/event-summaries
POST
Postbillingmetersidreactivate — Stripe Reactivate Billing Meter
/v1/v1/billing/meters/{id}/reactivate

MCP Tools

stripe-create-meter-event

Stripe Create Meter Event

stripe-list-billing-meters

Stripe List Billing Meters

read-only idempotent
stripe-create-billing-meter

Stripe Create Billing Meter

stripe-retrieve-billing-meter

Stripe Retrieve Billing Meter

read-only idempotent
stripe-update-billing-meter

Stripe Update Billing Meter

stripe-deactivate-billing-meter

Stripe Deactivate Billing Meter

stripe-list-meter-event-summaries

Stripe List Meter Event Summaries

read-only idempotent
stripe-reactivate-billing-meter

Stripe Reactivate Billing Meter

Capability Spec

billing-meters-billing-meters.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Stripe Billing Meters API — Billing Meters
  description: 'Stripe Billing Meters API — Billing Meters. 8 operations. Lead operation: Stripe Create Meter Event. Self-contained
    Naftiko capability covering one Stripe business surface.'
  tags:
  - Stripe
  - Billing Meters
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    STRIPE_API_KEY: STRIPE_API_KEY
capability:
  consumes:
  - type: http
    namespace: billing-meters-billing-meters
    baseUri: https://api.stripe.com
    description: Stripe Billing Meters API — Billing Meters business capability. Self-contained, no shared references.
    resources:
    - name: v1-billing-meter_events
      path: /v1/billing/meter_events
      operations:
      - name: postbillingmeterevents
        method: POST
        description: Stripe Create Meter Event
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: v1-billing-meters
      path: /v1/billing/meters
      operations:
      - name: getbillingmeters
        method: GET
        description: Stripe List Billing Meters
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: status
          in: query
          type: string
          description: Filter meters by status.
        - name: ending_before
          in: query
          type: string
        - name: limit
          in: query
          type: integer
        - name: starting_after
          in: query
          type: string
      - name: postbillingmeters
        method: POST
        description: Stripe Create Billing Meter
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: v1-billing-meters-id
      path: /v1/billing/meters/{id}
      operations:
      - name: getbillingmetersid
        method: GET
        description: Stripe Retrieve Billing Meter
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
      - name: postbillingmetersid
        method: POST
        description: Stripe Update Billing Meter
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: v1-billing-meters-id-deactivate
      path: /v1/billing/meters/{id}/deactivate
      operations:
      - name: postbillingmetersiddeactivate
        method: POST
        description: Stripe Deactivate Billing Meter
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
    - name: v1-billing-meters-id-event_summaries
      path: /v1/billing/meters/{id}/event_summaries
      operations:
      - name: getbillingmetersideventsummaries
        method: GET
        description: Stripe List Meter Event Summaries
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: customer
          in: query
          type: string
          required: true
        - name: start_time
          in: query
          type: integer
          required: true
        - name: end_time
          in: query
          type: integer
          required: true
        - name: value_grouping_window
          in: query
          type: string
        - name: ending_before
          in: query
          type: string
        - name: limit
          in: query
          type: integer
        - name: starting_after
          in: query
          type: string
    - name: v1-billing-meters-id-reactivate
      path: /v1/billing/meters/{id}/reactivate
      operations:
      - name: postbillingmetersidreactivate
        method: POST
        description: Stripe Reactivate Billing Meter
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
    authentication:
      type: bearer
      token: '{{env.STRIPE_API_KEY}}'
  exposes:
  - type: rest
    namespace: billing-meters-billing-meters-rest
    port: 8080
    description: REST adapter for Stripe Billing Meters API — Billing Meters. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/v1/billing/meter-events
      name: v1-billing-meter-events
      description: REST surface for v1-billing-meter_events.
      operations:
      - method: POST
        name: postbillingmeterevents
        description: Stripe Create Meter Event
        call: billing-meters-billing-meters.postbillingmeterevents
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/billing/meters
      name: v1-billing-meters
      description: REST surface for v1-billing-meters.
      operations:
      - method: GET
        name: getbillingmeters
        description: Stripe List Billing Meters
        call: billing-meters-billing-meters.getbillingmeters
        with:
          status: rest.status
          ending_before: rest.ending_before
          limit: rest.limit
          starting_after: rest.starting_after
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: postbillingmeters
        description: Stripe Create Billing Meter
        call: billing-meters-billing-meters.postbillingmeters
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/billing/meters/{id}
      name: v1-billing-meters-id
      description: REST surface for v1-billing-meters-id.
      operations:
      - method: GET
        name: getbillingmetersid
        description: Stripe Retrieve Billing Meter
        call: billing-meters-billing-meters.getbillingmetersid
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: postbillingmetersid
        description: Stripe Update Billing Meter
        call: billing-meters-billing-meters.postbillingmetersid
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/billing/meters/{id}/deactivate
      name: v1-billing-meters-id-deactivate
      description: REST surface for v1-billing-meters-id-deactivate.
      operations:
      - method: POST
        name: postbillingmetersiddeactivate
        description: Stripe Deactivate Billing Meter
        call: billing-meters-billing-meters.postbillingmetersiddeactivate
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/billing/meters/{id}/event-summaries
      name: v1-billing-meters-id-event-summaries
      description: REST surface for v1-billing-meters-id-event_summaries.
      operations:
      - method: GET
        name: getbillingmetersideventsummaries
        description: Stripe List Meter Event Summaries
        call: billing-meters-billing-meters.getbillingmetersideventsummaries
        with:
          id: rest.id
          customer: rest.customer
          start_time: rest.start_time
          end_time: rest.end_time
          value_grouping_window: rest.value_grouping_window
          ending_before: rest.ending_before
          limit: rest.limit
          starting_after: rest.starting_after
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/billing/meters/{id}/reactivate
      name: v1-billing-meters-id-reactivate
      description: REST surface for v1-billing-meters-id-reactivate.
      operations:
      - method: POST
        name: postbillingmetersidreactivate
        description: Stripe Reactivate Billing Meter
        call: billing-meters-billing-meters.postbillingmetersidreactivate
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: billing-meters-billing-meters-mcp
    port: 9090
    transport: http
    description: MCP adapter for Stripe Billing Meters API — Billing Meters. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: stripe-create-meter-event
      description: Stripe Create Meter Event
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: billing-meters-billing-meters.postbillingmeterevents
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: stripe-list-billing-meters
      description: Stripe List Billing Meters
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: billing-meters-billing-meters.getbillingmeters
      with:
        status: tools.status
        ending_before: tools.ending_before
        limit: tools.limit
        starting_after: tools.starting_after
      outputParameters:
      - type: object
        mapping: $.
    - name: stripe-create-billing-meter
      description: Stripe Create Billing Meter
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: billing-meters-billing-meters.postbillingmeters
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: stripe-retrieve-billing-meter
      description: Stripe Retrieve Billing Meter
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: billing-meters-billing-meters.getbillingmetersid
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: stripe-update-billing-meter
      description: Stripe Update Billing Meter
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: billing-meters-billing-meters.postbillingmetersid
      with:
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: stripe-deactivate-billing-meter
      description: Stripe Deactivate Billing Meter
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: billing-meters-billing-meters.postbillingmetersiddeactivate
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: stripe-list-meter-event-summaries
      description: Stripe List Meter Event Summaries
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: billing-meters-billing-meters.getbillingmetersideventsummaries
      with:
        id: tools.id
        customer: tools.customer
        start_time: tools.start_time
        end_time: tools.end_time
        value_grouping_window: tools.value_grouping_window
        ending_before: tools.ending_before
        limit: tools.limit
        starting_after: tools.starting_after
      outputParameters:
      - type: object
        mapping: $.
    - name: stripe-reactivate-billing-meter
      description: Stripe Reactivate Billing Meter
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: billing-meters-billing-meters.postbillingmetersidreactivate
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.