billing-management · v1.0 · 2026-03-30 · sha256 9ed99a0022cf201f

billing-management v1.0A

Immutable. This exact content never changes and is served at /api/v1/blob/9ed99a0022cf201f.

No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_f4hndgwc42bpmhlt/9ed99a0022cf201f130096bbb78684334984936c0308e51f4043dc9fa6b6f5a5.json

Then /plugin install billing-management@markdownregistry-f4hndgwc42bpmhlt in Claude Code. It installs this exact version, the one graded A here, pinned to the commit it was graded at, and leaves it there.

---
name: billing-management
description: 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.
license: MIT
metadata:
  author: nichxbt
  version: "1.0"
---

# Billing Management

Stripe-powered subscription and billing management for XActions.

## Entry Points

| 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 |

## API Usage

### List plans

```bash
GET /api/billing/plans
```

Returns all available subscription tiers with pricing and feature limits.

### Start checkout

```bash
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.

### Open billing portal

```bash
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.

## Subscription Tiers

| 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 |

## Notes

- Billing is handled entirely by Stripe — XActions does not store payment details
- Subscription status is synced via Stripe webhooks
- Downgrade takes effect at the end of the current billing period
- Credits (for pay-per-use operations) are separate from subscriptions

## Related Skills

- **teams-management** — Manage team members on your plan
- **x402-payments** — Alternative crypto-based payment via x402 protocol
- **xactions-cli** — Check plan status via CLI