💳 Billing & Invoices
Full billing management powered by Stripe. View purchases, download invoices, redeem promo codes, and request refunds.
Billing Dashboard
Access your billing summary at Dashboard → Billing or via API:
GET /api/billing/summary
Authorization: Bearer YOUR_TOKEN
Shows total spent, total quarters purchased, total used, and current balance.
Purchase History
View all past purchases with dates, amounts, and payment methods:
GET /api/billing/purchases
Authorization: Bearer YOUR_TOKEN
Invoices
Download a detailed invoice for any purchase:
GET /api/billing/invoice/:purchaseId
Authorization: Bearer YOUR_TOKEN
Promo Codes
Redeem promo codes to receive bonus quarters:
POST /api/billing/promo
Authorization: Bearer YOUR_TOKEN
Content-Type: application/json
{ "code": "WELCOME2026" }
Promo codes can provide flat quarter bonuses or percentage discounts. Each code can only be redeemed once per account.
Refunds
Request a refund for unused quarters within 30 days of purchase:
POST /api/billing/refund
Authorization: Bearer YOUR_TOKEN
Content-Type: application/json
{ "purchaseId": "abc123", "reason": "No longer needed" }
Refunds are reviewed and processed within 3–5 business days.
Credit History
View a complete transaction log of all credit additions and deductions:
GET /api/v1/credits/history
Authorization: Bearer YOUR_TOKEN