HomeGuidesAPI ReferenceChangelogDiscussions
GuidesAPI ReferenceDiscussions

Data Model Driven Events

Type

Possible entity types that generate Data Model Driven Events include:

  • application
  • disclosure
  • document
  • followUp
  • party

Action

All Data Model Driven Events must be associated with an action:

  • created
  • deleted
  • updated

Solution

Various Blend solutions may trigger data change events, including:

  • AUTO
  • CONSUMER_MORTGAGE
  • CONSUMER_BANKING
  • INSURANCE
  • WHOLESALE_MORTGAGE

Object Format

{
  "id": UUID
  "firstEmittedAt": ISO8601 DateTime String
  "lastEmittedAt": ISO8601 DateTime String
  "attempt": Integer
  "status": String
  "data": {
    "id": UUID
    "type": String
    "action": String
    "solution": String
    "fields": {
      "keyName": {
        "value": String
        "metadata": Object // Optional
        "links": LinkObject // Optional
      }
    }
  },
  "links": {
  	"parties": {
    	"href": "https://api.beta.blend.com/applications/:id/parties",
    	"meta": { // Optional
      	"count": 10 // Optional
    	}
  	}
  }
}

Example: Party Created

During the application process, an inevitable occurrence is the addition of a "party" which will trigger a data model driven event: the creation of a party entity.

{
  "id": "16ed06db-d0ce-478a-8e2d-63a21d02f55b",
  "firstEmittedAt": "2018-06-14T15:08:18.466Z",
  "lastEmittedAt": "2018-06-14T15:08:18.466Z",
  "attempt": 1,
  "status": "EMITTED",
  "data": {
    "id": "282f3df7-7900-45d5-aafe-b438def61d7a",
    "type": "party",
    "action": "created",
    "solution": "CONSUMER_MORTGAGE",
    "fields": {
      "solutionSubType": {
        "value": "HELOC"
      },
      "applicationId: {
      	"value": "282f3df7-7900-45d5-aafe-b438def61d7a"
    	}
    }
  },
  "links": {
  	"application": {
    	"href": "https://api.beta.blend.com/home-lending/applications/282f3df7-7900-45d5-aafe-b438def61d7a"
  	}
  }
}