This page provides the list of events and associated payload for internal events (via RabbitMQ/AWS MQ) for the Storefront Orchestration microservice.

Internal Events via RabbitMQ/AWS MQ

The following events communicate with the internal microservices.

List of Events

NameDescriptionPublish LocationRouting KeyDurabilityPayload Type
User Registration (B2C)This event will be triggered when a user is registered successfully. It has complete information about the user.ecommuser.usercreatedtrueUSER_USERCREATED
Invite User (B2C)This event will be triggered when a user is invited again successfully. It has the user information like user ID, email ID, phone number, first name, and last name.ecommuser.usercreatedtrueUSER_INVITEUSER
Reset Password (B2C)This event will be triggered when a user is trying to reset the password. It has the user information like email ID and phone number.ecommuser.resetpasswordtrueUSER_RESET_CREDENTIAL
Accounts User Registration (B2B)This event will be triggered when a user is registered successfully. It has complete information about the user.ecommuser.usercreatedtrueACCOUNTS_WELCOMEUSER
Accounts Invite User (B2B)This event will be triggered when a user is invited again successfully. It has the user information like user ID, email ID, phone number, first name, and last name.ecommuser.usercreatedtrueACCOUNTS_INVITEUSER
List Share (B2C)This event will be triggered when a user shares the list (Favorites).ecommtrueLIST_SHARE
Order ConfirmationThis event will be triggered when an order is created.ecommorder.createdtrueORDER_CONFIRMATION
Add Loyalty Appeasement This event is triggered when a customer is appeased with a reward.ecommloyalty.transaction.createfalseLOYALTY_TRANSACTION
Earn LoyaltyThis event is triggered when a customer earns a reward.ecommloyalty.transaction.createfalseLOYALTY_TRANSACTION
Redeem LoyaltyThis event is triggered when a customer redeems a reward.ecommloyalty.transaction.createfalseLOYALTY_TRANSACTION

Payload Models

Below are the payloads for the Storefront Orchestration microservice.

USER_USERCREATED

PropertyTypeDescriptionExample
collectionIdlongIndicates the unique ID of the collection.1
users.idlongIndicates the ID of the user.211
users.emailstringIndicates the unique email address of the user.user@skava.com
users.phoneNumberstringHolds the unique phone number of the user.1675212054
users.firstNamestringIndicates the first name of the user.Mannix
users.lastNamestringIndicates the last name of the user.Bruce
users.statusstringIndicates the status of the user.ACTIVE
users.typestringIndicates the user type, such as a guest user or a registered user.1
users.genderstringIndicates the gender of the user.male
users.photostringHolds the uploaded image URL of the user's profile photo.Sample 3
users.dateOfBirthstringIndicates the user's date of birth.10/12/2000
users.resetParamstringIndicates the reset parameter, which is received through the email or SMS.
users.activationParamstringIndicates the activation param, which is used to activate the user.
users.preferencesstringIndicates the user's preferences, which are either email or phone number.sms
users.createdDateDateIndicates the created timestamp of the user.1543406415000
users.updatedDateDateIndicates the updated timestamp of the user.1543406415000
users.addressesslistRefers to the list of user's address.
users.userConsentslistRefers to the list of user consent details.
resetPasswordRedirectUrlstringIndicates the redirect URL of the site, which is used to reset the user password.
activationRedirectUrlstringIndicates the redirect URL of the site, which is used to activate the user.
activationParamExpiryMillisecstringRefers to the expiry time (in millisecond) of the user's activation parameter.86400000
resetParamExpiryMilliseclongRefers to the expiry time (in millisecond) of the user's reset parameter.86400000
inviteUserFlagbooleanIndicates whether an invite email or a welcome email needs to be sent or not.false

USER_INVITEUSER

PropertyTypeDescriptionExample
collectionIdlongIndicates the unique ID of the collection.1
users.idlongIndicates the ID of the user.211
users.emailstringIndicates the unique email address of the user.user@skava.com
users.phoneNumberstringHolds the unique phone number of the user.1675212054
users.firstNamestringIndicates the first name of the user.Mannix
users.lastNamestringIndicates the last name of the user.Bruce
users.statusstringIndicates the status of the user.ACTIVE
users.typestringIndicates the user type, such as a guest user or a registered user.1
users.genderstringIndicates the gender of the user.male
users.photostringHolds the uploaded image URL of the user's profile photo.Sample 3
users.dateOfBirthstringIndicates the user's date of birth.10/12/2000
users.resetParamstringIndicates the reset parameter, which is received through the email or SMS.
users.activationParamstringIndicates the activation param, which is used to activate the user.
users.preferencesstringIndicates the user's preferences, which are either email or phone number.sms
users.createdDateDateIndicates the created timestamp of the user.1543406415000
users.updatedDateDateIndicates the updated timestamp of the user.1543406415000
users.addressesslistRefers to the list of user's address.
users.userConsentslistRefers to the list of user consent details.
resetPasswordRedirectUrlstringIndicates the redirect URL of the site, which is used to reset the user password.
activationRedirectUrlstringIndicates the redirect URL of the site, which is used to activate the user.
activationParamExpiryMillisecstringRefers to the expiry time (in millisecond) of the user's activation parameter.86400000
resetParamExpiryMilliseclongRefers to the expiry time (in millisecond) of the user's reset parameter.86400000
inviteUserFlagbooleanIndicates whether an invite email or a welcome email needs to be sent or not.true

USER_RESET_CREDENTIAL

PropertyTypeDescriptionExample
collectionIdlongIndicates the unique ID of the collection.1
users.idlongIndicates the ID of the user.211
users.emailstringIndicates the unique email address of the user.user@skava.com
users.phoneNumberstringHolds the unique phone number of the user.1675212054
users.firstNamestringIndicates the first name of the user.Mannix
users.lastNamestringIndicates the last name of the user.Bruce
users.statusstringIndicates the status of the user.ACTIVE
users.typestringIndicates the user type, such as a guest user or a registered user.1
users.genderstringIndicates the gender of the user.male
users.photostringHolds the uploaded image URL of the user's profile photo.Sample 3
users.dateOfBirthstringIndicates the user's date of birth.10/12/2000
users.resetParamstringIndicates the reset parameter, which is received through the email or SMS.
users.activationParamstringIndicates the activation param, which is used to activate the user.
users.preferencesstringIndicates the user's preferences, which are either email or phone number.sms
users.createdDateDateIndicates the created timestamp of the user.1543406415000
users.updatedDateDateIndicates the updated timestamp of the user.1543406415000
users.addressesslistRefers to the list of user's address.
users.userConsentslistRefers to the list of user consent details.
resetPasswordRedirectUrlstringIndicates the redirect URL of the site, which is used to reset the user password.
activationRedirectUrlstringIndicates the redirect URL of the site, which is used to activate the user.
activationParamExpiryMillisecstringRefers to the expiry time (in millisecond) of the user's activation parameter.86400000
resetParamExpiryMilliseclongRefers to the expiry time (in millisecond) of the user's reset parameter.86400000
inviteUserFlagbooleanIndicates whether an invite email or a welcome email needs to be sent or not.true

ACCOUNTS_WELCOMEUSER

PropertyTypeDescriptionExample
collectionIdlongIndicates the unique ID of the collection.1
users.idlongIndicates the ID of the user.211
users.emailstringIndicates the unique email address of the user.user@skava.com
users.phoneNumberstringHolds the unique phone number of the user.1675212054
users.firstNamestringIndicates the first name of the user.Mannix
users.lastNamestringIndicates the last name of the user.Bruce
users.statusstringIndicates the status of the user.ACTIVE
users.typestringIndicates the user type, such as a guest user or a registered user.1
users.genderstringIndicates the gender of the user.male
users.photostringHolds the uploaded image URL of the user's profile photo.Sample 3
users.dateOfBirthstringIndicates the user's date of birth.10/12/2000
users.resetParamstringIndicates the reset parameter, which is received through the email or SMS.
users.activationParamstringIndicates the activation param, which is used to activate the user.
users.preferencesstringIndicates the user's preferences, which are either email or phone number.sms
users.createdDateDateIndicates the created timestamp of the user.1543406415000
users.updatedDateDateIndicates the updated timestamp of the user.1543406415000
users.addressesslistRefers to the list of user's address.
users.userConsentslistRefers to the list of user consent details.
resetPasswordRedirectUrlstringIndicates the redirect URL of the site, which is used to reset the user password.
activationRedirectUrlstringIndicates the redirect URL of the site, which is used to activate the user.
activationParamExpiryMillisecstringRefers to the expiry time (in millisecond) of the user's activation parameter.86400000
resetParamExpiryMilliseclongRefers to the expiry time (in millisecond) of the user's reset parameter.86400000
inviteUserFlagbooleanIndicates whether an invite email or a welcome email needs to be sent or not.true

ACCOUNTS_INVITEUSER

PropertyTypeDescriptionExample
collectionIdlongIndicates the unique ID of the collection.1
users.idlongIndicates the ID of the user.211
users.emailstringIndicates the unique email address of the user.user@skava.com
users.phoneNumberstringHolds the unique phone number of the user.1675212054
users.firstNamestringIndicates the first name of the user.Mannix
users.lastNamestringIndicates the last name of the user.Bruce
users.statusstringIndicates the status of the user.ACTIVE
users.typestringIndicates the user type, such as a guest user or a registered user.1
users.genderstringIndicates the gender of the user.male
users.photostringHolds the uploaded image URL of the user's profile photo.Sample 3
users.dateOfBirthstringIndicates the user's date of birth.10/12/2000
users.resetParamstringIndicates the reset parameter, which is received through the email or SMS.
users.activationParamstringIndicates the activation param, which is used to activate the user.
users.preferencesstringIndicates the user's preferences, which are either email or phone number.sms
users.createdDateDateIndicates the created timestamp of the user.1543406415000
users.updatedDateDateIndicates the updated timestamp of the user.1543406415000
users.addressesslistRefers to the list of user's address.
users.userConsentslistRefers to the list of user consent details.
resetPasswordRedirectUrlstringIndicates the redirect URL of the site, which is used to reset the user password.
activationRedirectUrlstringIndicates the redirect URL of the site, which is used to activate the user.
activationParamExpiryMillisecstringRefers to the expiry time (in millisecond) of the user's activation parameter.86400000
resetParamExpiryMilliseclongRefers to the expiry time (in millisecond) of the user's reset parameter.86400000
inviteUserFlagbooleanIndicates whether an invite email or a welcome email needs to be sent or not.true

LIST_SHARE

PropertyTypeDescriptionExample
listRedirectUrlstringHolds the list redirect URL.http://www.tgiant.com/
list.listItemsstringContains the list of items, which are available for the list.
list.listItems[].listItemIdstringIndicates the identifier of the listitem, which is created, updated, or deleted.5c611a4075a285000a817d46
list.listItems[].keystringRefers to the item key.110001120
list.listItems[].namestringRefers to the value of the key.Green Shoe
list.listItems[].propertiesstringContains all the additional properties, which need to be added to a list item apart from the available default properties.
list.listIdstringIndicates the unique identifier of the list.5c611a4075a285000a817d45
list.namestringRefers to the name of the list. The name of the list is unique for a user within a collection.My Fav
list.typestringRefers to the type of the list.WISHLIST
list.userIdstringRefers to the ID of the user who has created the list.2316
list.itemTypestringRefers to the item type, which will be stored in the list.SKU
list.accessTypestringIndicates the access type of the list. The possible values are:

  • PUBLIC - the list can be accessed by any user.
  • PRIVATE - the list is accessible by the user who owns the list.

PUBLIC
list.propertiesstringContains all the additional properties, which need to be added to a list apart from the available default properties.

ORDER_CONFIRMATION

PropertyTypeDescriptionExample
user.firstNamestringContains the first name of the user.Srinivasan
user.lastNamestringContains the last name of the user.
user.emailstringIndicates the email ID of the user.user@skava.com
order.orderidstringContains the unique identifier of an order. This field is generated automatically.16755331910lhe11
order.address_Street1stringIndicates the first street name of the user address.5thstreet
order.address_Street2stringIndicates the second street name of the user address, if any.
order.citystringIndicates the city of the user address.NY
order.statestringIndicates the state of the user address.
order.zipcodestringIndicates the zip code of the user address.AZ09OP
totalCostAfterDiscountstringContains the total discounted cost of an order or item.792
order.orderDatestringIndicates the created date of the order.27 Nov, 2018 6:14:31 PM

LOYALTY_TRANSACTION

PropertyTypeDescriptionExample
channelstringIndicates the channel of the transaction.mobile
collection_idintegerIndicates the ID of the collection.125
eventIdstringIndicates the unique identifier of the event associated with the transaction.34
expiryTimeintegerIndicates the expiry time of the transaction in milliseconds.2082652200000
identifierstringRefers to the identifier of the item. The minimum length of the identifier is 1 and the maximum length of the identifier is 50.transaction001
industryTransactionCodestringHolds the industry transaction code of the transaction. This is an optional field.1
industryTransactionIdstringHolds the industry transaction ID of the transaction. This is an optional field.1
industryTransactionReferencestringHolds the industry transaction reference of the transaction. This is an optional field.1
merchantCitystringHolds the merchant city of the transaction. This is an optional field.Texas
merchantClientIDstringHolds the merchant client ID of the transaction. This is an optional field.690
merchantIdstringHolds the merchant ID of the transaction. This is an optional field.50
merchantNamestringHolds the merchant name of the transaction. This is an optional field.A-Star
merchantStatestringHolds the merchant state of the transaction. This is an optional field.Texas
merchantZipcodestringHolds the merchant zipcode of the transaction. This is an optional field.78666
notesstringHolds the notes of the transaction.Transaction for order appeasement.
orderIdstringHolds the order ID of the transaction.569
parentTransactionIdstringIndicates the unique identifier of the parent transaction. The old transaction ID is used when the current transaction needs to be associated with the old transaction.77
propertiesstringIndicates a list of properties of the transaction. It is key-value pair.
redemptionKeystringHolds the redemption key of the transaction. This is an optional field.1
redemptionMethodstringHolds the redemption method of the transaction. This is an optional field.orders
redemptionTypestringHolds the redemption type of the transaction. This is an optional field.order
redemptionValuestringHolds the redemption value of the transaction. This is an optional field.10
redemptionVendorstringHolds the redemption vendor of the transaction. This is an optional field.A-Star
redemptionVendorIdstringHolds the redemption vendor ID of the transaction. This is an optional field.40
rewardTypestringIndicates the reward type of the transaction.POINTS
rewardValuenumberIndicates the reward value of the transaction.50
storeIdstringHolds the unique identifier of the associated store.99
typestringIndicates the type of transaction. The following transaction types are applied:
  • EARNED - to allocate the rewards to the customer.
  • APPROVED - to approve the earned rewards.
  • EXPIRED - to expire the earned and approved rewards.
  • FORFEITED - to forfeit the approved rewards.
  • CANCELED - to cancel the earned rewards.
  • REDEEMED - to redeem the approved rewards.
  • REVERSE_REDEEMED - to reverse the redeemed rewards.
  • CYCLED - to prepare a report containing rewards of all transactions for the customer.
EARNED
userIdstringIndicates the unique valid identifier of the current user.user001
userInfostringIndicates the unique identifier of the user who performs the action. This is an optional field when the user is logged in with an auth token. It is required only for super admin and common admin.user001

 

 

Revision History
2020-01-14 | AN – Updated content for February 2020 release.
2019-07-11 | MA – Page created and content uploaded.