This page provides the list of events and associated payloads for the Accounts microservice.

List of Events

SL.#NAMEDESCRIPTIONPUBLISH LOCATIONROUTING KEYDURABILITYPAYLOAD TYPE
1Account CreatedThis event is triggered when an account is created.Topic: ecommaccounts.createaccountfalseCreateOrUpdateAccount
2Account UpdatedThis event is triggered when an account is updated.Topic: ecommaccounts.updateccountfalseCreateOrUpdateAccount
3Account Buyer CreatedThis event is triggered when an account buyer is created.Topic: ecommaccounts.createaccountbuyerfalseCreateOrUpdateAccountBuyer
4Account Buyer UpdatedThis event is triggered when an account buyer is updated.Topic: ecommaccounts.updateaccountbuyerfalseCreateOrUpdateAccountBuyer
5Account Seller CreatedThis event is triggered when an account seller is created.Topic: ecommaccounts.createaccountsellerfalseCreateOrUpdateAccountSeller
6Account Seller UpdatedThis event is triggered when an account seller is updated.Topic: ecommaccounts.updateaccountsellerfalseCreateOrUpdateAccountSeller
7Contract CreatedThis event is triggered when a contract is created.Topic: ecommaccounts.createcontractfalseCreateOrUpdateContract
8Contract UpdatedThis event is triggered when a contract is updated.Topic: ecommaccounts.updatecontractfalseCreateOrUpdateContract

Payload Models

Below are the payloads for the Accounts microservice events:

CreateOrUpdateAccount

PROPERTYTYPEDESCRIPTIONEXAMPLE
idlongIndicates the unique ID of the account.1
collectionIdlongIndicates the unique ID of the collection.1
nameStringIndicates the name of the account.Account_1
sizeStringRefers to the count of the employees in the account.100
typeIdlongIndicates the unique ID of the account type.1
accountTypeStringIndicates the name of the account type.testaccounttype
statuslongRefers to the status of the account.active
parentAccountIdlongRefers to the ID of the parent account under which this account is associated.1
createdTimeDateIndicates the timestamp of the created account.1543923953856
updatedTimeDateIndicates the timestamp of the updated account.1543923953856
properties[].idlongIndicates the unique ID of the property.1
properties[].nameStringIndicates the name of the property.accountProperty
properties[].valueStringRefers to the value of an account property, which is associated with a particular name of the account property.value
properties[].accountIdlongIndicates the unique ID of the account.1

CreateOrUpdateAccountBuyer

PROPERTYTYPEDESCRIPTIONEXAMPLE
teamIdStringIndicates the unique ID of the team.1
userIdlongIndicates the unique ID of the buyer user.1

CreateOrUpdateAccountSeller

PROPERTYTYPEDESCRIPTIONEXAMPLE
accountIdStringIndicates the unique ID of the existing account, which is to be associated with the account seller.1
userIdlongIndicates the unique ID of the seller user.1

CreateOrUpdateContract

PROPERTYTYPEDESCRIPTIONEXAMPLE
catalogIdStringIndicates the ID of the catalog, which is associated with this contract.10011
creditLimitdoubleRefers to the maximum credit limit of amount, which is allocated for an account.10000
endTimelongRefers to the end period of the contract.144256
nameStringIndicates the name of the contract.Contract1
paymentMethodStringIndicates the method of payment.creditcard
paymentTermIdlongIndicates the valid ID of the existing payment term.1
priceListIdStringIndicates the ID of the price list, which is a collection ID of pricing.1001
startTimelongRefers to the start time of the contract.134256
statusStringRefers to the status of the contract.ACTIVE

 


Revision History
2019-05-16 | AN – Updated to a new table tool.
2019-04-11 | MA – Updated content and format.
2019-01-18 | PLK – Content uploaded.