This page provides the list of events and associated payloads for the Promotions microservice.
List of Events
|SL.#||Name||Description||Publish Location||Routing Key||Durability||Payload Type|
|1||Promocode Blocked or Assigned||This event is triggered when a promocode is blocked or assigned.||Queue: ||Promotion.Block/Assign|
|2||Project Created||This event is triggered when a project is created.||Topic: ||PromotionPayload|
|3||Project Updated||This event is triggered when a project's state is changed.||Topic: ||PromotionPayload|
|4||Cache Clear||This event is triggered when the publish feed is completed or when cache clear is required.||Topic: ||PromotionCacheClear|
Below are the payloads for the Promotions microservice.
|Holds the promocode. The maximum length is 64. This field should not be null or empty.||FLAT50|
|Contains the confirmation code of the promocode.||confirm1|
|Holds the response code.||promotion response code|
|Holds the response message.||promotion response message|
|Indicates the type of transaction, such as ASSIGN or BLOCK.||BLOCK|
|Contains the ID of the order.||Order1|
|Contains the name of the project. The minimum and maximum length of this field is 5 and 50, respectively. This field should not contain null or empty.||PromotionName|
|Contains the state of the project, such as OPEN, SUBMITTED, APPROVED, DENIED, and REOPENED.||Open|
|Indicates the unique identifier of the project. This field is generated automatically. This attribute holds a value in the request for the update and delete operation.||id123|
|Holds the date, when the project was created.||02-12-1995|
|Holds the date, when the project was updated.||02-12-2018|
|Holds the ID of the user, who has created the project.||user123|
|Holds the ID of the user, who has updated the project.||user123|
|Holds the description of the project operation.||Project is created.|
|Holds the date, when the project note was created.||02-1-2018|
|Holds the ID of the user, who has created the project note.||user123|
|Holds the target completion date of the project.||15-11-2019|
|Holds the actual completion date of the project.||12-11-2019|
|Contain the description of the project. This is an optional field. There is no restriction on the minimum and maximum lengths.||Project is up to date.|
|Indicates the unique ID of the collection.||123|
|Holds the ID of the publish version.||1567000000|
|Indicates the unique ID of the collection.||1|
|Holds the publish type. The publish types are FULL, ROLLBACK, and INCREMENT.||FULL|
|Indicates the ID of the user.||5|
|Holds a valid authorization token of a user.||eyJhbGciOiJIUzUxMiJ9.eyJjcmVhdGVkIjoxNTYwMjQ3MTkxMzkwLCJleHAiOjE1NjAyNTQzOTEsImhhc2giOiJlZDJmN2E3ZWJkODU5YzE4ZjQzNWYyNzAyOTk5ZDA5NCIsImF1dGhvcml0aWVzIjoiW3tcInJvbGVzXCI6e1wiUk9MRV9TVVBFUl9BRE1JTlwiOntcInR5cGVcIjpcIlNUQU5EQVJEXCJ9fX1dIiwidXNlcm5hbWUiOiIxIn0.tD8VpfqhK2YaxN8doLWOiRizszgW4mT8iWBkjxwiFxQwo71HJMdkYZO7Wy49uTpmwH_D1iSiBaGzDWDbdEQYfA|
2019-07-09 | Ananthi – Content updated for July 2019 release.
2019-05-17 | Mary – Updated to a new table tool.
2019-05-06 | PLK – Minor copyedit.
2019-04-06 | Ananthi – Content updated for April 2019 release.
2019-01-23 | PLK – Page added and content uploaded.