Online Retail demo contract (orders by Instacart)
Used in analytics
for e-commerce online retail
This simple data contract shows how the privacy implications of a basic order event would be modelled in a STRM contract. We apply a validation to the user_id field (by regex: should match a UUID).
Event Contract reference
strm-demo/ecommerce-orders-instacart-contract/1.0.0
Schema reference
strm-demo/ecommerce-orders-instacart/1.0.0
Event contract overview
Type | Field | Value | Description |
---|---|---|---|
Key field | user_id | Links events to the associated field for privacy processing. | |
PII field | session_id | 1 | needs consent |
PII field | user_id | 2 | needs consent |
Validation | user_id | regex | \b[0-9a-f]{8}\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\b[0-9a-f]{12}\b |
Serialization schema fields
Field | Description |
---|---|
session_id | . |
order_id | . |
user_id | . |
product_id | . |