Sample listener for Update Individual event
/party/v4/listener/individualAttributeValueChangeEvent
Request
There are no request parameters for this operation.
- application/json;charset=utf-8
object
-
correlationId: string
The correlation id for this event.
-
description: string
An explnatory of the event.
-
domain: string
The domain of the event.
-
event: object
IndividualAttributeValueChangeEventPayload
The event data structure
-
eventId: string
The identifier of the notification.
-
eventTime: string
(date-time)
Time of the event occurrence.
-
eventType: string
The type of the notification.
-
fieldPath: string
The path identifying the object field concerned by this notification.
-
priority: string
A priority.
-
timeOcurred: string
(date-time)
The time the event occured.
-
title: string
The title of the event.
object
-
individual: object
Discriminator: @type
Discriminator:
{ "propertyName":"@type", "mapping":{ "Individual":"#/components/schemas/Individual", "IndividualOracle":"#/components/schemas/IndividualOracle" } }
Individual represents a single human being (a man, woman or child). The individual can be a customer, an employee or any other person that the organization needs to store information about.
object
Discriminator Values
-
@baseType: string
When sub-classing, this defines the super-class
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships
-
@type: string
When sub-classing, this defines the sub-class entity name
-
aristocraticTitle: string
e.g. Baron, Graf, Earl,???
-
birthDate: string
(date-time)
Birth date
-
contactMedium: array
contactMedium
-
countryOfBirth: string
Country where the individual was born
-
creditRating: array
creditRating
-
deathDate: string
(date-time)
Date of death
-
disability: array
disability
-
externalReference: array
externalReference
-
familyName: string
Contains the non-chosen or inherited name. Also known as last name in the Western context
-
familyNamePrefix: string
Family name prefix
-
formattedName: string
A fully formatted name in one string with all of its pieces in their proper place and all of the necessary punctuation. Useful for specific contexts (Chinese, Japanese, Korean,???)
-
fullName: string
Full name flatten (first, middle, and last names)
-
gender: string
Gender
-
generation: string
e.g.. Sr, Jr, III (the third),???
-
givenName: string
First name of the individual
-
href: string
Hyperlink to access the organization
-
id(required): string
Unique identifier of the organization
-
individualIdentification: array
individualIdentification
-
languageAbility: array
languageAbility
-
legalName: string
Legal name or birth name (name one has for official purposes)
-
location: string
Temporary current location od the individual (may be used if the individual has approved its sharing)
-
maritalStatus: string
Marital status (married, divorced, widow ...)
-
middleName: string
Middles name or initial
-
nationality: string
Nationality
-
otherName: array
otherName
-
partyCharacteristic: array
partyCharacteristic
-
placeOfBirth: string
Reference to the place where the individual was born
-
preferredGivenName: string
Contains the chosen name by which the individual prefers to be addressed. Note: This name may be a name other than a given name, such as a nickname
- relatedParty: array relatedParty
-
skill: array
skill
-
status: string
Allowed Values:
[ "initialized", "validated", "deceaded" ]
Valid values for the lifecycle state of the individual -
taxExemptionCertificate: array
taxExemptionCertificate
-
title: string
Useful for titles (aristocratic, social,...) Pr, Dr, Sir, ...
array
-
Array of:
object Discriminator: @type
Discriminator:
{ "propertyName":"@type", "mapping":{ "ContactMedium":"#/components/schemas/ContactMedium", "ContactMediumOracle":"#/components/schemas/ContactMediumOracle" } }
Indicates the contact medium that could be used to contact the party.
array
-
Array of:
object PartyCreditProfile
An individual might be evaluated for its worthiness and this evaluation might be based on a credit rating given by a credit agency.
array
-
Array of:
object Disability
Lack or inadequate strength or ability.
array
-
Array of:
object ExternalReference
External reference of the individual or reference in other system
array
-
Array of:
object IndividualIdentification
Represents our registration of information used as proof of identity by an individual (passport, national identity card, drivers license, social security number, birth certificate)
array
-
Array of:
object LanguageAbility
Ability of an individual to understand or converse in a language.
array
-
Array of:
object OtherNameIndividual
Keeps track of other names, for example the old name of a woman before marriage or an artist name.
array
-
Array of:
object Characteristic
Describes a given characteristic of an object or entity through a name/value pair.
array
-
Array of:
object Skill
Skills evaluated for an individual with a level and possibly with a limited validity when an obsolescence is defined (Ex: the first-aid certificate first level is limited to one year and an update training is required each year to keep the level).
array
-
Array of:
object TaxExemptionCertificate
A tax exemption certificate represents a tax exemption granted to a party (individual or organization) by a tax jurisdiction which may be a city, state, country,... An exemption has a certificate identifier (received from the jurisdiction that levied the tax) and a validity period. An exemption is per tax types and determines for each type of tax what portion of the tax is exempted (partial by percentage or complete) via the tax definition.
object
Discriminator Values
-
@baseType: string
When sub-classing, this defines the super-class
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships
-
@type: string
Default Value:
ContactMediumOracle
When sub-classing, this defines the sub-class entity name -
characteristic: object
Discriminator: @type
Discriminator:
{ "propertyName":"@type", "mapping":{ "MediumCharacteristic":"#/components/schemas/MediumCharacteristic", "MediumCharacteristicOracle":"#/components/schemas/MediumCharacteristicOracle" } }
Describes the contact medium characteristics that could be used to contact a party (an individual or an organization) -
mediumType: string
Allowed Values:
[ "postalAddress", "emailAddress", "socialNetwork", "phoneNumber" ]
Type of the contact medium, such as: email address, telephone number, postal address -
preferred: boolean
If true, indicates that is the preferred contact medium
-
validFor: object
TimePeriod
A period of time, either as a deadline (endDateTime only) a startDateTime only, or both
object
Discriminator Values
-
@baseType: string
When sub-classing, this defines the super-class
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships
-
@type: string
Default Value:
MediumCharacteristicOracle
When sub-classing, this defines the sub-class entity name -
city: string
The city
-
contactType: string
Allowed Values:
[ "homePhoneNumber", "mobilePhoneNumber", "homeAddress", "workAddress", "billingAddress", "shippingAddress", "workPhoneNumber", "phoneNumber", "faxNumber", "landlineNumber", "others" ]
The type of contact, for example: phone number such as mobile, fixed home, fixed office. postal address such as shipping instalation??? -
country: string
The country
-
emailAddress: string
Full email address in standard format
-
faxNumber: string
The fax number of the contact
-
phoneNumber: string
The primary phone number of the contact
-
postCode: string
Postcode
-
socialNetworkId: string
Identifier as a member of a social network
-
stateOrProvince: string
State or province
-
street1: string
Describes the street
-
street2: string
Complementary street description
object
-
endDateTime: string
(date-time)
End of the time period, using IETC-RFC-3339 format
-
startDateTime: string
(date-time)
Start of the time period, using IETC-RFC-3339 format. If you define a start, you must also define an end
object
-
@baseType: string
When sub-classing, this defines the super-class
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships
-
@type: string
When sub-classing, this defines the sub-class entity name
-
creditAgencyName: string
Name of the credit agency giving the score
-
creditAgencyType: string
Type of the credit agency giving the score
-
ratingReference: string
Reference corresponding to the credit rating
-
ratingScore: integer
A measure of a party???s creditworthiness calculated on the basis of a combination of factors such as their income and credit history
-
validFor: object
TimePeriod
A period of time, either as a deadline (endDateTime only) a startDateTime only, or both
object
-
@baseType: string
When sub-classing, this defines the super-class
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships
-
@type: string
When sub-classing, this defines the sub-class entity name
-
disabilityCode: string
Code of the disability
-
disabilityName: string
Name of the disability
-
validFor: object
TimePeriod
A period of time, either as a deadline (endDateTime only) a startDateTime only, or both
object
-
@baseType: string
When sub-classing, this defines the super-class
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships
-
@type: string
When sub-classing, this defines the sub-class entity name
-
externalReferenceType: string
Type of the external reference
-
name: string
External reference name
object
-
@baseType: string
When sub-classing, this defines the super-class
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships
-
@type: string
When sub-classing, this defines the sub-class entity name
-
attachment: object
AttachmentRefOrValue
An attachment by value or by reference. An attachment complements the description of an element, for example through a document, a video, a picture.
-
identificationId: string
Identifier
-
identificationType: string
Identification type (passport, national identity card, drivers license, social security number, birth certificate)
-
issuingAuthority: string
Authority which has issued the identifier, such as: social security, town hall
-
issuingDate: string
(date-time)
Date at which the identifier was issued
-
validFor: object
TimePeriod
A period of time, either as a deadline (endDateTime only) a startDateTime only, or both
object
-
@baseType: string
When sub-classing, this defines the super-class
-
@referredType: string
The actual type of the target instance when needed for disambiguation.
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships
-
@type: string
When sub-classing, this defines the sub-class entity name
-
attachmentType: string
Attachment type such as video, picture
-
content: string
The actual contents of the attachment object, if embedded, encoded as base64
-
description: string
A narrative text describing the content of the attachment
-
href: string
URI for this Attachment
-
id: string
Unique identifier for this particular attachment
-
mimeType: string
Attachment mime type such as extension file for video, picture and document
-
name: string
The name of the attachment
-
size: object
Quantity
An amount in a given unit
-
url: string
Uniform Resource Locator, is a web page address (a subset of URI)
-
validFor: object
TimePeriod
A period of time, either as a deadline (endDateTime only) a startDateTime only, or both
object
-
amount: number
(float)
Default Value:
1
Numeric value in a given unit -
units: string
Unit
object
-
@baseType: string
When sub-classing, this defines the super-class
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships
-
@type: string
When sub-classing, this defines the sub-class entity name
-
isFavouriteLanguage: boolean
A ???true??? value specifies whether the language is considered by the individual as his favourite one
-
languageCode: string
Language code (RFC 5646)
-
languageName: string
Language name
-
listeningProficiency: string
Listening proficiency evaluated for this language
-
readingProficiency: string
Reading proficiency evaluated for this language
-
speakingProficiency: string
Speaking proficiency evaluated for this language
-
validFor: object
TimePeriod
A period of time, either as a deadline (endDateTime only) a startDateTime only, or both
-
writingProficiency: string
Writing proficiency evaluated for this language
object
-
@baseType: string
When sub-classing, this defines the super-class
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships
-
@type: string
When sub-classing, this defines the sub-class entity name
-
aristocraticTitle: string
e.g. Baron, Graf, Earl,???
-
familyName: string
Contains the non-chosen or inherited name. Also known as last name in the Western context
-
familyNamePrefix: string
Family name prefix
-
formattedName: string
. A fully formatted name in one string with all of its pieces in their proper place and all of the necessary punctuation. Useful for specific contexts (Chinese, Japanese, Korean,???)
-
fullName: string
Full name flatten (first, middle, and last names)
-
generation: string
e.g. Sr, Jr???
-
givenName: string
First name
-
legalName: string
Legal name or birth name (name one has for official purposes)
-
middleName: string
Middle name or initial
-
preferredGivenName: string
Contains the chosen name by which the person prefers to be addressed. Note: This name may be a name other than a given name, such as a nickname
-
title: string
Use for titles (aristrocatic, social, ...): Pr, Dr, Sir,....
-
validFor: object
TimePeriod
A period of time, either as a deadline (endDateTime only) a startDateTime only, or both
object
-
@baseType: string
When sub-classing, this defines the super-class
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships
-
@type: string
When sub-classing, this defines the sub-class entity name
-
name(required): string
Name of the characteristic
-
value(required): object
Any
-
valueType: string
Data type of the value of the characteristic
object
object
Discriminator Values
-
@baseType: string
When sub-classing, this defines the super-class
-
@referredType(required): string
The actual type of the target instance when needed for disambiguation.
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships
-
@type: string
When sub-classing, this defines the sub-class entity name
-
href: string
Reference of the related entity.
-
id(required): string
Unique identifier of a related entity.
-
name: string
Name of the related entity.
-
role: string
Role played by the related party
object
-
@baseType: string
When sub-classing, this defines the super-class
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships
-
@type: string
When sub-classing, this defines the sub-class entity name
-
comment: string
A free text comment linked to the evaluation done
-
evaluatedLevel: string
Level of expertise in a skill evaluated for an individual
-
skillCode: string
Code of the skill
-
skillName: string
Name of the skill such as Java language,???
-
validFor: object
TimePeriod
A period of time, either as a deadline (endDateTime only) a startDateTime only, or both
object
-
@baseType: string
When sub-classing, this defines the super-class
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships
-
@type: string
When sub-classing, this defines the sub-class entity name
-
attachment: object
AttachmentRefOrValue
An attachment by value or by reference. An attachment complements the description of an element, for example through a document, a video, a picture.
-
id: string
Unique identifier of the certificate of the tax exemption
-
taxDefinition: array
taxDefinition
-
validFor: object
TimePeriod
A period of time, either as a deadline (endDateTime only) a startDateTime only, or both
array
-
Array of:
object TaxDefinition
Reference of a tax definition. A tax is levied by an authorized tax jurisdiction. There are many different types of tax (Federal Tax levied by the US Government, State Tax levied by the State of California,???).
object
-
@baseType: string
When sub-classing, this defines the super-class
-
@referredType: string
The actual type of the target instance when needed for disambiguation.
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships
-
@type: string
When sub-classing, this defines the sub-class entity name
-
id: string
Unique identifier of the tax.
-
name: string
Tax name.
-
taxType: string
Type of the tax.
Response
- application/json;charset=utf-8
201 Response
object
-
callback(required): string
The callback being registered.
-
id(required): string
Id of the listener
-
query: string
additional data to be passed
400 Response
object
-
@baseType: string
When sub-classing, this defines the super-class.
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships
-
@type: string
When sub-classing, this defines the sub-class entity name.
-
code(required): string
Application relevant detail, defined in the API or a common list.
-
message: string
More details and corrective actions related to the error which can be shown to a client user.
-
reason(required): string
Explanation of the reason for the error which can be shown to a client user.
-
referenceError: string
(uri)
URI of documentation describing the error.
-
status: string
HTTP Error code extension
401 Response
object
-
@baseType: string
When sub-classing, this defines the super-class.
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships
-
@type: string
When sub-classing, this defines the sub-class entity name.
-
code(required): string
Application relevant detail, defined in the API or a common list.
-
message: string
More details and corrective actions related to the error which can be shown to a client user.
-
reason(required): string
Explanation of the reason for the error which can be shown to a client user.
-
referenceError: string
(uri)
URI of documentation describing the error.
-
status: string
HTTP Error code extension
403 Response
object
-
@baseType: string
When sub-classing, this defines the super-class.
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships
-
@type: string
When sub-classing, this defines the sub-class entity name.
-
code(required): string
Application relevant detail, defined in the API or a common list.
-
message: string
More details and corrective actions related to the error which can be shown to a client user.
-
reason(required): string
Explanation of the reason for the error which can be shown to a client user.
-
referenceError: string
(uri)
URI of documentation describing the error.
-
status: string
HTTP Error code extension
404 Response
object
-
@baseType: string
When sub-classing, this defines the super-class.
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships
-
@type: string
When sub-classing, this defines the sub-class entity name.
-
code(required): string
Application relevant detail, defined in the API or a common list.
-
message: string
More details and corrective actions related to the error which can be shown to a client user.
-
reason(required): string
Explanation of the reason for the error which can be shown to a client user.
-
referenceError: string
(uri)
URI of documentation describing the error.
-
status: string
HTTP Error code extension
405 Response
object
-
@baseType: string
When sub-classing, this defines the super-class.
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships
-
@type: string
When sub-classing, this defines the sub-class entity name.
-
code(required): string
Application relevant detail, defined in the API or a common list.
-
message: string
More details and corrective actions related to the error which can be shown to a client user.
-
reason(required): string
Explanation of the reason for the error which can be shown to a client user.
-
referenceError: string
(uri)
URI of documentation describing the error.
-
status: string
HTTP Error code extension
409 Response
object
-
@baseType: string
When sub-classing, this defines the super-class.
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships
-
@type: string
When sub-classing, this defines the sub-class entity name.
-
code(required): string
Application relevant detail, defined in the API or a common list.
-
message: string
More details and corrective actions related to the error which can be shown to a client user.
-
reason(required): string
Explanation of the reason for the error which can be shown to a client user.
-
referenceError: string
(uri)
URI of documentation describing the error.
-
status: string
HTTP Error code extension
500 Response
object
-
@baseType: string
When sub-classing, this defines the super-class.
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships
-
@type: string
When sub-classing, this defines the sub-class entity name.
-
code(required): string
Application relevant detail, defined in the API or a common list.
-
message: string
More details and corrective actions related to the error which can be shown to a client user.
-
reason(required): string
Explanation of the reason for the error which can be shown to a client user.
-
referenceError: string
(uri)
URI of documentation describing the error.
-
status: string
HTTP Error code extension
Examples
The following example shows how to create sample listener for individual update event by submitting a POST request on the REST resource using cURL. You need to create an individual first for this action.
cURL Command
curl -H 'Authorization: Bearer <Token>' -X POST
https://{FABRIC_HOST}/party/v4/listener/individualAttributeValueChangeEvent
-H "Content-Type: application/json" -D
@create_individualattrbvalchangeevent.json | json_pp
Example of Request Body
{ "correlationId": "FAB-7b0c6bde-4c33-4195-96a0-b57cd4e07067", "eventId": "IndividualAttributeValueChangeEvent_2022-07-25T07:30:17.316767500Z", "eventTime": "2022-07-25T07:30:17.316767500Z", "eventType": "IndividualAttributeValueChangeEvent", "event": { "individual": { "partyId": "300100550342688", "doNotCallFlag": false, "doNotEmailFlag": false, "lastUpdateDate": "2022-07-25T06:03:43.558Z", "creationDate": "2022-07-25T05:29:32.002Z", "createdBy": "comms_care", "lastUpdatedBy": "comms_care", "partyNumber": "CDRM_953427", "userName": "comms_care", "id": "CDRM_953427", "href": "/party/v4/individual/CDRM_953427", "familyName": "Pickford1", "fullName": "Lia1 Test1 Pickford1", "givenName": "Lia1", "middleName": "Test1", "title": "MS.", "contactMedium": [ { "id": "CDRM_854505", "lastUpdateDate": "2022-07-25T05:29:33.795Z", "addressId": "300100550342692", "mediumType": "postalAddress", "preferred": true, "characteristic": { "address1": "5174 Richmond56", "address2": "Avenue Md 206098", "formattedAddress": "5174 Richmond56,Avenue Md 206098,AVENUE, MD 20609", "state": "MD", "doNotMailFlag": false, "city": "Avenue", "contactType": "billingAddress", "country": "US", "postCode": "20609", "@type": "MediumCharacteristicOracle" }, "@type": "ContactMediumOracle" }, { "id": "300100550342696", "lastUpdateDate": "2022-07-25T05:29:35.770Z", "mediumType": "emailAddress", "preferred": true, "characteristic": { "doNotMailFlag": false, "emailAddress": "etm@etmail.com", "@type": "MediumCharacteristicOracle" }, "@type": "ContactMediumOracle" }, { "id": "300100550342697", "lastUpdateDate": "2022-07-25T05:29:36.253Z", "mediumType": "phoneNumber", "preferred": false, "characteristic": { "formattedPhoneNumber": "+54 112233", "phoneCountryCode": "54", "doNotCallFlag": false, "contactType": "faxNumber", "faxNumber": "112233", "@type": "MediumCharacteristicOracle" }, "@type": "ContactMediumOracle" }, { "id": "300100550342698", "lastUpdateDate": "2022-07-25T05:29:36.291Z", "mediumType": "phoneNumber", "preferred": true, "characteristic": { "formattedPhoneNumber": "+93 (1111)34444", "phoneCountryCode": "93", "phoneAreaCode": "1111", "doNotCallFlag": false, "contactType": "homePhoneNumber", "phoneNumber": "34444", "@type": "MediumCharacteristicOracle" }, "@type": "ContactMediumOracle" }, { "id": "300100550342699", "lastUpdateDate": "2022-07-25T05:29:36.305Z", "mediumType": "phoneNumber", "preferred": false, "characteristic": { "formattedPhoneNumber": "+358 ", "phoneCountryCode": "358", "doNotCallFlag": false, "contactType": "mobilePhoneNumber", "@type": "MediumCharacteristicOracle" }, "@type": "ContactMediumOracle" } ], "individualIdentification": [ { "id": "300100550342691", "identificationId": "KA-DL-24344", "identificationType": "DRIVERS_LICENSE", "issuingAuthority": "RTO Bangalore", "issuingDate": "2022-06-28T12:00:00Z", "attachment": { "id": "00020000000EACED00057708000110F09AB338270000000EACED00057708000110F09AB33826", "href": "/documentManagement/v4/attachment/00020000000EACED00057708000110F09AB338270000000EACED00057708000110F09AB33826", "content": "VGhpcyBpcyB0aGUgZHJpdmVycyBsaWNlbnNlIGNvbnRlbnQu", "description": "Drivers license file content", "mimeType": "application/pdf", "name": "Drivers_license.pdf", "size": { "amount": 48, "units": "bytes" }, "validFor": { "endDateTime": "2027-06-28T03:40:14.003Z" } }, "validFor": { "endDateTime": "2032-06-28T12:00:00Z" }, "@baseType": "IndividualIdentification", "@type": "IndividualIdentificationOracle" } ], "relatedParty": [ { "relationshipId": "300100550342700", "relationshipCode": "PARENT_OF", "relationshipType": "PARENT/CHILD", "lastUpdateDate": "2022-07-25T05:29:36.346Z", "id": "CDRM_953424", "href": "/party/v4/individual/CDRM_953424", "name": "Chandra Reddy", "role": "PARENT", "@type": "RelatedPartyOracle", "@referredType": "Individual" } ], "status": "initialized", "@type": "IndividualOracle" } } }
Example of Response Body
You will get a 201 Created status if your payload is successful. If there are no records, then you will get a message as follows:
No ListenerRegistration Found for http: //127.0.0.1:8086/01/party/v4/listener/individualAttributeValueChangeEvent