revclamp_evaluate_ghost_usage
Detect unpaid ghost usage by evaluating an AI/API usage event against multi-subscription Stripe state, enforcing fail-closed pagination and 0-14 day dunning grace.
Instructions
Evaluate whether a customer's AI/API usage event is unpaid ghost usage across multi-subscription Stripe state (enforces fail-closed pagination and 0-14d dunning grace).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| customerId | Yes | ||
| occurredAtSec | No | ||
| subscriptions | Yes | Stripe subscriptions list object ({ data: [...], has_more: false }) or array. | |
| usageTimestampSec | No | ||
| subscriptionsHasMore | No | Must be explicitly false when passing a raw subscriptions array. | |
| dunningGracePeriodDays | No |