Sample listener for Create Organization event
/party/v4/listener/organizationCreateEvent
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
OrganizationCreateEventPayload
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.
-
href: string
Reference of the ProcessFlow
-
id: string
Identifier of the Process flow
-
priority: string
A priority.
-
timeOcurred: string
(date-time)
The time the event occured.
-
title: string
The title of the event.
object
-
organization: object
Discriminator: @type
Discriminator:
{ "propertyName":"@type", "mapping":{ "Organization":"#/components/schemas/Organization", "OrganizationOracle":"#/components/schemas/OrganizationOracle" } }
Organization represents a group of people identified by shared interests or purpose. Examples include business, department and enterprise. Because of the complex nature of many businesses, both organizations and organization units are represented by the same data.
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
-
contactMedium: array
contactMedium
-
creditRating: array
creditRating
-
existsDuring: object
TimePeriod
A period of time, either as a deadline (endDateTime only) a startDateTime only, or both
-
externalReference: array
externalReference
-
href: string
Hyperlink to access the organization
-
id(required): string
Unique identifier of the organization
-
isHeadOffice: boolean
If value is true, the organization is the head office
-
isLegalEntity: boolean
If value is true, the organization is a legal entity known by a national referential.
-
name: string
Organization name (department name for example)
-
nameType: string
Type of the name : Co, Inc, Ltd,???
-
organizationChildRelationship: array
organizationChildRelationship
-
organizationIdentification: array
organizationIdentification
-
organizationParentRelationship: object
OrganizationParentRelationship
Parent references of an organization in a structure of organizations.
-
organizationType: string
Type of Organization (company, department...)
-
otherName: array
otherName
-
partyCharacteristic: array
partyCharacteristic
- relatedParty: array relatedParty
-
status: string
Allowed Values:
[ "initialized", "validated", "closed" ]
Valid values for the lifecycle state of the organization -
taxExemptionCertificate: array
taxExemptionCertificate
-
tradingName: string
Name that the organization (unit) trades under
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.
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
array
-
Array of:
object ExternalReference
External reference of the individual or reference in other system
array
-
Array of:
object OrganizationChildRelationship
Child references of an organization in a structure of organizations.
array
-
Array of:
object OrganizationIdentification
Represents our registration of information used as proof of identity by an organization
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
-
organization: object
OrganizationRef
-
relationshipType: string
Type of the relationship. Could be juridical, hierarchical, geographical, functional for example.
array
-
Array of:
object OtherNameOrganization
Keeps track of other names, for example the old name of an organization.
array
-
Array of:
object Characteristic
Describes a given characteristic of an object or entity through a name/value pair.
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
-
@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
-
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
-
organization: object
OrganizationRef
-
relationshipType: string
Type of the relationship. Could be juridical, hierarchical, geographical, functional for example.
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
-
href: string
Reference of the related entity.
-
id(required): string
Unique identifier of a related entity.
-
name: string
Name of the related entity.
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
Type of identification information used to identify the company in a country or internationally
-
issuingAuthority: string
Authority which has issued the identifier (chamber of commerce...)
-
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
-
name: string
Organization name (department name for example)
-
nameType: string
Co. , Inc. , Ltd. , Pty Ltd. , Plc; , Gmbh
-
tradingName: string
The name that the organization trades under
-
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
-
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 create organization event by submitting a POST request on the REST resource using cURL. You need to create an organization first for this action.
cURL Command
curl -H 'Authorization: Bearer <Token>' -X POST
https://{FABRIC_HOST}/party/v4/listener/organizationCreateEvent
-H "Content-Type: application/json" -D @create_organizationcreateevent.json |
json_pp
Example of Request Body
{ "correlationId": "FAB-7b0c6bde-4c33-4195-96a0-b57cd4e07067", "eventId": "OrganizationCreateEvent_2022-07-25T07:37:40.435950100Z", "eventTime": "2022-07-25T07:37:40.435950100Z", "eventType": "OrganizationCreateEvent", "event": { "organization": { "partyId": "300100550342781", "lastUpdateDate": "2022-07-25T07:37:37.226Z", "creationDate": "2022-07-25T07:37:34.002Z", "createdBy": "comms_care", "lastUpdatedBy": "comms_care", "partyNumber": "CDRM_953432", "type": "ZCA_PROSPECT", "id": "CDRM_953432", "href": "/party/v4/organization/CDRM_953432", "organizationType": "TEMP", "tradingName": "test7", "contactMedium": [ { "id": "CDRM_854510", "lastUpdateDate": "2022-07-25T07:37:34.978Z", "addressId": "300100550342784", "mediumType": "postalAddress", "preferred": true, "characteristic": { "address1": "DO NOT USE THIS CUSTOMER", "formattedAddress": "DO NOT USE THIS CUSTOMER,123 CUSTOME6,GERMANY", "doNotMailFlag": false, "city": "CUSTOME6", "country": "DE", "postCode": "123", "@type": "MediumCharacteristicOracle" }, "@type": "ContactMediumOracle" }, { "id": "300100550342788", "lastUpdateDate": "2022-07-25T07:37:36.656Z", "mediumType": "phoneNumber", "preferred": true, "characteristic": { "formattedPhoneNumber": "+1 35314623771", "phoneCountryCode": "1", "doNotCallFlag": false, "contactType": "workPhoneNumber", "phoneNumber": "(353)(1)4623771 ", "@type": "MediumCharacteristicOracle" }, "@type": "ContactMediumOracle" } ], "organizationIdentification": [ { "id": "300100550342783", "identificationId": "ORCL_IDC_001", "identificationType": "UNIQUE_SUPERANNUATION_ID", "issuingAuthority": "Registrar of Companies, India", "issuingDate": "2022-05-19T12:00:00Z", "attachment": { "id": "00020000000EACED00057708000110F09AB338830000000EACED00057708000110F09AB33882", "href": "/documentManagement/v4/attachment/00020000000EACED00057708000110F09AB338830000000EACED00057708000110F09AB33882", "content": "VGhpcyBpcyB0aGUgZHJpdmVycyBsaWNlbnNlIGNvbnRlbnQu", "description": "Organization Id Doc file content", "mimeType": "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "name": "Organization_ID.docx", "size": { "amount": 48, "units": "bytes" }, "validFor": { "endDateTime": "2026-05-19T03:40:14.003Z" } }, "validFor": { "endDateTime": "2032-05-19T12:00:00Z" }, "@baseType": "OrganizationIdentification", "@type": "OrganizationIdentificationOracle" } ], "relatedParty": [], "status": "initialized", "@type": "OrganizationOracle" } } }
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/organizationCreateEvent.