This page provides the list of events and associated payload for internal events (via RabbitMQ/AWS MQ) and external events (via EventBridge) for the Address microservice.
External Events via EventBridge
The following events contain the entity changed in the event message payload.
List of Events
S.No. | API call | Call detail | Event Type | Identifier |
---|---|---|---|---|
1 | POST | AddressValidation | addressservice/address/create | response_address.id |
2 | DELETE | DeleteAddressValidation | addressservice/address/delete | response_address.id |
Payload
AddressValidation
Event Type: addressservice/address/create
{
"version": "0",
"id": "f3ce5c4f-33a9-a440-8c57-ccd2b9d0ee99",
"detail-type": "addressservice/address/create",
"source": "addressservice",
"account": "277827593990",
"time": "2024-05-09T06:02:10Z",
"region": "us-east-1",
"resources": [
],
"detail": {
"id": "1",
"timestamp": 1715234530241,
"payload": {
"address": {
"id": 1,
"requestType": "physicaladdressvalidation",
"firstName": "Claire",
"middleName": "Lydia Pearson",
"lastName": "Blanchard",
"addressLine1": "MARY ROE",
"addressLine2": "MEGASYSTEMS INC",
"addressLine3": "799 E DRAGRAM SUITE 5A",
"city": "Laconia",
"state": "Hawaii",
"zip": "03485",
"country": "Latvia",
"county": "Laconia",
"companyName": "Figo",
"email": "externalevents1715234530165@mailinator.com",
"phone": "191-484-8066",
"mobileNumber": "191-484-8066",
"validationDetails": [
{
"validationType": "physicaladdressvalidation",
"validated": false,
"overrideValidation": true,
"providedBy": "skava",
"responseCode": "ADCOVAL0000",
"responseMessage": "skipped",
"responseTime": 1715234530227
}
]
}
},
"collectionId": "11418",
"eventType": "addressservice/address/create",
"userId": "1",
"actOnBehalfOfUser": 0,
"roles": [
"ROLE_REG_USER",
"ROLE_SUPER_ADMIN"
],
"channel": "SF_USER"
}
}
DeleteAddressValidation
Event Type: addressservice/address/delete
{
"version": "0",
"id": "6d24a7cf-a94d-5894-7341-b2e47229efbd",
"detail-type": "addressservice/address/create",
"source": "addressservice",
"account": "277827593990",
"time": "2024-05-09T06:02:13Z",
"region": "us-east-1",
"resources": [
],
"detail": {
"id": "1",
"timestamp": 1715234533737,
"payload": {
"address": {
"id": 1,
"requestType": "physicaladdressvalidation",
"firstName": "Kameko",
"middleName": "Carlos Velez",
"lastName": "Lang",
"addressLine1": "MARY ROE",
"addressLine2": "MEGASYSTEMS INC",
"addressLine3": "799 E DRAGRAM SUITE 5A",
"city": "Hoboken",
"state": "Idaho",
"zip": "05908",
"country": "Argentina",
"county": "Hoboken",
"companyName": "Figo",
"email": "ImdLS58YH09446@k8O1In.com",
"phone": "246-653-4292",
"mobileNumber": "246-653-4292",
"validationDetails": [
{
"validationType": "physicaladdressvalidation",
"validated": false,
"overrideValidation": true,
"providedBy": "skava",
"responseCode": "ADCOVAL0000",
"responseMessage": "skipped",
"responseTime": 1715234533735
}
]
}
},
"collectionId": "11418",
"eventType": "addressservice/address/create",
"userId": "1",
"actOnBehalfOfUser": 0,
"roles": [
"ROLE_REG_USER",
"ROLE_SUPER_ADMIN"
],
"channel": "SF_USER"
}
}
Internal Events via RabbitMQ/AWS MQ
The following events communicate with the internal microservices.
List of Events
SL.# | NAME | DESCRIPTION | PUBLISH LOCATION | ROUTING KEY | DURABILITY | PAYLOAD TYPE |
---|---|---|---|---|---|---|
1 | Validate Address | This event is triggered to validate the address. | Topic: ecomm | address.validated | false | Address |
Payload Model
PROPERTY | TYPE | DESCRIPTION | EXAMPLE |
---|---|---|---|
userId | String | Indicates the identifier of the user. | 1 |
addressId | String | Indicates the identifier of the address. | 1 |
Revision History
2019-06-08 | PLK – Minor copyedits.
2019-05-10 | AM – Updated to a new table tool.
2019-04-06 | AN – Content updated for April 2019 release.
2019-01-21 | PLK – Content uploaded.