Sales Block

Subscriptions and payments
The Sales Block handles subscriptions and payment processing. Manage recurring billing, subscription plans, invoices, and integrate with payment providers.
Features
- Subscription management
- Recurring billing
- Payment processing
- Invoice generation
- Plan management
- Usage-based billing
- Payment provider integrations
Quick Start
npm install @23blocks/sdk
import { BlocksClient } from '@23blocks/sdk';
const client = new BlocksClient({
baseUrl: 'https://api.23blocks.com',
appId: 'your-app-id'
});
// Create subscription
const subscription = await client.sales.createSubscription({
userId: 'user-123',
planId: 'pro-monthly',
paymentMethodId: 'pm_xxx'
});
// Get invoices
const invoices = await client.sales.getInvoices('user-123');