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
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.