Skip to content
Proud to collaborate with Microsoft for Startups

subscription.billing.item.change ​

Change supported Stripe-managed billing item quantities.

Change a supported customer billing item through the billing surface.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-subscription
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes—Organization UUID.
subscription_uuiduuidNo—Optional platform subscription UUID.
item_codestringYes—Billing item code.
quantityintegerYes—Absolute target quantity.
success_urlstringNo—Stripe Checkout success return URL; required for paid increases.
cancel_urlstringNo—Stripe Checkout cancel return URL; required for paid increases.
proration_behaviorstringNo—Stripe proration behavior.
selected_membership_uuidslistNo—Membership UUIDs confirmed for user-seat downgrade unseating.
use_oldest_fallbackbooleanNo—Allow oldest non-owner members to fill missing downgrade selections.
user_uuiduuidNo—User requesting the change.
return_channeljsonNo—Optional notification routing metadata.
agent_session_refstringNo—Optional initiating agent session reference.

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidNo——
subscription_uuiduuidNo——
item_codestringNo——
quantityintegerNo——
proration_behaviorstringNo——
checkout_workflow_refstringNo——
checkoutjsonNo——
checkout_urlstringNo——
stripe_checkout_session_refstringNo——
seat_change_workflow_refstringNo——
seat_changejsonNo——
seat_downgrade_workflow_refstringNo——
seat_downgradejsonNo——
return_channeljsonNo——
agent_session_refstringNo——
next_actionjsonNo——
statusstringNo——
completed_atstringNo——
failed_atstringNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—change_item—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingchange_itemcompleted—
* (any state)failfailed—

Business Errors ​

CodeMessage Template
BILLING_ORGANIZATION_NOT_FOUNDOrganization {organization_uuid} not found
BILLING_PLATFORM_SUBSCRIPTION_NOT_FOUNDNo active platform subscription found for organization
BILLING_MANAGER_UNAVAILABLEWorkflow manager is unavailable, so billing item changes cannot be started
BILLING_ITEM_NOT_MANAGEABLEBilling item {item_code} is not manageable through Stripe yet:
BILLING_ITEM_INPUT_ERROR
BILLING_CHILD_WORKFLOW_FAILED{workflow_type} failed:
BILLING_AUTHORIZATION_REQUIRED

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "subscription.billing.item.change",
  "initial_data": {
    "organization_uuid": "value",
    "item_code": "value",
    "quantity": 123
  }
}