All workflows

Revenue Ghost / Machine Billing Recovery Evidence

Independent deterministic reconciliation of caller-provided metered API or machine usage, billing line items, and settlement exports. Find potentially missing invoices, underbilling, unpaid items, overbilling and unexpected payment amounts. Only available for buyer-declared revenue gaps of at least $500; do not equate candidates to confirmed debts or collections. Non-AI CI, billing daemons, IoT metering and autonomously budgeted treasury software can invoke without human checkouts. No transfers, recovery claims, guarantees, or third-party attestations.

4990 credits per call · $49.90 USDC with x402

Sample input

{
  "period": "2026-09",
  "usage": [
    {
      "id": "usage-101",
      "subject": "machine-operator-1",
      "meter": "api_calls",
      "units": 800,
      "unit_price_usd": "2.000000"
    }
  ],
  "invoices": [
    {
      "id": "line-101",
      "usage_id": "usage-101",
      "billed_usd": "100.00"
    }
  ],
  "payments": [
    {
      "id": "payment-101",
      "invoice_id": "line-101",
      "amount_usd": "80.00",
      "status": "settled"
    }
  ]
}

Worked sample output

{
  "ok": true,
  "mode": "revenue_ghost_evidence",
  "period": "2026-09",
  "usage_count": 1,
  "invoice_count": 1,
  "payment_count": 1,
  "source_sha256": "5cc360f183aaeb58ee37bbfd934cdb90a8de0d00c5523c495649b40d3fa62a46",
  "case_count": 1,
  "revenue_gap_candidates_usd": "1520.00",
  "possible_billing_exposure_usd": "0.00",
  "cases": [
    {
      "usage_id": "usage-101",
      "subject": "machine-operator-1",
      "meter": "api_calls",
      "expected_usd": "1600.00",
      "invoiced_usd": "100.00",
      "net_paid_usd": "80.00",
      "candidate_uninvoiced_usd": "0.00",
      "candidate_underbilled_usd": "1500.00",
      "candidate_unsettled_usd": "20.00",
      "possible_overbilling_usd": "0.00",
      "possible_overpayment_usd": "0.00",
      "fractional_cent_truncated": false,
      "invoice_line_ids": [
        "line-101"
      ],
      "payment_ids": [
        "payment-101"
      ]
    }
  ],
  "duplicates": {
    "usage": [],
    "invoices": [],
    "payments": []
  },
  "unmatched_invoices": [],
  "unmatched_payments": [],
  "recommended_next_steps": [
    "Independently verify original immutable usage and paid ledger exports.",
    "Check refunds, net terms, partial payments, taxes, credits and legitimate multi-line charges.",
    "Reconcile each discrepancy with the billing provider before any collection or correction."
  ],
  "limitations": [
    "Caller-supplied snapshots only; no provider/bank/on-chain authentication.",
    "Not evidence of a legally recoverable debt or actual third-party demand.",
    "No funds moved, refunds issued, claims submitted or buyer wallets signed."
  ]
}

Worked example using published sample data only. Own-data execution is paid.

Connect in curl

Set BOUNTY_API_KEY privately after your payment is verified. Change the retry key for each new logical request.

curl 'https://bounty-engineer-x402-api.onrender.com/v1/prepaid/revenue-ghost-evidence' \
  -H "Authorization: Bearer $BOUNTY_API_KEY" \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: workflow-request-001' \
  -H 'X-Max-Credits: 4990' \
  --data '{"period":"2026-09","usage":[{"id":"usage-101","subject":"machine-operator-1","meter":"api_calls","units":800,"unit_price_usd":"2.000000"}],"invoices":[{"id":"line-101","usage_id":"usage-101","billed_usd":"100.00"}],"payments":[{"id":"payment-101","invoice_id":"line-101","amount_usd":"80.00","status":"settled"}]}'

Connect in n8n

Download the inactive n8n template. Import it, configure the private Header Auth credential, inspect the sample and run it manually. A new execution creates a new billable request; there is no automatic schedule.

Use an HTTP POST to https://bounty-engineer-x402-api.onrender.com/v1/prepaid/revenue-ghost-evidence. Send JSON and these headers; store the Bearer token as a private credential.

{
  "method": "POST",
  "headers": {
    "Authorization": "Bearer YOUR_PRIVATE_API_KEY",
    "Content-Type": "application/json",
    "Idempotency-Key": "UNIQUE_PER_LOGICAL_REQUEST",
    "X-Max-Credits": "4990"
  },
  "body": {
    "period": "2026-09",
    "usage": [
      {
        "id": "usage-101",
        "subject": "machine-operator-1",
        "meter": "api_calls",
        "units": 800,
        "unit_price_usd": "2.000000"
      }
    ],
    "invoices": [
      {
        "id": "line-101",
        "usage_id": "usage-101",
        "billed_usd": "100.00"
      }
    ],
    "payments": [
      {
        "id": "payment-101",
        "invoice_id": "line-101",
        "amount_usd": "80.00",
        "status": "settled"
      }
    ]
  }
}

Reuse a retry key only for the same input. Failed execution returns reserved credits. Full integration and recovery guide · Machine-readable recipe