Skip to content
Proud to collaborate with Microsoft for Startups

subscription.billing.lumen-plan.apply-downgrade ​

Apply a scheduled Lumen billing downgrade after the downgrade cut window.

Apply a previously scheduled Lumen downgrade after the 7-day cut window.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-subscription
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes——
planstringYes——
retention_daysintegerNo——
proration_behaviorstringNo——
billing_cycle_anchorstringNo——
downgrade_effective_atstringNo——
downgrade_cut_daysintegerNo——
apply_scheduled_downgradebooleanNo——
scheduled_by_workflow_refstringNo——
workflow_schedule_uuiduuidNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidNo——
subscription_uuiduuidNo——
planstringNo——
retention_daysintegerNo——
effective_retention_daysintegerNo——
rate_limit_per_minuteintegerNo——
stripe_price_refstringNo——
stripe_subscription_item_refstringNo——
stripe_actionstringNo——
proration_behaviorstringNo——
billing_cycle_anchorstringNo——
downgrade_cut_daysintegerNo——
downgrade_effective_atstringNo——
scheduled_workflow_refstringNo——
workflow_schedule_uuiduuidNo——
scheduled_downgradejsonNo——
billing_item_uuiduuidNo——
lumen_provisioningjsonNo——
lumen_provisioning_reconcile_schedule_uuiduuidNo——
payment_confirmedbooleanNo——
stripe_checkout_session_refstringNo——
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—apply_change—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingapply_changecompleted—
* (any state)failfailed—

API Usage ​

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

{
  "workflow_type": "subscription.billing.lumen-plan.apply-downgrade",
  "initial_data": {
    "organization_uuid": "value",
    "plan": "value"
  }
}