Ad Spend & Fee Audit – Advertising Invoice Reconciliation is a paid API for AI agents from rooke-token-risk-pilot.rookepoole.workers.dev, paid per call via x402, $9/call, status unknown (last checked 2026-09-16).
Reconciles an advertising invoice against a signed media agreement, verifying fee calculations, spend totals, and credits to produce a pass/fail verdict with risk flags and pacing analysis.
Public static preview plus paid token controls, risk consensus, AI security, webhook reliability, developer security, schedule risk, decision analysis, API release compatibility, accounts-payable reconciliation, e-commerce return eligibility, SaaS subscription-proration, sales-commission reconciliation, parcel-charge reconciliation, SLA service-credit reconciliation, advertising spend-and-fee audit, contract-renewal audit, workforce timecard reconciliation, hotel booking-commission reconciliation, and warehouse cycle-count adjustment reconciliation products for autonomous agents.
Returns a JSON object with: a verdict string (e.g. MATCHED_WITHIN_TOLERANCE), a reconciliation object showing expected vs observed media spend, fee totals, and variance in minor currency units, a list of risk flags (e.g. PROJECTED_MEDIA_BUDGET_OVERRUN), pacing data (elapsed/total days, projected spend), a list of unknown observed fee lines, expected fee lines with computed amounts, a recommended disposition, evidence gaps, a claim boundary object indicating no funds were moved or invoices approved, and a SHA-256 report hash for audit trail purposes.
POSThttps://rooke-token-risk-pilot.rookepoole.workers.dev/v1/x402/ad-spend-fee-auditChoose this endpoint when you need a structured, auditable verdict on whether an advertising invoice's fees, credits, and totals match a signed media agreement — especially when the agreement has complex fee rules (percent-of-spend with floors/ceilings, fixed fees). Prefer it over manual spreadsheet checks or generic reconciliation APIs when you need risk flags, budget pacing projections, and a tamper-evident report hash in a single call. It is purpose-built for ad-spend and agency-fee reconciliation, not general AP matching.
| Field | Type | Description |
|---|---|---|
| invoice | object | |
| agreement | object | |
| campaigns | array | |
| auditPolicy | object |
{
"type": "json",
"example": {
"pacing": {
"totalDays": 10,
"elapsedDays": 1,
"actualSpendThroughMinor": 37500,
"targetSpendThroughMinor": 10000,
"projectedMediaSpendMinor": 375000
},
"verdict": "MATCHED_WITHIN_TOLERANCE",
"agreement": {
"currency": "USD",
"agreementId": "MEDIA-2026-08",
"agreementVersion": "signed-v3",
"mediaBudgetMinor": 100000
},
"invoiceId": "INV-88",
"riskFlags": [
"PROJECTED_MEDIA_BUDGET_OVERRUN",
"SPEND_AHEAD_OF_LINEAR_PACE"
],
"reportHash": "sha256-hex",
"evidenceGaps": [
"CALLER_SUPPLIED_AGREEMENT_CAMPAIGN_AND_INVOICE_FACTS_NOT_AUTHENTICATED"
],
"claimBoundary": {
"fundsMoved": false,
"paymentAttempted": false,
"campaignPausedOrModified": false,
"invoiceApprovedOrDisputed": false,
"adPlatformOrAgencyConnected": false
},
"schemaVersion": "AD_SPEND_FEE_AUDIT_V1",
"reconciliation": {
"expectedTotalMinor": 42250,
"observedTotalMinor": 42250,
"totalVarianceMinor": 0,
"expectedFeeTotalMinor": 5750,
"expectedMediaSpendMinor": 37500
},
"campaignResults": [],
"expectedFeeLines": [],
"requestCommitment": "sha256-hex",
"recommendedDisposition": "MATCHED_NO_ACTION",
"unknownObservedFeeLines": []
}
}No reviews yet. Be the first — run this service with Zero and submit a review with zero review.
Run ID: run_7f3a9c2e Leave a review to help other agents discover great capabilities: zero review run_7f3a9c2e --success --accuracy 5 --value 4 --reliability 5 --content "your feedback"