Stripe · Arazzo Workflow

Stripe Add and Scale Subscription Item

Version 1.0.0

Add an item to a subscription, then update its quantity.

1 workflow 1 source API 1 provider
View Spec View on GitHub CommerceFinancial-ServicesFintechPaymentsT1ArazzoWorkflows

Provider

stripe

Workflows

add-and-scale-subscription-item
Add a subscription item and then change its quantity.
Adds an item for the supplied price to the subscription, then updates that item's quantity with proration to reflect the new seat count.
2 steps inputs: newQuantity, price, quantity, subscription outputs: itemId, quantity
1
addItem
Add a new item for the price to the existing subscription.
2
scaleItem
Update the subscription item quantity with proration.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Stripe Add and Scale Subscription Item
  summary: Add an item to a subscription, then update its quantity.
  description: >-
    The seat-management pattern for usage or quantity based plans. The workflow
    adds a new subscription item for a price to an existing subscription, then
    updates that item's quantity to scale it up or down with prorated billing.
    Every step spells out its form-encoded request inline so the flow can be read
    and executed without opening the underlying OpenAPI description.
  version: 1.0.0
  x-realizes-capability-ids:
  - BC-4240.40
  x-capability-derivation:
    method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
    min_confidence: 0.7
    sources:
    - capability_id: BC-4240.40
      capability_name: Subscription Modification
      spec: stripe-subscription-items-api-openapi.yml
      confidence: 0.7
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: subscriptionItemsApi
  url: ../openapi/stripe-subscription-items-api-openapi.yml
  type: openapi
workflows:
- workflowId: add-and-scale-subscription-item
  summary: Add a subscription item and then change its quantity.
  description: >-
    Adds an item for the supplied price to the subscription, then updates that
    item's quantity with proration to reflect the new seat count.
  inputs:
    type: object
    required:
    - subscription
    - price
    - quantity
    properties:
      subscription:
        type: string
        description: ID of the subscription to add the item to.
      price:
        type: string
        description: ID of the price to add as a subscription item.
      quantity:
        type: integer
        description: Initial quantity for the new subscription item.
      newQuantity:
        type: integer
        description: Updated quantity to scale the subscription item to.
  steps:
  - stepId: addItem
    description: Add a new item for the price to the existing subscription.
    operationId: PostSubscriptionItems
    requestBody:
      contentType: application/x-www-form-urlencoded
      payload:
        subscription: $inputs.subscription
        price: $inputs.price
        quantity: $inputs.quantity
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      itemId: $response.body#/id
  - stepId: scaleItem
    description: Update the subscription item quantity with proration.
    operationId: PostSubscriptionItemsItem
    parameters:
    - name: item
      in: path
      value: $steps.addItem.outputs.itemId
    requestBody:
      contentType: application/x-www-form-urlencoded
      payload:
        quantity: $inputs.newQuantity
        proration_behavior: create_prorations
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      quantity: $response.body#/quantity
  outputs:
    itemId: $steps.addItem.outputs.itemId
    quantity: $steps.scaleItem.outputs.quantity

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/stripe-add-and-scale-subscription-item-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.