Topics

marketingprogram

marketingprogram

publishing marketingprogram events

Publish events by HTTP POST to your own pods /publish/ endpoint including the topic, recipient and message body.]

Example

POST /publish/ HTTP/1.1
Host: # { your pod host url }
x-api-key: # { your api key }
Content-Type: application/json

{
  "topic": "https://realestate/{topic}#{event}",
  "recipient": # the publishing pod,
  "@context": # optional transformation context,
  "data": {
    "type": "{Action}
  }

}

receiving marketingprogram events

EventDescription
realestate/marketingprogram#createa marketing program has been created
realestate/marketingprogram#updatea marketing program has been updated
realestate/marketingprogram#deletea marketing program was deleted
realestate/marketingprogram#memberadda program member was added by the agent
realestate/marketingprogram#memberremovea program member was removed by the agent
realestate/marketingprogram#openhouseeventsummarymarketing program for openhouseeventsummary

create

realestate/marketingprogram#create

a marketing program has been created

Schema

NameTypeDescription
topicstring!the event topic which determines the schema of event.data
timestring<date-time>date & time the event was produced
instrumentstring<uri>the service which created the event
sourcestring<uri>an agent, team or organization who received a copy of the event
originalRecipientstring<uri>the original recipient of the event with this id
idstring<uri>the shared identifier of the event, akd the event id
@idstring<uri>the url of your instance of the event in your inbox
dataobject!the object was created by the agent
data.agentstring<uri>the user,tema or organization who sent the event
data.typestring!CreateAction
data.objectobjectA collection of pre-defined activities which take place over a period of time or in a regular, ongoing schedule. <br/>RANGE: MarketingProgram
data.object.statusstringstatus of object
data.object.additionalProperty.campaignTypestringtype of Campaign (e.g DigitalAd, Ecard, Flyer )
data.object.additionalProperty.sharingTypestringsharing type of Campaign (e.g --- AutomatedListingProgram, AdBuilderService, Email )

Example

{
  "topic": "realestate/marketingprogram#create",
  "time": "2022-10-12T01:13:43Z",
  "instrument": "https://vendorid.example.com/profile/card#me",
  "source": "https://companyid.example.com/profile/card#me",
  "originalRecipient": "https://agentid.example.com/profile/card#me",
  "id": "https://instrumentid.example.com/publish/xxxxxxxxxxxxx",
  "@id": "https://yourpod.example.com/inbox/xxxxxxxxxxxxx",
  "data": {
    "type": "CreateAction",
    "agent": "https://agentid.example.com/profile/card#me",
    "object": {
      "type": "MarketingProgram",
      "name": "Market Activity Report 508 Homewood Ave",
      "identifier": {
        "namespaceid": "c28834ca-db69-4da8-90ad-75cdc9907298",
      },
      "status": "Active",
      "member": [ # optional
        {
          "type": "Person",
          "name": "John Smith",
          "identifier": {
            "buysideid": "ab123"
          }
        }
      ],
      "creator": "http://{user}.example.com/profile/card#me",
      "dateCreated": "2022-10-12T01:13:43Z",
      "dateModified": "2022-10-12T01:13:43Z",
      "about": {
        "type": "Place",
        "address": {
          "streetAddress": "508 Homewood Ave",
          "addressLocality": "Chula Vista",
          "addressRegion": "California",
          "postalCode": "55555"
        }
      }
    }
  }
}

Example

{
    "topic": "realestate/marketingprogram#create",
    "recipient" : "https://bhhs.hsfaffiliates.com/profile/card#me",
    "instrument": "https://chalkdigital.bhhs.hsfaffiliates.com",         
    "data": {
        "type": "CreateAction",
        "agent": "https://15787.bhhs.hsfaffiliates.com/profile/card#me",
        "object": {
            "type": "MarketingProgram",      
            "name": "Automated Listing Program Report for ADDRESS",  
            "url": "URL CAMPAIGN SENDS TRAFFIC TO",
            "identifier": {
                "chalkdigitalid": "UNIQUEIDFORCAMPAIGN",
                "report_id": "XXXXX" 
            },
            "additionalProperty": {
                    "campaignType": "Ecard",
                    "sharingType": "Email"
            },
            "status": "Active",
            "dateCreated": "2023-09-18T16:05:58+00:00",
            "dateModified": "2023-09-18T16:05:58+00:00",
            "about": {
                "type": "PropertyListing",
                "originatingSystemName": "ky-cayman-f",
                "originatingSystemKey": "414892",
                "streetAddress": "213 N 5th Street",
                "addressLocality": "Youngwood",
                "addressRegion": "PA",
                "postalCode": "15697",
                "addressCountry": "US",
                "listingId": "355019410"                                                                          
             }
        },
        "marketingProgramSummary": {
              "type": "MarketingProgramSummary",
              "unique_users": 10,
              "impressions": 5,
              "clicks": 7
          } 
    },
}

back to top


update

realestate/marketingprogram#update

a marketing program has been updated

Schema

NameTypeDescription
topicstring!the event topic which determines the schema of event.data
timestring<date-time>date & time the event was produced
instrumentstring<uri>the service which created the event
sourcestring<uri>an agent, team or organization who received a copy of the event
originalRecipientstring<uri>the original recipient of the event with this id
idstring<uri>the shared identifier of the event, akd the event id
@idstring<uri>the url of your instance of the event in your inbox
dataobject!the object was created by the agent
data.agentstring<uri>the user,tema or organization who sent the event
data.typestring!UpdateAction
data.objectobjectA collection of pre-defined activities which take place over a period of time or in a regular, ongoing schedule. <br/>RANGE: MarketingProgram
data.object.statusstringstatus of object
data.marketingProgramSummaryobjectmarketing program summary
data.object.aboutobjectabout object
data.object.additionalProperty.campaignTypestringtype of Campaign (e.g DigitalAd, Ecard, Flyer )
data.object.additionalProperty.sharingTypestringsharing type of Campaign (e.g AutomatedListingProgram, AdBuilderService, Email )

Example

{
  "topic": "realestate/marketingprogram#update",
  "time": "2022-10-12T01:13:43Z",
  "instrument": "https://vendorid.example.com/profile/card#me",
  "source": "https://companyid.example.com/profile/card#me",
  "originalRecipient": "https://agentid.example.com/profile/card#me",
  "id": "https://instrumentid.example.com/publish/xxxxxxxxxxxxx",
  "@id": "https://yourpod.example.com/inbox/xxxxxxxxxxxxx",
  "data": {
    "type": "UpdateAction",
    "agent": "https://agentid.example.com/profile/card#me",
    "object": {
      "type": "MarketingProgram",
      "name": "Market Activity Report 508 Homewood Ave",
      "identifier": {
        "namespaceid": "c28834ca-db69-4da8-90ad-75cdc9907298",
      },
      "status": "Active",
      "member": [ # optional
        {
          "type": "Person",
          "name": "John Smith",
          "identifier": {
            "buysideid": "ab123"
          }
        }
      ],
      "creator": "http://{user}.example.com/profile/card#me",
      "dateCreated": "2022-10-12T01:13:43Z",
      "dateModified": "2022-10-12T01:13:43Z",
      "about": {
        "type": "Place",
        "address": {
          "streetAddress": "508 Homewood Ave",
          "addressLocality": "Chula Vista",
          "addressRegion": "California",
          "postalCode": "55555"
        }
      }
    },
     "marketingProgramSummary": {  # optional
              "type": "MarketingProgramSummary",
              "unique_users": 10,
              "impressions": 5,
              "clicks": 7
     } 
  }
}

Example

{
    "topic": "realestate/marketingprogram#update",
    "recipient" : "https://bhhs.hsfaffiliates.com/profile/card#me",
    "instrument": "https://chalkdigital.bhhs.hsfaffiliates.com",         
    "data": {
        "type": "UpdateAction",
        "agent": "https://15787.bhhs.hsfaffiliates.com/profile/card#me",
        "object": {
            "type": "MarketingProgram",      
            "name": "Automated Listing Program Report for ADDRESS",  
            "url": "URL CAMPAIGN SENDS TRAFFIC TO",
            "identifier": {
                "chalkdigitalid": "UNIQUEIDFORCAMPAIGN",
                "report_id": "XXXXX" 
            },
            "additionalProperty": {
                    "campaignType": "Ecard",
                    "sharingType": "Email"
            },
            "status": "Active",
            "dateCreated": "2023-09-18T16:05:58+00:00",
            "dateModified": "2023-09-18T16:05:58+00:00",
            "about": {
                "type": "PropertyListing",
                "originatingSystemName": "ky-cayman-f",
                "originatingSystemKey": "414892",
                "streetAddress": "213 N 5th Street",
                "addressLocality": "Youngwood",
                "addressRegion": "PA",
                "postalCode": "15697",
                "addressCountry": "US",
                "listingId": "355019410"                                                                          
             }
        },
        "marketingProgramSummary": {
              "type": "MarketingProgramSummary",
              "unique_users": 10,
              "impressions": 5,
              "clicks": 7
          } 

    },
}

back to top


delete

realestate/marketingprogram#delete

a marketing program was deleted

Schema

NameTypeDescription
topicstring!the event topic which determines the schema of event.data
timestring<date-time>date & time the event was produced
instrumentstring<uri>the service which created the event
sourcestring<uri>an agent, team or organization who received a copy of the event
originalRecipientstring<uri>the original recipient of the event with this id
idstring<uri>the shared identifier of the event, akd the event id
@idstring<uri>the url of your instance of the event in your inbox
dataobject!object is removed by the agent from the targetCollection <br/>RANGE: DeleteAction
data.agentstring<uri>the user,tema or organization who sent the event
data.typestring!the action type
data.objectobjectA collection of pre-defined activities which take place over a period of time or in a regular, ongoing schedule.

Example

{
    "topic": "realestate/marketingprogram#delete",
    "recipient": "https://bhhs.hsfaffiliates.com/profile/card#me",
    "data": {
        "type": "DeleteAction",
        "object": {
            "type": "SellerActivityReport",
            "name": "Listing Activity Report 1625 Birch Ln",
            "identifier": {
                "namespaceid": "7efb5faac5e7316674e2373359d557cf9a05b44d"
            }
        },
        "agent": "https://363463.bhhs.hsfaffiliates.com/profile/card#me",
        "instrument": "https://sage.getbuyside.com"
    },
    "source": "https://bhhs.hsfaffiliates.com/profile/card#me",
    "time": "2023-08-08T20:52:11.658Z",
    "@id": "https://buyside.bhhs.hsfaffiliates.com/publish/2378b39773fb46878f1d27c8822e1fff",
    "id": "https://buyside.bhhs.hsfaffiliates.com/publish/2378b39773fb46878f1d27c8822e1fff",
    "timestamp": 1691527931658
}

back to top


memberadd

realestate/marketingprogram#memberadd

a program member was added by the agent

Schema

NameTypeDescription
topicstring!the event topic which determines the schema of event.data
timestring<date-time>date & time the event was produced
instrumentstring<uri>the service which created the event
sourcestring<uri>an agent, team or organization who received a copy of the event
originalRecipientstring<uri>the original recipient of the event with this id
idstring<uri>the shared identifier of the event, akd the event id
@idstring<uri>the url of your instance of the event in your inbox
dataobject!data (object) is added by user (agent), optionally to the targetCollection <br/>RANGE: AddAction
data.typestring!AddAction
data. agentstring<uri>the user,tema or organization who sent the event
data.objectobjectdescribes membership relation between a member (Person) and a MarketingProgram <br/>RANGE: ProgramMembership
data.targetCollectionobjectthe collection or reference to the collection receiving the data <br/>RANGE: MarketingProgram

Example

{
  "topic": "realestate/marketingprogram#memberadd",
  "time": "2022-10-12T01:13:43Z",
  "instrument": "https://vendorid.example.com/profile/card#me",
  "source": "https://companyid.example.com/profile/card#me",
  "originalRecipient": "https://agentid.example.com/profile/card#me",
  "id": "https://instrumentid.example.com/publish/xxxxxxxxxxxxx",
  "@id": "https://yourpod.example.com/inbox/xxxxxxxxxxxxx",
  "data": {
    "type": "AddAction",
    "agent": "https://agentid.example.com/profile/card#me",
    "object": {
      "type": "ProgramMembership",
      "role": "Owner",
      "member": {
        "type": "Person",
        "name": "Edgardo Fisher",
        "identifier": {
          "aceid": "816fd12f-6479-4f45-b26f-0a2ba54972b6"
        }
      },
      "memberOf": {
        "type": "MarketingProgram",
        "name": "Market Activity Report 508 Homewood Ave",
        "identifier": {
          "aceid": "4ef1469a-1fc4-43af-96b1-0e4402ccc46e",
          "buysideid": "83271c2a-c35e-44e9-b790-5389f2c11b17"
        }
      }
    },
    "targetCollection": {
      "type": "MarketingProgram",
      "name": "Market Activity Report 508 Homewood Ave",
      "identifier": {
        "aceid": "4ef1469a-1fc4-43af-96b1-0e4402ccc46e",
        "buysideid": "83271c2a-c35e-44e9-b790-5389f2c11b17"
      }
    }
  }
}

back to top


memberremove

realestate/marketingprogram#memberremove

a program member was removed by the agent

Schema

NameTypeDescription
topicstring!the event topic which determines the schema of event.data
timestring<date-time>date & time the event was produced
instrumentstring<uri>the service which created the event
sourcestring<uri>an agent, team or organization who received a copy of the event
originalRecipientstring<uri>the original recipient of the event with this id
idstring<uri>the shared identifier of the event, akd the event id
@idstring<uri>the url of your instance of the event in your inbox
dataobject!an object (object) is removed by a user (agent), optionally from a collection (targetCollection)
data.typestring!the action type
data.agentstring<uri>the user,tema or organization who sent the event
data.objectobjectdescribes membership relation between a member (Person) and a MarketingProgram <br/>RANGE: ProgramMembership
data.targetCollection*the collection from which the item is being removed <br/>RANGE: MarketingProgram

Example

{
  "topic": "realestate/marketingprogram#memberremove",
  "time": "2022-10-12T01:13:43Z",
  "instrument": "https://vendorid.example.com/profile/card#me",
  "source": "https://companyid.example.com/profile/card#me",
  "originalRecipient": "https://agentid.example.com/profile/card#me",
  "id": "https://instrumentid.example.com/publish/xxxxxxxxxxxxx",
  "@id": "https://yourpod.example.com/inbox/xxxxxxxxxxxxx",
  "data": {
    "type": "RemoveAction",
    "agent": "https://agentid.example.com/profile/card#me",
    "object": {
      "type": "ProgramMembership",
      "role": "Owner",
      "member": {
        "type": "Person",
        "name": "Edgardo Fisher",
        "identifier": {
          "aceid": "816fd12f-6479-4f45-b26f-0a2ba54972b6"
        }
      }
    },
    "targetCollection": {
      "type": "MarketingProgram",
      "name": "Market Activity Report 508 Homewood Ave",
      "identifier": {
        "aceid": "4ef1469a-1fc4-43af-96b1-0e4402ccc46e",
        "buysideid": "83271c2a-c35e-44e9-b790-5389f2c11b17"
      }
    }
  }
}

openhouseeventsummary

realestate/marketingprogram#openhouseeventsummary

a marketing program for openhouseeventsummary

Schema

NameTypeDescription
topicstring!the event topic which determines the schema of event.data
recipientstring<uri>the recipient of the event with this id
data.event.typestringcosnt ("OpenHouseEvent")
data.event.namestringevent name
data.event.descriptionstringevent descritpion
data.event.startDatestring<date-time>the start date-time (ISO 8601 formated) format (date-time)
data.event.endDatestring<date-time>the end date-time (ISO 8601 formated) format (date-time)
data.event.organizer.typestringconst("RealEstateAgent ")
data.event.organizer.namestringevent organizer name
data.event.organizer.idstring<uri>event organizer id
data.event.about.typestringconst("PropertyListing")
data.event.about.originatingSystemNamestringoriginating system name
data.event.about.originatingSystemKeystringthe identifier from the original MLS, aka MLSID.
data.event.about.listingIdstringthe unique listing id
data.event.about.streetAddressstringthe street address <= 75 characters
data.event.about.addressLocalitystringCity, Township. <= 50 characters
data.event.about.postalCodestringZip/Post Code <= 12 characters
data.event.about.addressCountrystringallowed ("CA", "DE", "GR", "IN", "IT", "MX", "PE", "PT", "ES", "AE", "GB", "US") two-letter ISO 3166-1 alpha-2 country code
data.event.about.eventSummary.typestringEvent Summary type
data.event.about.eventSummary.signinsnumbertotal number of sign ins

Example

{
  "topic": "realestate/marketingprogram#openhouseeventsummary",
  "recipient": "https://bhhs.hsfaffiliates.com/profile/card#me",
  "data": {
    "event": {
      "type": "OpenHouseEvent",
      "name": "Property Showing 94 Bainbridge Road",
      "description": "",
      "startDate": "2024-08-11T12:00:00",
      "endDate": "2024-08-11T14:00:00",
      "organizer": {
        "type": "RealEstateAgent",
        "name": "Marla Byrnes",
        "id": "https://335178.bhhs.hsfaffilaites.com/profile/card#me"
      },
      "about": {
        "type": "PropertyListing",
        "originatingSystemName": "GOTHAM-MLS",
        "originatingSystemKey": "12345",
        "url": "https://{company-website-url}/{path-to-listing}",
        "streetAddress": "1007 Mountain Gate Rd",
        "addressRegion": "New Jersey",
        "addressLocality": "Gotham City",
        "postalCode": "10010",
        "addressCountry": "USA"
      }
    },
    "eventSummary": {
      "type": "eventSummary",
      "signins": 10
    }
  }
}

back to top

Previous
commerciallisting