Tasks
Tasks
Billing True Up
M-2 + M-3: true-up and clawback within the 60-day adjustment window.
BILLING_RULES.md Section 4: each prior period is re-pulled and adjusted via credit/debit line on the next invoice; clawback for invalid traffic refunds 50%. Period is final after 60 days.
This endpoint is currently a scaffold — it identifies the invoices in the 60-day window and surfaces the count. The actual YouTube re-pull
- clawback writer is deferred (see InvoiceGenerator.true_up_and_clawback docstring for the gating reason and follow-up shape).
Recommended cron: weekly. The work is idempotent; firing it daily is safe but wasteful.
post/api/tasks/billing-true-up
Headers
x-cloudscheduler-secretstring nullable
x-scheduler-secretstring nullable
authorizationstring nullable
Response
Successful Response
{"stackTrail":"paths:/api/tasks/billing-true-up: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.