contact#delete

Message

a contact (data.object) is deleted by a user (data.agent)

Payload Example(s) (generated)



{
    "topic": "realestate/contact#delete",
    "data": {
        "type": "DeleteAction",
        "agent": "https://0000000.bhhs.hsfaffiliates.com/profile/card#me",
        "instrument": "https://ace.bhhs.hsfaffiliates.com/profile/card#me",
        "object": {
            "type": "Contact",
            "identifier": {
                "salesforceId": "***************"
            },
            "sameAs": {
                "salesforceId": "***************"
            },
            "givenName": "Test", //optional
            "familyName": "Test",  //optional
            "address": [   //optional
                { 
                    "streetAddress": "Test",
                    "addressLocality": "Suamico",
                    "addressCountry": "United States"
                }
            ],
            "leadOwner": {  //optional
                "type": "RealEstateAgent",
                "id": "https://0000000.bhhs.hsfaffiliates.com/profile/card#me"
            },
            "additionalProperty": {  //optional
                "salesforceId": "Test",
                "doNotSellPersonalInformation": false,
                "transactionType": "Other"
            },
            "contactPoint": []  //optional
        }
    },
    "source": "https://0000000.bhhs.hsfaffiliates.com/profile/card#me",
    "recipient": "https://0000000.bhhs.hsfaffiliates.com/profile/card#me",
}

Payload

NameTypeDescription
(root)object-
topicstringconst ("realestate/contact#delete")
dataobject-
data.typestringconst ("DeleteAction")
data.agentstring<uri>the user,tema or organization who sent the event
data.instrumentstring<uri>data instrument
data.object.typestringconst ("Contact")
data.object.identifier.salesforceIdstringidentifier Salesforce Id
data.object.sameAs.salesforceIdstringsameAs Salesforce Id
data.object.givenNamestringgiven name
data.object.familyNamestringfamily name
data.object.addressarray of objectobject has { streetAddress addressLocality , addressCountry }
data.object.leadOwner.typestringtype of lead owner
data.object.leadOwner.idstring<uri>id(url) of lead owner
data.object.additionalProperty.salesforceIdstringsalesforce Id
data.object.additionalProperty.doNotSellPersonalInformationboolfalse
data.object.additionalProperty.transactionTypestringtransaction type
data.object.contactPointarraycontact point array
data.sourcestringformat (uri)
data.recipientstringformat (uri)

Headers

NameTypeDescription
(root)object-
timestringdate & time the event was produced format (date-time)
agentstringif you are a multi-tenant app, then the agent is the user associated with the event data. any future events related to this message will be sent to the same agent/recipient format (uri)
instrumentstringthe app or service that produced the event on behalf of the agent/user format (uri)
sourcestringa copy of the event was sent to the source(s). format (uri)
originalRecipientstringthe originalRecipient helps you determine the subscription that delivered the event to you. if the originalRecipient is the same as the agent, then the you are subscribed to the agent. if the originalRecipient is different from the agent, then you are subscribed to the event source format (uri)
idstringthe Event ID (aka "Publish ID") is the immutable canonical identifier for the event. it is a URI that is unique to the event and will not change. all subscribers will receive the same id for the same event. format (uri)
@idstringformat (uri)

Tools