RevRule Sandbox — program the economics, watch the entitlements compute
This page runs the actual RevRule revenue engine in your browser, the same code that processed real money during acceptance testing. Pick a scenario, run a revenue event, and watch every micro-unit get assigned, explained, and recorded. Nothing here moves money. Every distribution the engine produces is a proposal, never an execution.
1. Pick a scenario
2. Run a revenue event
3. Make it yours
Define your own split. Add up to five participants with a name and a percentage each. The last participant automatically receives whatever remains, and the engine conserves the pool exactly. This uses the same engine as the scenarios above.
What you are looking at
- Entitlements are computed by rules, evaluated in priority order against the pool. The reason column shows the engine's own explanation for each line.
- Payload fee is the infrastructure fee the engine computes per event. In the sandbox it uses the builder license rate so the line is visible.
- Conservation is structural: entitlements plus fees always equal the pool, because the remainder rule absorbs whatever is left. The check below each run proves it.
- Ledger entries are hash chained. Each entry links the event to the graph version and the rule that produced it.
- The recoupment scenario is stateful: run it six times and watch the $5,000 advance finish recouping before the splits begin.
RevRule observes economic events, computes who is owed what, and proposes payout instructions. Regulated partners move the money. The engine never holds funds and never controls settlement. Full source: github.com/Payloadhq/payload-flow.
Run this against the live API
Everything above runs in your browser and is simulated. The same engine is hosted as the RevRule API at https://payload-rail.fly.dev, and you can run your own graph against it for free:
- Get a free access key. Use the RevRule Console ("Get a free API key"), or one call:
POST https://payload-rail.fly.dev/v1/access-keyswith body{"label":"..."}. The key is returned once; it creates a free-tier account. - Create your own graph with
POST /v1/graphs(Bearer key), then activate it withPOST /v1/graphs/{id}/activate. The API reference quickstart has a complete graph spec you can copy. - Dry-run an event with
POST /v1/graphs/{id}/simulate— the same event envelope as a real event, with zero side effects: no ledger entries are written and no state changes. When you are ready, post real events toPOST /v1/graphs/{id}/events.
Full quickstart in one file: payload-rail.fly.dev/llms.txt · Endpoint reference: RevRule API Reference.