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
Headers
x-cloudscheduler-secretstring nullable
x-scheduler-secretstring nullable
authorizationstring nullable
Response
Successful Response
{"stackTrail":"paths:/api/tasks/trial-window-check:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}
Changes
No recorded changes to this endpoint across all 1 revision of this API.