Currently, we lack high-level actions to manage subaccounts in an automated way, similar to how it's done through the API. This limitation becomes evident in several critical scenarios: when a user doesn't pay their subscription and needs their account automatically deactivated (created with the same email that paid), or when PayPal doesn't automatically generate subaccounts like other payment methods do, requiring manual intervention.
Core Problem
The current system lacks automation for the complete subaccount lifecycle. With PayPal, for example, subaccounts aren't created automatically after successful payment, creating a gap between payment and service activation. Additionally, there's no automated mechanism to manage account states based on user payment behavior.
Proposed Solution
Develop a set of SaaS actions in workflows that operate at high level, integrating with the existing API but providing intelligent automation for subaccount management. These actions would include:
Lifecycle management: Automatically create, activate, deactivate, and suspend subaccounts
Payment method integration: Solve the PayPal issue by automatically creating subaccounts after payment confirmation
Infrastructure management: Install snapshots, configure resources, and prepare environments automatically
Payment monitoring: Detect payment failures and apply suspension/reactivation policies
Bulk actions: Manage multiple subaccounts simultaneously
Critical Use Cases
PayPal Scenario: A user successfully pays via PayPal, but their subaccount isn't created automatically. This automation would detect the confirmed payment and create the subaccount, install necessary snapshots, and activate all corresponding services.
Payment failure management: A user with email "user@example.com" fails their monthly payment. This automation would initiate a grace period, send automatic notifications, and if unresolved, deactivate the account while maintaining data for a determined period.
Automatic provisioning: After successful subaccount creation, this automation would automatically install base snapshots, configure necessary resources, and establish default settings according to the contracted plan.
Immediate Benefits
This implementation would resolve the current friction with PayPal, eliminate manual subaccount management, and provide a seamless user experience from payment to complete service activation. Additionally, it would enable more sophisticated business policies like configurable grace periods, automatic downgrades for payment issues, and intelligent reactivations.
The actions would operate as an abstraction layer over the current API, maintaining existing compatibility while adding the necessary intelligence to fully automate the SaaS subaccount lifecycle.