lead#retract

Message

a lead (data.object) is taken back from the previous assignee (data.participant) by the previous sender/owner (data.recipient)

Payload Example(s) (generated)

{
  "topic": "realestate/lead#retract",
  "data": {
    "type": "RetractAction",
    "object": {
      "type": "Lead",
      "identifier": {
        "bhhsconsumerid": "12345"
      },
      "object": {
        "type": "Contact",
        "name": "Joe Smith",
        "telephone": "731-620-9877 x6155",
        "email": "Giuseppe.Lang62@hotmail.com"
      },
      "recipient": "http://{lead-recipient}.example.com/profile/card#me",
      "sender": "http://{lead-sender}.example.com/profile/card#me",
      "owner": "http://{lead-owner}.example.com/profile/card#me",
      "dateAccepted": "2019-11-25T04:23:32.000Z",
      "dateRejected": "2019-08-24T14:15:22Z",
      "dateSent": "2019-08-24T14:15:22Z",
      "dateReceived": "2019-11-25T04:23:32.000Z",
      "leadSource": [
        {
          "type": "AskAction",
          "object": {
            "type": "Question",
            "text": "Help me I'm trapped inside documentation."
          }
        }
      ]
    },
    "agent": "https://{lead-admin}.bhhs.hsaffailites.com/profile/card",
    "participant": {
      "type": "RealEstateAgent",
      "id": "http://example.com"
    },
    "recipient": {
      "type": "RealEstateAgent",
      "id": "http://example.com"
    }
  }
}

Payload

NameTypeDescription
(root)object-
topicstringconst ("realestate/lead#retract")
dataobjectthe message payload
data.typestringconst ("RetractAction")
data.objectobjecta sales opportunity (object) offered by a sender to a recipient.
data.object.typestringallowed ("Lead") Lead
data.object.identifierobject1 properties
data.object.objectobjectthe lead (Contact)
data.object.recipientstringthe lead recipient format (uri)
data.object.senderstringthe lead provider format (uri)
data.object.ownerstringthe original owner of the lead format (uri)
data.object.dateAcceptedstringThe date/time the item was accepted by the recipient
data.object.dateRejectedstringThe date/time the item was rejected by the recipient format (date-time)
data.object.dateSentstringthe date the lead was sent format (date-time)
data.object.dateReceivedstringThe date/time the item was received by it's recipient
data.object.leadSourcearray<object>lead origin, may be a website event or a thing such as a website, zillow, mobile applicaton.
data.object.leadSource (single item)object-
data.agentstringuser who effected the change format (uri)
data.participantobject-
data.participant.typestringallowed ("RealEstateAgent", "RealEstateOffice", "RealEstateOrganization")
data.participant.idstringformat (uri)
data.recipientobjectthe lead-owner, to whom the lead is being returned
data.recipient.typestringallowed ("RealEstateAgent", "RealEstateOffice", "RealEstateOrganization")
data.recipient.idstringformat (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