Billing
billing
Trial Confirm Card
T2-6 (BILLING_RULES.md §13): finalize card-add for a trial creator.
Frontend calls this after Stripe Elements confirms a SetupIntent. We:
- Verify the user is in trial_card_pending state
- Verify a payment method is actually attached to their Stripe customer
- Set users.card_added_at = NOW(), trial_status = 'active'
- Mark the advisory invoice (if any) as status='waived'
- Return the new state to the caller
Real billing begins on the NEXT 26th-of-M+1 cycle. The past advisory cycle is waived (free) per §13 rule "Card added within 5 days".
Idempotent: subsequent calls when state is already 'active' are no-ops that return success with already_active=True.
post/api/billing/trial/confirm-card
Request
- Base URLhttps://api.primetime.media (the document declares no server; this is the origin it was published from)
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Response
Successful Response
unknown required
Changes
No recorded changes to this operation across all 5 revisions of this API.