This page provides the list of events and associated payload for the Cart microservice.

List of Events

SL.#NAMEDESCRIPTIONPUBLISH LOCATIONROUTING KEYDURABILITYPAYLOAD TYPE
1Create CartThis event is triggered when a cart is created.Topic: ecommcart.createdtruecartPayload
2Update CartThis event is triggered when a cart is updated.Topic: ecommcart.updatedtruecartPayload
3Delete CartThis event is triggered when a cart is deleted.Topic: ecommcart.deletedtruecartPayload
4Create Cart ItemThis event is triggered when a cart item is created.Topic: ecommcartitem.createdtruecartPayload
5Update Cart ItemThis event is triggered when a cart item is updated.Topic: ecommcartitem.updatedtruecartPayload
6Delete Cart ItemThis event is triggered when a cart item is deleted.Topic: ecommcartitem.deletedtruecartPayload
7Create Cart PaymentThis event is triggered when a cart payment is created.Topic: ecommcartpayment.createdtruecartPayload
8Update Cart PaymentThis event is triggered when a cart payment is updated.Topic: ecommcartpayment.updatedtruecartPayload
9Delete Cart PaymentThis event is triggered when a cart payment is deleted.Topic: ecommcartpayment.deletedtruecartPayload
10Create Cart PromotionThis event is triggered when a cart promotion is created.Topic: ecommcartpromotion.createdtruecartPayload
11Delete Cart PromotionThis event is triggered when a cart promotion is deleted.Topic: ecommcartpromotion.deletedtruecartPayload

Payload Models

cartPayload

PROPERTYTYPEDESCRIPTIONEXAMPLE
userIdlongSpecifies the identifier of the user, who accesses the cart.123
cartIdlongIndicates the identifier of the cart, which is created, updated, or deleted.123
cartItemIdlongIndicates the identifier of the cartitem, which is created, updated, or deleted.123
paymentIdlongIndicates the identifier of the payment, which is created, updated, or deleted along with the cart.123
paymentTypestringIndicates the type of payment made for the cart.credit card
promotionIdstringSpecifies the identifier of the promotion, which is created, updated, or deleted along with the cart.promo123
skuIds[]List [string]Indicates the list of SKU IDs in the cartitem.sku1
cartTypestringSpecifies the type of the cart, which is associated with the user.USER




Revision History
2019-06-08 | PLK – Minor copyedits.
2019-05-20 | AM – Updated to a new table tool.
2019-04-06 | AN – Content updated for April 2019 release.
2019-01-21 | PLK – Content uploaded.