Subscription Workflows
Planned:
SubscriptionExpiryWorkflow— handles user type downgrade and grace period enforcement when a subscription or ride pack expires.
SubscriptionExpiryWorkflow
Planned — not yet live.
Trigger: RevenueCat webhook event: EXPIRATION or CANCELLATION; or
scheduled scan for expired expiresAt timestamps
Activities:
updateSubscriptionStatus— setstatus: "expired"or"cancelled"on the subscription documentdowngradeUserType— settype: "free"on the user document once no active entitlements remainapplyGracePeriod— if rides were created within the 1-month grace window, mark them read-only
Retry policy:
maximumAttempts: 3, initialInterval: 30s, backoffCoefficient: 2
Timeout: workflowRunTimeout: 10m, activityStartToCloseTimeout: 60s