purchase_enterprise_license
Purchase a bulk enterprise license for multiple publishers with customizable scope and tier. Returns a Stripe client_secret for payment.
Instructions
Purchase a bulk enterprise license covering multiple publishers (Phase 10). Returns a Stripe client_secret for payment completion + the enterprise_license_id. After payment, an ent_* access key is emailed to buyer_email. Scopes: 'custom' (pass-through publisher_ids), 'platform_wide' (auto-resolve all opted-in publishers), 'filtered' (Phase 10 filter_rules). License tiers: 'rag' (= ai_retrieval), 'training' (= ai_training, flat-fee not metered), 'inference' (= ai_retrieval), 'full_ai' (writes both retrieval + training records).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | Coverage scope (default: custom) | |
| buyer_org | Yes | Buyer organization name (for billing + audit ledger) | |
| buyer_email | Yes | Email to deliver the access key after payment | |
| billing_type | No | Billing cadence (default: annual) | |
| filter_rules | No | Required when scope='filtered'. See Phase 10 docs for shape: excluded_publisher_ids / direct_license_carveouts / categories / max_price_per_event. | |
| license_tier | No | License tier (default: rag) | |
| publisher_ids | Yes | Array of publisher UUIDs. Required for scope='custom'; ignored for platform_wide/filtered (resolved server-side). | |
| duration_months | No | License duration in months (default: 12) | |
| buyer_webhook_url | No | Optional HMAC-signed webhook for content.published events on covered publishers |