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

External Events via EventBridge

The following events contain the entity changed in the event message payload.

List of Events

S.No.API callCall detailEvent TypeIdentifier
1.POST CreateBusiness  foundationservice/business/create 
2.PUT UpdateBusiness  foundationservice/business/update 
3.POST CreateStoreAssociation  foundationservice/storeassociation/create 
4.PUT UpdateStoreAssociation  foundationservice/storeassociation/patch 
5.PATCH PatchStoreAssociation  foundationservice/storeassociation/update 
6.DELETE DeleteStoreAssociation  foundationservice/storeassociation/delete 
7.POST CreateStoreAssociationProp  foundationservice/storeassociationproperties/create 
8.PATCH PatchStoreAssociationProp  foundationservice/storeassociationproperties/patch 
9.PUT UpdateStoreAssociationProp  foundationservice/storeassociationproperties/update 
10.DELETE DeleteStoreAssociationProp  foundationservice/storeassociationproperties/delete 
11.POST CreateBusinessProperty  foundationservice/businessproperty/create 
12.PATCH PatchBusinessProperty  foundationservice/businessproperty/patch 
13.PUT UpdateBusinessProperty  foundationservice/businessproperty/update 
14.POST CreateStoreProp  foundationservice/storeproperty/create 
15.PUT UpdateStoreProp  foundationservice/storeproperty/update 
16.PATCH PatchStoreProp  foundationservice/storeproperty/patch 
17.DELETE DeleteStoreProp  foundationservice/storeproperty/delete 
18.POST CreateStore  foundationservice/store/create 
19.PUT UpdateStore  foundationservice/store/update 

Payload

Event TypeResponse Payload
foundationservice/business/create 
{"cdnUrl":"https://d16rliti0tklvn.cloudfront.net","createdBy":0,"createdOn":"","defaultCurrency":"USD","defaultLocale":"en_US","description":"XoYCoxAbDcNDCixBQTCaCQITtPoORIYjYKtfHfxSAjKNeAQKYF","id":0,"name":"businessname_1677473530958","properties":[],"services":[{"name":"cje","status":1},{"name":"cartcheckout","status":1},{"name":"inventory","status":1},{"name":"list","status":1},{"name":"loyalty","status":1},{"name":"marketing"},{"name":"order","status":1},{"name":"catalog","status":1},{"name":"pricing","status":1},{"name":"promotion","status":1},{"name":"customer","status":1},{"name":"subscription","status":1}],"status":1,"storageServiceUrl":"https://s3.amazonaws.com/skava.stage.store.atfingertips.com","updatedBy":0,"updatedOn":""}
foundationservice/business/update  
{"cdnUrl":"https://d16rliti0tklvn.cloudfront.net","createdBy":1,"defaultCurrency":"USD","defaultLocale":"en_US","id":1,"logoUrl":"https://www.skava.com/logo.png","name":"Skava","properties":[{"createdBy":1,"name":"prop.username1","updatedBy":1,"value":true}],"services":[{"name":"catalog","status":1}],"status":1,"storageServiceUrl":"https://s3.amazonaws.com/skava.stage.store.atfingertips.com","updatedBy":1}
foundationservice/storeassociation/create 
{"associations":[{"collectionId":"1677474376076","jurisdiction":[{"countryCode":"+1","documentId":1}],"name":"loyalty","properties":[{"name":"BinId","value":"Bin1"}],"type":"microservice"},{"collectionId":"1677474376076","jurisdiction":[{"countryCode":"+1","documentId":1}],"name":"customer","properties":[{"name":"BinId","value":"Bin1"}],"type":"microservice"}]}
foundationservice/storeassociation/patch 
{"associations":[{"collectionId":"100","jurisdiction":[{"countryCode":"+1","documentId":1}],"name":"loyalty","properties":[{"name":"BinId","value":"Bin1"}],"type":"microservice"},{"collectionId":"100","jurisdiction":[{"countryCode":"+1","documentId":1}],"name":"customer","properties":[{"name":"BinId","value":"Bin1"}],"type":"microservice"}]}
foundationservice/storeassociation/update  
no PATCH CALL present for store association in swagger
foundationservice/storeassociation/delete  
need only corresponding id's
foundationservice/storeassociationproperties/create 
{"properties":[{"name":"fHiqVJ","value":"Property_Value_5"}]}
feedservice/feedjob/update 
{"description":"string","executionType":"string","jobId":"string","jobParams":[{"name":"string","stringValue":"string"}],"maxRunTime":0,"name":"string","serviceType":"string","status":"ACTIVE"}
foundationservice/storeassociationproperties/patch  
no PATCH CALL present in swagger
foundationservice/storeassociationproperties/update
{"properties":[{"name":"Property956557","value":"Property_Value_67"}]}
foundationservice/storeassociationproperties/delete  
need only corresponding id's
foundationservice/businessproperty/create 
[{"createdBy":1,"name":"prop.username12","updatedBy":1,"value":true}]
foundationservice/businessproperty/patch
no PATCH CALL present in swagger
foundationservice/businessproperty/update
[{"createdBy":1,"name":"prop.username","updatedBy":1,"value":false}]
foundationservice/storeproperty/create  
{"properties":[{"custom":false,"description":"GRjoNXHDrY","name":"Property157180319866","value":"propertyValue462"}]}
foundationservice/storeproperty/update  
{"properties":[{"custom":false,"description":"opzajkEzgF","name":"Property526905","value":"propertyValue960"}]}
foundationservice/storeproperty/patch  
no PATCH CALL present for store property in swagger
foundationservice/storeproperty/delete  
need only corresponding id's
foundationservice/store/create  
{"associations":[{"collectionId":1,"defaultAssociation":false,"id":0,"jurisdiction":[{"countryCode":"+1","documentId":1}],"name":"loyalty","properties":[{"name":"loyaltypoints","value":"yvyVpQYRd"}]}],"businessId":"1","currencies":["USD"],"defaultCurrency":"USD","defaultLocale":"en_US","defaultShippingRegion":"US","id":0,"launchUrl":"https://www.skava.com","locales":["en_US"],"logoUrl":"https://www.store.com/logo.png","name":"EeNci","previewUrl":"https://www.skava.com","properties":[{"description":"Maintenance date of every month","name":"prop_maintenancedate","value":25}],"shippings":["US"],"status":"1","timeZone":"UTC","type":"2"}
foundationservice/store/update  
{"associations":[{"collectionId":1,"defaultAssociation":false,"id":0,"jurisdiction":[{"countryCode":"US","documentId":1}],"name":"loyalty","properties":[{"name":"prop_maintenancedate","value":25}]},{"collectionId":2,"defaultAssociation":true,"id":0,"jurisdiction":[{"countryCode":"US","documentId":1}],"name":"subscription","properties":[]},{"collectionId":0,"defaultAssociation":true,"jurisdiction":[{"countryCode":"XincHK","documentId":"XincHK","supported":true}],"name":"XincHK","properties":[{"name":"XincHK","value":"XincHK"}],"storeId":0,"type":"XincHK"}],"businessId":"1","defaultCurrency":"USD","defaultLocale":"en_US","defaultShippingRegion":"US","launchUrl":"https://www.skava.com","name":"SpFyCsyS","previewUrl":"https://www.skava.com","properties":[{"canDelete":true,"description":"XincHK","name":"XincHK","storeId":0,"value":"XincHK"}],"status":"1","timeZone":"UTC","type":"2"}

Internal Events via RabbitMQ/AWS MQ

The following events communicate with the internal microservices.

List of Events

SL.#NameDescriptionPublish LocationRouting KeysDurabilityPayload Type
1Create BusinessThis event is triggered when a business is created.Topic: ecommfoundation.business.createfalseFoundationBusiness
2Update BusinessThis event is triggered when the business is updated.Topic: ecommfoundation.business.updatefalseFoundationBusiness
3Create StoreThis event is triggered when a store is created.Topic: ecommfoundation.store.createfalseFoundationStore
4Update StoreThis event is triggered when the store is updated.Topic: ecommfoundation.store.updatefalseFoundationStore
5Create Business PropertiesThis event is triggered when the business properties are created.Topic: ecommfoundation.businessproperties.createfalseFoundationBusinessProperties
6Update Business PropertiesThis event is triggered when the business properties are updated.Topic: ecommfoundation.businessproperties.updatefalseFoundationBusinessProperties
7Delete Business PropertyThis event is triggered when the business property is deleted.Topic: ecommfoundation.businessproperty.deletefalseFoundationBusinessProperties
8Create Store PropertiesThis event is triggered when the store properties are created.Topic: ecommfoundation.storeproperties.createfalseFoundationStoreProperties
9Update Store PropertiesThis event is triggered when the store properties are updated.Topic: ecommfoundation.storeproperties.updatefalseFoundationStoreProperties
10Create Store AssociationsThis event is triggered when the associations are created.Topic: ecommfoundation.assocations.createfalseFoundationStoreAssociation
11Update Store AssociationsThis event is triggered when the associations are updated.Topic: ecommfoundation.assocations.updatefalseFoundationStoreAssociation
12Update Store AssociationThis event is triggered when the association is updated.Topic: ecommfoundation.assocation.updatefalseFoundationStoreAssociation
13Create Store Association PropertiesThis event is triggered when the association properties are created.Topic: ecommfoundation.assocationproperties.createfalseFoundationStoreAssociationProperties
14Update Store Association PropertiesThis event is triggered when the associations properties are updated.Topic: ecommfoundation.assocationproperties.updatefalseFoundationStoreAssociationProperties
15Update Store Association PropertyThis event is triggered when the association property is updated.Topic: ecommfoundation.assocationproperty.updatefalseFoundationStoreAssociationProperties
16Delete Store Association PropertyThis event is triggered when the association property is deleted.Topic: ecommfoundation.assocationproperty.deletefalseFoundationStoreAssociationProperties
17Update Business StatusThis event is triggered when the business status is updated.Topic: ecommfoundation.business.statusupdatefalseFoundationBusiness

Payload Models

Below are payloads for the Foundation microservice events.

FoundationBusiness

PROPERTYTYPEDESCRIPTIONEXAMPLE
namestringIndicates the business name.AdminBusiness
statusintegerRepresents the status of the business. The possible values are 0 – indicates the inactive status and 1 – indicates the active status.1
storageServiceUrlstringRepresents the AWS (s3) bucket URL.https://s3.amazonaws.com/skava.stage.store.atfingertips.com
cdnUrlstringRepresents the AWS CloudFront CDN URL.https://d16rliti0tklvn.cloudfront.net
logoUrlstringIndicates the URL of the business logo.https://www.skava.com/logo.png
defaultLocalestringRepresents the default locale of the business.en_US
defaultCurrencystringRepresents the default currency of the business.USD
services[].namestringIndicates the service name, which is an identifier of service.catalog
services[].statusintegerIndicates the status of the service associated with the business. The possible values are: 0 – indicates the inactive status and 1 – indicates the active status.1
properties[].namestringContains the name of the business property for a particular business ID.prop.username
properties[].valuestringContains the value of the business property for the given name and business ID.true
properties[].createdBystringRepresents ID of the user, who has created this entry.1
properties[].updatedBystringRepresents ID of the user, who has updated this entry.1
createdBystringRepresents ID of the user, who has created this entry.1
updatedBystringRepresents ID of the user, who has updated this entry.1

FoundationStore

PROPERTYTYPEDESCRIPTIONEXAMPLE
allowPreviewbooleanIndicates whether the store is allowed to be previewed or not.false
associations[].collectionIdlongIndicates the ID of the collection of the service associated.1
associations[].defaultAssociationbooleanIndicates whether the association is the default association or not.false
associations[].idlongIndicates an auto-generated unique ID of the store and service association.0
associations[].jurisdiction[].countryCodestringIndicates the country code of this store jurisdiction.US
associations[].jurisdiction[].documentIdstringIndicates the document ID, which corresponds to the price list of this store jurisdiction.1
associations[].namestringIndicates the name of the service associated with the store.loyalty
associations[].properties[].collectionIdlongIndicates the collection ID of the service associated.1
associations[].properties[].namestringIndicates the name of the property.prop_maintenancedate
associations[].properties[].valuestringIndicates the value of the store association property.25
associations[].createdBystringRepresents ID of the user, who has created this entry.1
associations[].updatedBystringRepresents ID of the user, who has updated this entry.1
businessIdlongIndicates the ID of the business to which this store belongs.1
currencies[]List [string]Indicates the list of currency for this store.USD
defaultCurrencystringIndicates the default currency of the store.USD
defaultLocalestringIndicates the default locale of the store.en_US
defaultShippingRegionstringIndicates the default ship-to-region of the store.US
idlongIndicates an auto-generated unique ID of the store.0
launchUrlstringIndicates the URL with which the store can be launched.https://www.store.com
locales[]List [string]Indicates the list of locales of this store.en_US
logoUrlstringIndicates the URL of the store logo.https://www.store.com/logo.png
namestringIndicates the store name provided by the user.StoreA
previewUrlstringIndicates the URL with which the store can be previewed for future dates.https://www.storepreview.com
properties[].descriptionstringIndicates the description of the store property.Maintenance date of every month
properties[].namestringIndicates the name of the property.prop_maintenancedate
properties[].valuestringIndicates the value of the store association property.25
shippings[]List [string]Indicates the list of shipping countries of this store.US
statusintegerIndicates the status of the store.1
timeZonestringIndicates the timezone of the store provided by the user.UTC
typeintegerIndicates the type of the store. It refers to the ID of the StoreType object. The value 1 indicates a B2B store. The value 2 indicates a B2C store.1
createdBystringRepresents ID of the user, who has created this entry.1
updatedBystringRepresents ID of the user, who has updated this entry.1

FoundationBusinessProperties

PROPERTYTYPEDESCRIPTIONEXAMPLE
namestringContains the name of the business property for a particular business ID.prop.username
valuestringContains the value of the business property for the given name and business ID.true
createdBystringRepresents ID of the user, who has created this entry.1
updatedBystringRepresents ID of the user, who has updated this entry.1

FoundationStoreProperties

PROPERTYTYPEDESCRIPTIONEXAMPLE
descriptionstringIndicates the description of the store property.Maintenance date of every month
namestringIndicates the name of the store property for the particular business ID.prop_maintenancedate
valuestringIndicates the value of a store property with respect to the name and store ID.25
createdBystringRepresents ID of the user, who has created this entry.1
updatedBystringRepresents ID of the user, who has updated this entry.1

FoundationStoreAssociation

PROPERTYTYPEDESCRIPTIONEXAMPLE
collectionIdlongIndicates the ID of the collection of the service associated.1
defaultAssociationbooleanIndicates whether the association is the default association or not.false
idlongIndicates an auto-generated unique ID of the store.0
jurisdiction[].countryCodestringIndicates the country code of this store jurisdiction.US
jurisdiction[].documentIdstringIndicates the document ID, which corresponds to the price list of this store jurisdiction.1
namestringIndicates the name of the service associated with the store.loyalty
properties[].collectionIdlongIndicates the ID of the collection.1
properties[].namestringIndicates the name of the property.prop_maintenancedate
properties[].valuestringIndicates the value of the store association property.25
createdBystringRepresents ID of the user, who has created this entry.1
updatedBystringRepresents ID of the user, who has updated this entry.1

FoundationStoreAssociationProperties

PROPERTYTYPEDESCRIPTIONEXAMPLE
collectionIdlongIndicates the ID of the collection.1
namestringIndicates the name of the property.prop_maintenancedate
valuestringIndicates the value of the store association property.25




Revision History
2019-06-08 | PLK – Minor copyedits.
2019-05-16 | Ananthi – Updated to a new table tool.
2019-05-06 | PLK – Minor copyedits.
2019-04-11 | MA – Updated content for April 2019 release.
2019-01-22 | PLK – Page added.