# Sales Commission Payout Audit

> Sales Commission Payout Audit 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-14).

Audits a sales representative's commission statement against a defined compensation plan, computing expected payouts across tiers and flagging variances, risk items, and disposition recommendations.

## Facts

- Endpoint: POST https://rooke-token-risk-pilot.rookepoole.workers.dev/v1/x402/sales-commission-payout-audit
- Price: $9/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sales-commission-payout-audit-e3bea580
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xLh0Rf3GFYviBbvj6LnNF

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability sales-commission-payout-audit-e3bea580 -d '<json body>'
```

Example prompt: Audit rep REP-42's Q1 2026 commission statement STMT-42 under plan PLAN-AE v2026-Q1 using FLAT_RETROACTIVE mode — they have one deal totaling $80,000 credited, a $500 bonus, a $100 clawback, and a net payout of $6,800, with a quota of $100,000 and no payout cap; use zero tolerance and tell me if the numbers match.

## When to prefer this

Use this endpoint when you need a deterministic, structured audit of a single sales representative's commission statement against a defined compensation plan — particularly when you need a cryptographically committed report hash for downstream audit trails, a machine-readable verdict for automated payroll gates, or a risk-flag list for compliance review. Prefer this over manual spreadsheet reconciliation or generic calculation services when you need tier-aware attainment computation, payout cap enforcement, and clawback handling in a single auditable call.

## Known failure modes

- Invalid plan schema (missing required tier fields or payout mode enum) returns a 400-level validation error
- Period dates in wrong format (not YYYY-MM-DD) cause schema rejection
- Tier array with zero items or more than 50 items is rejected
- Tolerance or payout cap values exceeding integer bounds cause schema errors
- Payment of $9 USDC not included or insufficient causes 402 Payment Required response
- Caller-supplied plan and statement facts are not authenticated, always returned as evidence gap CALLER_SUPPLIED_PLAN_DEAL_AND_STATEMENT_FACTS_NOT_AUTHENTICATED
- Arithmetic inconsistency in observed values may produce DISCREPANCY verdict rather than an error

## How this service works

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.

## Output

Returns a structured JSON audit report including: a verdict (e.g. MATCHED_WITHIN_TOLERANCE or DISCREPANCY_FOUND), expected and observed commission figures (gross, bonus, clawback, net) in minor currency units, per-field variances, attainment basis points and achieved tier index, a tier breakdown, any risk flags, evidence gaps (e.g. unauthenticated caller-supplied facts), a recommended disposition, a claim boundary indicating whether funds were moved or payroll modified, and a cryptographic report hash and request commitment for auditability.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "plan": {
   "type": "object",
   "required": [
    "planId",
    "planVersion",
    "currency",
    "periodStart",
    "periodEnd",
    "quotaMinor",
    "payoutMode",
    "tiers",
    "payoutCapMinor"
   ],
   "properties": {
    "tiers": {
     "type": "array",
     "items": {
      "type": "object",
      "required": [
       "minimumCreditedAmountMinor",
       "rateBps"
      ],
      "properties": {
       "rateBps": {
        "type": "integer",
        "maximum": 10000,
        "minimum": 0
       },
       "minimumCreditedAmountMinor": {
        "type": "integer",
        "maximum": 9007199254740991,
        "minimum": 0
       }
      },
      "additionalProperties": false
     },
     "maxItems": 50,
     "minItems": 1
    },
    "planId": {
     "type": "string",
     "maxLength": 120,
     "minLength": 1
    },
    "currency": {
     "type": "string",
     "pattern": "^[A-Z]{3}$"
    },
    "periodEnd": {
     "type": "string",
     "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "payoutMode": {
     "enum": [
      "FLAT_RETROACTIVE",
      "MARGINAL"
     ],
     "type": "string"
    },
    "quotaMinor": {
     "type": "integer",
     "maximum": 9007199254740991,
     "exclusiveMinimum": 0
    },
    "periodStart": {
     "type": "string",
     "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "planVersion": {
     "type": "string",
     "maxLength": 120,
     "minLength": 1
    },
    "payoutCapMinor": {
     "anyOf": [
      {
       "type": "integer",
       "maximum": 9007199254740991,
       "minimum": 0
      },
      {
       "type": "null"
      }
     ]
    }
   },
   "additionalProperties": false
  },
  "policy": {
   "type": "object",
   "required": [
    "toleranceMinor"
   ],
   "properties": {
    "toleranceMinor": {
     "type": "integer",
     "maximum": 1000000,
     "minimum": 0
    }
   },
   "additionalProperties": false
  },
  "statement": {
   "type": "object",
   "required": [
    "statementId",
    "observedGrossCommissionMinor",
    "observedBonusMinor",
    "observedClawbackMinor",
    "observedNetPayoutMinor"
   ],
   "properties": {
    "statementId": {
     "type": "string",
     "maxLength": 120,
     "minLength": 1
    },
    "observedBonusMinor": {
     "type": "integer",
     "maximum": 9007199254740991,
     "minimum": 0
    },
    "observedClawbackMinor": {
     "type": "integer",
     "maximum": 9007199254740991,
     "minimum": 0
    },
    "observedNetPayoutMinor": {
 
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "plan": {
   "planId": "PLAN-AE",
   "payoutMode": "FLAT_RETROACTIVE",
   "planVersion": "2026-Q1"
  },
  "summary": {
   "dealCount": 1,
   "toleranceMinor": 0,
   "adjustmentCount": 2,
   "creditedDealCount": 1,
   "excludedDealCount": 0
  },
  "verdict": "MATCHED_WITHIN_TOLERANCE",
  "currency": "USD",
  "expected": {
   "bonusMinor": 50000,
   "clawbackMinor": 10000,
   "netPayoutMinor": 680000,
   "capReductionMinor": 0,
   "grossCommissionMinor": 640000
  },
  "observed": {
   "bonusMinor": 50000,
   "clawbackMinor": 10000,
   "netPayoutMinor": 680000,
   "grossCommissionMinor": 640000
  },
  "riskFlags": [],
  "variances": {
   "bonusMinor": 0,
   "clawbackMinor": 0,
   "netPayoutMinor": 0,
   "grossCommissionMinor": 0,
   "observedArithmeticMinor": 0
  },
  "attainment": {
   "quotaMinor": 10000000,
   "attainmentBps": "8000",
   "achievedTierIndex": 1,
   "totalCreditedMinor": 8000000
  },
  "reportHash": "sha256-hex",
  "adjustments": [],
  "dealResults": [],
  "statementId": "STMT-42",
  "evidenceGaps": [
   "CALLER_SUPPLIED_PLAN_DEAL_AND_STATEMENT_FACTS_NOT_AUTHENTICATED"
  ],
  "claimBoundary": {
   "fundsMoved": false,
   "payoutApproved": false,
   "payrollModified": false
  },
  "schemaVersion": "SALES_COMMISSION_PAYOUT_AUDIT_V1",
  "tierBreakdown": [],
  "representativeId": "REP-42",
  "requestCommitment": "sha256-hex",
  "recommendedDisposition": "MATCHED_NO_ACTION"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sales-commission-payout-audit-e3bea580/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from rooke-token-risk-pilot.rookepoole.workers.dev](https://www.zero.xyz/host/rooke-token-risk-pilot.rookepoole.workers.dev/llms.txt)
