event

Loyalty Points Earned

Published when a customer earns loyalty points for a completed order.

EventBroker:Kafka

Overview

LoyaltyPointsEarned is published by the Loyalty ServiceLoyalty ServiceServicev1.0.0Awards loyalty points when orders complete and reverses them when orders are cancelled. Owns the points ledger and custo...Publishesloyalty-points-earned, loyalty-points-reversedSubscribesorder-completed, order-cancelledOwnercustomer-platformMapRepoView docs after it awards points for an Order CompletedOrder CompletedEventv1.0.0Published when an order has been fulfilled and completed. Ownerordering-platformSchemaMapView docs. The Shopping domain uses it to unlock loyalty promotions, and Customer Notifications tells the customer about their new balance.

Architecture diagram

Event-driven architecture documentation: Acme Inc

JSON Schema

6 properties

Published when a customer earns loyalty points for a completed order

customerIdstring<uuid>
required
orderIdstring<uuid>
required
pointsEarnedinteger
required
Minimum: 1
newBalanceinteger
required
Minimum: 0
tierstring
Allowed values: bronze silver gold
earnedAtstring<date-time>
required