BayAIU Partner API
Sell our courses inside your product.
Show the catalog, send buyers to our hosted Stripe checkout, and earn commission on every sale — attribution is written into the order, and payment, delivery, refunds and support all stay with BayAIU.
01
Get your API key
Sign in at bayaiu.ai/affiliate → the “BayAIU Partner API” panel → Generate. Shown once — store it safely.
Open partner center →02
Hand the install doc to your AI assistant
Copy the one-shot integration doc below and paste it into Claude Code / Cursor inside YOUR product's repo. It implements the catalog, checkout and compliance for you.
03
Earn 20% → 30% on every sale
Default 20%, automatic 25% at $3,000 attributed sales, 30% for board-channel partners. Monthly settlement, $50 minimum.
One-click install
One doc. Your AI assistant does the rest.
The install doc below is written FOR AI coding assistants: API spec, security rules, the three integration tasks, error mapping, compliance copy, and a self-test checklist. Copy it into Claude Code or Cursor in your repo and say: “Install this.”
API reference
Base URL: https://bayaiu.ai/api/v1 · Auth: Authorization: Bearer bk_live_…
GET /courses
Sellable catalog with prices, dates, seats left, and your per-course commission & student discount.
POST /checkout-sessions
The core call: pass a course slug + the buyer's email, get a Stripe-hosted checkout URL with your attribution written into the order (no cookies).
GET /commissions
Your commission ledger: pending (45-day freeze) → approved → paid; refunds auto-reverse.
GET /me
Your terms: rate, tier, and progress toward the automatic 25% upgrade at $3,000 attributed sales.
Full request/response examples live in the install doc above. Webhooks, orders and monthly statements ship in v1.
Ground rules
- Prices are set by BayAIU — your integration displays what the API returns.
- Commissions freeze for 45 days (covering the refund window), then settle monthly ($50 minimum). Refunds reverse automatically.
- Disclose the partnership (FTC) and never use income-promise language — violations end the partnership.
- Student data belongs to BayAIU; the API never returns full buyer PII.
Questions? contact@bayaiu.ai