event

Cart Checked Out

Published when a customer has checked out their cart.

EventBroker:Kafka

Overview

CartCheckedOut is published by the Cart APICart APIServicev1.0.0The public-facing API for shopping carts. Handles commands to add and remove items and to check out, and publishes an ev...Publishescart-checked-out, calculate-discountSubscribesadd-item-to-cart, remove-item-from-cart +1APIsOpenAPIOwnershopping-platformMapRepoView docs when a customer checks out. Downstream systems consume this event to create an order, take payment, and begin fulfilment.

Architecture diagram

Event-driven architecture documentation: Acme Inc

JSON Schema

12 properties

Emitted when a customer checks out their cart

eventIdstring<uuid>
required
occurredAtstring<date-time>
required
cartIdstring<uuid>
required
customerIdstring<uuid>
required
itemsarray[object]
required
subtotalinteger

Total before discounts, in minor units (e.g. cents)

discountinteger

Total discount applied, in minor units (e.g. cents)

totalinteger
required

Final total, in minor units (e.g. cents)

currencystring
required
Match pattern: ^[A-Z]{3}$