Outcome-based billing model (events then ratings)
Outcome-based billing starts from fact events and derives billable ratings via policies.
This model is typically asynchronous and eventually consistent.
Prereqs
- You can record events: Tutorial: events then ratings (ingestion first).
Workflow
- Your system emits fact events representing outcomes, activity, or telemetry.
- Vluna records events via:
POST /mgt/v1/events(single)POST /mgt/v1/events/batch(batch)
- Downstream processing converts events into ratings based on rating policies and contract terms.
Event rules
- Events are fact-only. Do not attempt to embed pricing or cost semantics in event payloads.
- Event ingestion is synchronous and idempotent:
201for first write200for idempotent replay
Verification strategy
For ingestion:
- Verify
201or200for your event writes. - Log
X-Request-Id,principal_id, and any returned identifiers in the envelope.
For downstream rating:
- Treat rating output as asynchronous.
- Use your deployment's reporting and ops tooling to verify rated outputs and settlement.
Next
- Event policy lifecycle: Event rating policies lifecycle
- DSL reference (event rating policies): Events to ratings DSL
- Reports: Operational reports