purchase_license
Purchase a content license via Stripe, selecting republication, training, or inference rights. Receive a license key and certificate.
Instructions
Purchase a content license from the Opedd protocol using a Stripe payment method. Returns a license key (format: OP-XXXX-XXXX) and a certificate URL. The buyer receives a Handshake Email with their license key. Set OPEDD_BUYER_EMAIL and OPEDD_PAYMENT_METHOD_ID env vars to avoid passing them on every call. License types: 'human' = republication rights, 'ai' = training dataset rights, 'ai_inference' = inference/RAG rights.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| article_id | No | Opedd article UUID (use this OR article_url) | |
| buyer_name | No | Full name of the buyer (for the license record and certificate) | |
| article_url | No | URL of the article to license (use this OR article_id) | |
| buyer_email | No | Email address for the license. Falls back to OPEDD_BUYER_EMAIL env var. | |
| intended_use | No | Intended use of the licensed content | |
| license_type | Yes | human = republication/editorial rights, ai = training dataset rights, ai_inference = inference/RAG rights | |
| payment_method_id | No | Stripe payment method ID (pm_...). Falls back to OPEDD_PAYMENT_METHOD_ID env var. | |
| buyer_organization | No | Organization or company name (for enterprise/editorial licenses) |