B2C AI Assistant Activation
Payment-gated AI assistant access. Partners sell AI assistants to clients with 80/20 revenue split.
Affiliate System
30% first purchase, 20% recurring commissions with 30-day cookie tracking.
Partner Hub
B2C partners can create products, manage subscriptions, and track revenue.
Donation Campaigns
Create embeddable donation widgets with QR codes for charity campaigns.
B2C AI Assistant Activation Flow
Revenue Split: Partners receive 80% of each payment. Vigthoria takes a 20% platform fee.
1
Partner creates AI Assistant in B2C Hub. Assistant is stored as inactive.
2
Partner shares checkout link with client via
POST /api/b2c-assistant/checkout
3
Client completes payment on Stripe. Webhook activates the assistant automatically.
4
B2C Hub checks activation before each conversation via
GET /api/b2c-assistant/check/:id
API Reference
B2C Assistant Activation
| Endpoint | Method | Description |
|---|---|---|
/api/b2c-assistant/checkout |
POST | Create checkout session for client payment |
/api/b2c-assistant/check/:assistantId |
GET | Check if assistant is active for client |
/api/b2c-assistant/activation/:id |
GET | Get activation details |
Payment & Products
| Endpoint | Method | Description |
|---|---|---|
/api/products |
GET POST | Manage products |
/api/payment-links |
GET POST | Generate payment links |
/api/donations |
GET POST | Donation campaigns |
/api/webhooks |
POST | Stripe webhook handler |
Affiliate System
| Endpoint | Method | Description |
|---|---|---|
/api/affiliate/track |
POST | Track affiliate click |
/api/affiliate/stats |
GET | Get affiliate statistics |
/api/affiliate/conversions |
GET | Get conversion history |
/api/affiliate/payout/request |
POST | Request payout |
Integration Examples
Check Assistant Activation (Python)
from services.vigthoria_pay_client import VigthoriaPay
pay = VigthoriaPay()
# Check if assistant is active
is_active = pay.is_assistant_active(
assistant_id="asst_123",
client_email="client@example.com"
)
if not is_active:
# Create checkout for client
checkout = pay.create_b2c_checkout(
partner_id="partner_456",
assistant_id="asst_123",
plan="monthly",
client_email="client@example.com"
)
return redirect(checkout['checkoutUrl'])
Create Checkout (JavaScript)
const response = await fetch('https://pay.vigthoria.io/api/b2c-assistant/checkout', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
assistantId: 'asst_123',
partnerId: 'partner_456',
clientEmail: 'client@example.com',
priceAmount: 2900, // €29.00 in cents
currency: 'EUR',
planType: 'monthly',
successUrl: 'https://your-site.com/success',
cancelUrl: 'https://your-site.com/cancel'
})
});
const { checkoutUrl } = await response.json();
window.location.href = checkoutUrl;