
RudderStack
Apply a RudderStack Tracking Plan to a checkout event and inspect the violations before enforcing policy.
- Source
- The web app sends Checkout Completed.
- Tracking Plan
- The standard asks for an order ID, numeric value, and currency.
- Health check
- Inspect rule violations before setting destination behavior.
Give Checkout Completed one event contract
In a test workspace, define Checkout Completed in a RudderStack Tracking Plan and connect the plan to the test source. Require order_id and currency as strings and value as a number. Add your allowed currency list if it is supported in your schema. Choose how violations should reach the downstream environment and start with a test destination before applying any production enforcement.
Send one fixture with ORD-721, 129.50, and USD. Send one missing currency and one where value is the string “129.50”. Check the tracking plan’s health metrics or event diagnostics for violations. Capture the source, expected destination behavior, and what should happen to invalid events while the producer is fixed.
| Payload | Expected result |
|---|---|
| Required properties and numeric value | Schema checks pass and the row reaches the test destination. |
| Missing currency | The plan records a required-property violation. |
| Value sent as text | The plan records a type violation. Verify the destination behavior matches the configured policy. |
Document the contract owner and correction path in the data quality guide.