Manage XActions subscriptions and billing — view plans, start a Stripe checkout, open the billing portal, or cancel a subscription. Use when users want to upgrade, downgrade, or manage their XActions subscription.
Stripe-powered subscription and billing management for XActions.
| Goal | Route | Method |
|---|---|---|
| List available plans | GET /api/billing/plans | REST API |
| Start Stripe checkout | POST /api/billing/checkout | REST API |
| Open billing portal | GET /api/billing/portal | REST API |
| Get current subscription | GET /api/billing/subscription | REST API |
| Cancel subscription | POST /api/billing/cancel | REST API |
GET /api/billing/plans
Returns all available subscription tiers with pricing and feature limits.
POST /api/billing/checkout
Authorization: Bearer <token>
Content-Type: application/json
{
"plan": "pro",
"successUrl": "https://yourapp.com/success",
"cancelUrl": "https://yourapp.com/cancel"
}
Returns a Stripe checkout URL to redirect the user to.
GET /api/billing/portal
Authorization: Bearer <token>
Returns a Stripe Customer Portal URL where users can update payment methods, view invoices, and manage their subscription.
| Tier | Key Features |
|---|---|
free | Limited operations, community features |
basic | More operations, standard automations |
pro | Unlimited operations, all features, API access |
enterprise | Custom limits, dedicated support, team features |