Tasks
Tasks
Trial Window Check
T2-4 (BILLING_RULES.md §13.1): flip non-responders to trial_lapsed.
Runs daily. For users in trial_card_pending where the invoice was issued
10 days ago (Net 10 due date) and payment_verified is still not true, transitions: trial_card_pending → trial_lapsed sets trial_lapsed_at = NOW(). After this transition the decision-layer should_optimize gate (T2-2) blocks new optimizations on those creators on the next tick. Lapse is payment-based (the creator pays the send_invoice to stay), matching the invoice.paid graduation.
Idempotent: the WHERE clause only matches rows still in trial_card_pending.
post/api/tasks/trial-window-check
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.
Headers
x-cloudscheduler-secretstring nullable
x-scheduler-secretstring nullable
authorizationstring nullable
Response
Successful Response
unknown required
Changes
No recorded changes to this operation across all 5 revisions of this API.