The structure of the webhook events related to applications.
Overview of DigiFi Application Events
The application events deliver instant notifications to your external applications when specific events occur related to applications. These events include "application.created," "application.updated," "application.decisionProcessed," and "application.deleted."
Data Structure (Variables)
DigiFi enables customers to define custom variables to create a unique data structure. Therefore, the structure of the "variables" section of the events will differ by organization. The example below contains a basic set of variables for illustrative purposes.
Application Created
The "application.created" event occurs when an application is created, either manually on the platform or via APIs. The event data has the following structure:
{
"eventId": "aaa660c477154478b17377d",
"eventType": "application.created",
"data": {
"object": {
"id": "bcd0e9b5d8dd46eb9d60b",
"displayId": "100000",
"variables": {
"borrower_first_name": "John",
"borrower_email": "[email protected]",
"borrower_personal_id_number": "999999999",
"borrower_last_name": "Doe",
"borrower_phone": "+1234567890",
"borrower_date_of_birth": "05/25/1978",
"borrower_home_address": {
"street_number": "123",
"street_name": "Street",
"unit_number": "2",
"city": "Los Angeles",
"state_or_province": "CA",
"country": "US",
"zip_or_postal_code": "12345"
},
"coborrower_first_name": "Jane",
"coborrower_last_name": "Doe",
"coborrower_email": "[email protected]",
"coborrower_phone": "+1234567890",
"coborrower_personal_id_number": "111111111",
"coborrower_date_of_birth": "01/05/1973",
"coborrower_home_address": {
"street_number": "123",
"street_name": "Street",
"unit_number": "2",
"city": "Los Angeles",
"state_or_province": "CA",
"country": "US",
"zip_or_postal_code": "12345"
},
"intermediary_name": "Intermediary",
"intermediary_email": "[email protected]",
"intermediary_id_number": "123456789",
"intermediary_phone": "+1234567789",
"intermediary_type": "Affiliate",
"loan_amount": 40000
},
"borrowerId": "66ce338079334a46a9a6cdb",
"createdAt": "2023-05-18T17:35:01.513Z",
"updatedAt": "2023-05-18T17:35:01.513Z",
"declineReasons": [],
"organizationId": "7b9bbe05fef44aa2b58",
"testing": true,
"coborrowerIds": [
"4e8d891b6e584e2597d4cbea"
],
"borrowerType": "person",
"coborrowerTypes": [
"person"
],
"createdBy": {
"id": "4b19f5bcc26d476da27d6dce",
"firstName": "Team",
"lastName": "Member",
"email": "[email protected]",
"phone": "*********0000",
"isMfaEnabled": true,
"isEmailVerified": true,
"avatarParams": {
"originalFileName": "image.png",
"canvasHeight": 600,
"canvasWidth": 400,
"cropRect": {
"height": 268.52367688022287,
"width": 268.52367688022287,
"x": 171.33813714582607,
"y": 65.73816155988857
},
"imageRect": {
"height": 268.52367688022287,
"width": 268.52367688022287,
"x": 171.33813714582607,
"y": 65.73816155988857
},
"id": "229f293a-7nj6-78n-noma-8e095eaf9f2c-184669daa710184669daa7100010a8c0b6d-41d2e493-7nh5-6bnj-6754-7d66a64f5e36"
},
"notificationBlacklist": [],
"avatarId": "229f293a-7nj6-78n-noma-8e095eaf9f2c-184669daa710184669daa7100010a8c0b6d-41d2e493-7nh5-6bnj-6754-7d66a64f5e36"
},
"updatedBy": {
"id": "4b19f5bcc26d476da27d6dce",
"firstName": "Team",
"lastName": "Member",
"email": "[email protected]",
"phone": "*********0000",
"isMfaEnabled": true,
"isEmailVerified": true,
"avatarParams": {
"originalFileName": "image.png",
"canvasHeight": 600,
"canvasWidth": 400,
"cropRect": {
"height": 268.52367688022287,
"width": 268.52367688022287,
"x": 171.33813714582607,
"y": 65.73816155988857
},
"imageRect": {
"height": 268.52367688022287,
"width": 268.52367688022287,
"x": 171.33813714582607,
"y": 65.73816155988857
},
"id": "229f293a-7nj6-78n-noma-8e095eaf9f2c-184669daa710184669daa7100010a8c0b6d-41d2e493-7nh5-6bnj-6754-7d66a64f5e36"
},
"notificationBlacklist": [],
"avatarId": "229f293a-7nj6-78n-noma-8e095eaf9f2c-184669daa710184669daa7100010a8c0b6d-41d2e493-7nh5-6bnj-6754-7d66a64f5e36"
},
"transitionedToStatusAt": "2023-05-18T17:35:01.512Z",
"labels": [
{
"id": "99a4b75f9b8d460ba15a165ba",
"name": "Low Priority",
"color": "#983C6C"
}
],
"teamMembers": [
{
"id": "4b19f5bcc26d476da27d6dce",
"firstName": "Team",
"lastName": "Member",
"email": "[email protected]",
"avatarId": "229f293a-7nj6-78n-noma-8e095eaf9f2c-184669daa710184669daa7100010a8c0b6d-41d2e493-7nh5-6bnj-6754-7d66a64f5e36"
}
],
"status": {
"id": "c72f888ae49846f496106",
"name": "New Application",
"permissionGroupsToEditApplication": {
"62b98d839476426de610f4f7": true,
"62b98d839476426e3410f4f6": true,
"62b98d83947642051a10f4f8": false,
"642b3596f230f64bb8eb7e4c": false
},
"permissionGroupsToMoveApplicationIntoStatus": {
"62b98d839476426de610f4f7": true,
"62b98d839476426e3410f4f6": true,
"62b98d83947642051a10f4f8": true,
"642b3596f230f64bb8eb7e4c": false
},
"permissionGroupsAbleToViewApplicationOnBoard": {
"62b98d839476426de610f4f7": true,
"62b98d839476426e3410f4f6": true,
"62b98d83947642051a10f4f8": true,
"642b3596f230f64bb8eb7e4c": false
},
"type": "initial"
},
"product": {
"id": "5bd1a0a668374e31b15aedc71",
"name": "Loan Product",
"organization": "97203b05fa124b4cb86aa3c37",
"organizationVersion": 0,
"borrowerTypes": [
"person"
]
}
}
},
"createdAt": "2023-05-18T17:35:01.532Z"
}
Application Updated
The "application.updated" event occurs when an application is updated, either manually on the platform or via APIs. The event data has the following structure:
{
"eventId": "646664a39907baa5ed7b882c",
"eventType": "application.updated",
"data": {
"previousObject": {
"id": "bcd0e9b5d8dd46eb9d60b",
"displayId": "100000",
"variables": {
"borrower_first_name": "John",
"borrower_email": "[email protected]",
"borrower_personal_id_number": "999999999",
"borrower_last_name": "Doe",
"borrower_phone": "+1234567890",
"borrower_date_of_birth": "05/25/1978",
"borrower_home_address": {
"street_number": "123",
"street_name": "Street",
"unit_number": "2",
"city": "Los Angeles",
"state_or_province": "CA",
"country": "US",
"zip_or_postal_code": "12345"
},
"coborrower_first_name": "Jane",
"coborrower_last_name": "Doe",
"coborrower_email": "[email protected]",
"coborrower_phone": "+1234567890",
"coborrower_personal_id_number": "111111111",
"coborrower_date_of_birth": "01/05/1973",
"coborrower_home_address": {
"street_number": "123",
"street_name": "Street",
"unit_number": "2",
"city": "Los Angeles",
"state_or_province": "CA",
"country": "US",
"zip_or_postal_code": "12345"
},
"intermediary_name": "Intermediary",
"intermediary_email": "[email protected]",
"intermediary_id_number": "123456789",
"intermediary_phone": "+1234567789",
"intermediary_type": "Affiliate",
"loan_amount": 40000
},
"borrowerId": "66ce338079334a46a9a6cdb",
"createdAt": "2023-05-18T17:35:01.513Z",
"updatedAt": "2023-05-18T17:35:01.513Z",
"declineReasons": [],
"organizationId": "7b9bbe05fef44aa2b58",
"testing": true,
"coborrowerIds": [
"4e8d891b6e584e2597d4cbea"
],
"borrowerType": "person",
"coborrowerTypes": [
"person"
],
"createdBy": {
"id": "4b19f5bcc26d476da27d6dce",
"firstName": "Team",
"lastName": "Member",
"email": "[email protected]",
"phone": "*********0000",
"isMfaEnabled": true,
"isEmailVerified": true,
"avatarParams": {
"originalFileName": "image.png",
"canvasHeight": 600,
"canvasWidth": 400,
"cropRect": {
"height": 268.52367688022287,
"width": 268.52367688022287,
"x": 171.33813714582607,
"y": 65.73816155988857
},
"imageRect": {
"height": 268.52367688022287,
"width": 268.52367688022287,
"x": 171.33813714582607,
"y": 65.73816155988857
},
"id": "229f293a-7nj6-78n-noma-8e095eaf9f2c-184669daa710184669daa7100010a8c0b6d-41d2e493-7nh5-6bnj-6754-7d66a64f5e36"
},
"notificationBlacklist": [],
"avatarId": "229f293a-7nj6-78n-noma-8e095eaf9f2c-184669daa710184669daa7100010a8c0b6d-41d2e493-7nh5-6bnj-6754-7d66a64f5e36"
},
"updatedBy": {
"id": "4b19f5bcc26d476da27d6dce",
"firstName": "Team",
"lastName": "Member",
"email": "[email protected]",
"phone": "*********0000",
"isMfaEnabled": true,
"isEmailVerified": true,
"avatarParams": {
"originalFileName": "image.png",
"canvasHeight": 600,
"canvasWidth": 400,
"cropRect": {
"height": 268.52367688022287,
"width": 268.52367688022287,
"x": 171.33813714582607,
"y": 65.73816155988857
},
"imageRect": {
"height": 268.52367688022287,
"width": 268.52367688022287,
"x": 171.33813714582607,
"y": 65.73816155988857
},
"id": "229f293a-7nj6-78n-noma-8e095eaf9f2c-184669daa710184669daa7100010a8c0b6d-41d2e493-7nh5-6bnj-6754-7d66a64f5e36"
},
"notificationBlacklist": [],
"avatarId": "229f293a-7nj6-78n-noma-8e095eaf9f2c-184669daa710184669daa7100010a8c0b6d-41d2e493-7nh5-6bnj-6754-7d66a64f5e36"
},
"transitionedToStatusAt": "2023-05-18T17:35:01.512Z",
"labels": [
{
"id": "99a4b75f9b8d460ba15a165ba",
"name": "Low Priority",
"color": "#983C6C"
}
],
"teamMembers": [
{
"id": "4b19f5bcc26d476da27d6dce",
"firstName": "Team",
"lastName": "Member",
"email": "[email protected]",
"avatarId": "229f293a-7nj6-78n-noma-8e095eaf9f2c-184669daa710184669daa7100010a8c0b6d-41d2e493-7nh5-6bnj-6754-7d66a64f5e36"
}
],
"status": {
"id": "c72f888ae49846f496106",
"name": "New Application",
"permissionGroupsToEditApplication": {
"62b98d839476426de610f4f7": true,
"62b98d839476426e3410f4f6": true,
"62b98d83947642051a10f4f8": false,
"642b3596f230f64bb8eb7e4c": false
},
"permissionGroupsToMoveApplicationIntoStatus": {
"62b98d839476426de610f4f7": true,
"62b98d839476426e3410f4f6": true,
"62b98d83947642051a10f4f8": true,
"642b3596f230f64bb8eb7e4c": false
},
"permissionGroupsAbleToViewApplicationOnBoard": {
"62b98d839476426de610f4f7": true,
"62b98d839476426e3410f4f6": true,
"62b98d83947642051a10f4f8": true,
"642b3596f230f64bb8eb7e4c": false
},
"type": "initial"
},
"product": {
"id": "5bd1a0a668374e31b15aedc71",
"name": "Loan Product",
"organization": "97203b05fa124b4cb86aa3c37",
"organizationVersion": 0,
"borrowerTypes": [
"person"
]
}
},
"object": {
"id": "bcd0e9b5d8dd46eb9d60b",
"displayId": "100000",
"variables": {
"borrower_first_name": "John",
"borrower_email": "[email protected]",
"borrower_personal_id_number": "999999999",
"borrower_last_name": "Doe",
"borrower_phone": "+1234567890",
"borrower_date_of_birth": "05/25/1978",
"borrower_home_address": {
"street_number": "123",
"street_name": "Street",
"unit_number": "2",
"city": "Los Angeles",
"state_or_province": "CA",
"country": "US",
"zip_or_postal_code": "12345"
},
"coborrower_first_name": "Jane",
"coborrower_last_name": "Doe",
"coborrower_email": "[email protected]",
"coborrower_phone": "+1234567890",
"coborrower_personal_id_number": "111111111",
"coborrower_date_of_birth": "01/05/1973",
"coborrower_home_address": {
"street_number": "123",
"street_name": "Street",
"unit_number": "2",
"city": "Los Angeles",
"state_or_province": "CA",
"country": "US",
"zip_or_postal_code": "12345"
},
"intermediary_name": "Intermediary",
"intermediary_email": "[email protected]",
"intermediary_id_number": "123456789",
"intermediary_phone": "+1234567789",
"intermediary_type": "Affiliate",
"loan_amount": 50000
},
"borrowerId": "66ce338079334a46a9a6cdb",
"createdAt": "2023-05-18T17:35:01.513Z",
"updatedAt": "2023-05-18T17:35:01.513Z",
"declineReasons": [],
"organizationId": "7b9bbe05fef44aa2b58",
"testing": true,
"coborrowerIds": [
"4e8d891b6e584e2597d4cbea"
],
"borrowerType": "person",
"coborrowerTypes": [
"person"
],
"createdBy": {
"id": "4b19f5bcc26d476da27d6dce",
"firstName": "Team",
"lastName": "Member",
"email": "[email protected]",
"phone": "*********0000",
"isMfaEnabled": true,
"isEmailVerified": true,
"avatarParams": {
"originalFileName": "image.png",
"canvasHeight": 600,
"canvasWidth": 400,
"cropRect": {
"height": 268.52367688022287,
"width": 268.52367688022287,
"x": 171.33813714582607,
"y": 65.73816155988857
},
"imageRect": {
"height": 268.52367688022287,
"width": 268.52367688022287,
"x": 171.33813714582607,
"y": 65.73816155988857
},
"id": "229f293a-7nj6-78n-noma-8e095eaf9f2c-184669daa710184669daa7100010a8c0b6d-41d2e493-7nh5-6bnj-6754-7d66a64f5e36"
},
"notificationBlacklist": [],
"avatarId": "229f293a-7nj6-78n-noma-8e095eaf9f2c-184669daa710184669daa7100010a8c0b6d-41d2e493-7nh5-6bnj-6754-7d66a64f5e36"
},
"updatedBy": {
"id": "4b19f5bcc26d476da27d6dce",
"firstName": "Team",
"lastName": "Member",
"email": "[email protected]",
"phone": "*********0000",
"isMfaEnabled": true,
"isEmailVerified": true,
"avatarParams": {
"originalFileName": "image.png",
"canvasHeight": 600,
"canvasWidth": 400,
"cropRect": {
"height": 268.52367688022287,
"width": 268.52367688022287,
"x": 171.33813714582607,
"y": 65.73816155988857
},
"imageRect": {
"height": 268.52367688022287,
"width": 268.52367688022287,
"x": 171.33813714582607,
"y": 65.73816155988857
},
"id": "229f293a-7nj6-78n-noma-8e095eaf9f2c-184669daa710184669daa7100010a8c0b6d-41d2e493-7nh5-6bnj-6754-7d66a64f5e36"
},
"notificationBlacklist": [],
"avatarId": "229f293a-7nj6-78n-noma-8e095eaf9f2c-184669daa710184669daa7100010a8c0b6d-41d2e493-7nh5-6bnj-6754-7d66a64f5e36"
},
"transitionedToStatusAt": "2023-05-18T17:35:01.512Z",
"labels": [
{
"id": "99a4b75f9b8d460ba15a165ba",
"name": "Low Priority",
"color": "#983C6C"
}
],
"teamMembers": [
{
"id": "4b19f5bcc26d476da27d6dce",
"firstName": "Team",
"lastName": "Member",
"email": "[email protected]",
"avatarId": "229f293a-7nj6-78n-noma-8e095eaf9f2c-184669daa710184669daa7100010a8c0b6d-41d2e493-7nh5-6bnj-6754-7d66a64f5e36"
}
],
"status": {
"id": "c72f888ae49846f496106",
"name": "New Application",
"permissionGroupsToEditApplication": {
"62b98d839476426de610f4f7": true,
"62b98d839476426e3410f4f6": true,
"62b98d83947642051a10f4f8": false,
"642b3596f230f64bb8eb7e4c": false
},
"permissionGroupsToMoveApplicationIntoStatus": {
"62b98d839476426de610f4f7": true,
"62b98d839476426e3410f4f6": true,
"62b98d83947642051a10f4f8": true,
"642b3596f230f64bb8eb7e4c": false
},
"permissionGroupsAbleToViewApplicationOnBoard": {
"62b98d839476426de610f4f7": true,
"62b98d839476426e3410f4f6": true,
"62b98d83947642051a10f4f8": true,
"642b3596f230f64bb8eb7e4c": false
},
"type": "initial"
},
"product": {
"id": "5bd1a0a668374e31b15aedc71",
"name": "Loan Product",
"organization": "97203b05fa124b4cb86aa3c37",
"organizationVersion": 0,
"borrowerTypes": [
"person"
]
}
}
},
"createdAt": "2023-05-18T17:47:15.785Z"
}
Application Decision Processed
The "application.decisionProcessed" event occurs when a decision strategy is run within an application, either manually on the platform or via APIs. The event data has the following structure:
{
"eventId": "30bdc69631664ff992c0e1c90",
"eventType": "applicationDecisionProcessed",
"data": {
"id": "bad924ea42a34e0cbd5d05fc",
"name": "Decision 1",
"applicationId": "bcd0e9b5d8dd46eb9d60b",
"strategyId": "qwe0e9b5d8dd46eb9d90v",
"strategyDisplayName": "Loan Underwriting",
"result": "failed",
"outputs": {
"custom_score": 230
}
},
"createdAt": "2023-05-19T11:35:16.270Z"
}
Application Deleted
The "application.deleted" event occurs when an application is deleted, either manually on the platform or via APIs. The event data has the following structure:
{
"eventId": "85fe6df22de744f2bcccf84",
"eventType": "application.deleted",
"data": {
"object": {
"id": "bcd0e9b5d8dd46eb9d60b",
"displayId": "100000",
"variables": {
"borrower_first_name": "John",
"borrower_email": "[email protected]",
"borrower_personal_id_number": "999999999",
"borrower_last_name": "Doe",
"borrower_phone": "+1234567890",
"borrower_date_of_birth": "05/25/1978",
"borrower_home_address": {
"street_number": "123",
"street_name": "Street",
"unit_number": "2",
"city": "Los Angeles",
"state_or_province": "CA",
"country": "US",
"zip_or_postal_code": "12345"
},
"coborrower_first_name": "Jane",
"coborrower_last_name": "Doe",
"coborrower_email": "[email protected]",
"coborrower_phone": "+1234567890",
"coborrower_personal_id_number": "111111111",
"coborrower_date_of_birth": "01/05/1973",
"coborrower_home_address": {
"street_number": "123",
"street_name": "Street",
"unit_number": "2",
"city": "Los Angeles",
"state_or_province": "CA",
"country": "US",
"zip_or_postal_code": "12345"
},
"intermediary_name": "Intermediary",
"intermediary_email": "[email protected]",
"intermediary_id_number": "123456789",
"intermediary_phone": "+1234567789",
"intermediary_type": "Affiliate",
"loan_amount": 40000
},
"borrowerId": "66ce338079334a46a9a6cdb",
"createdAt": "2023-05-18T17:35:01.513Z",
"updatedAt": "2023-05-18T17:35:01.513Z",
"declineReasons": [],
"organizationId": "7b9bbe05fef44aa2b58",
"testing": true,
"coborrowerIds": [
"4e8d891b6e584e2597d4cbea"
],
"borrowerType": "person",
"coborrowerTypes": [
"person"
],
"createdBy": {
"id": "4b19f5bcc26d476da27d6dce",
"firstName": "Team",
"lastName": "Member",
"email": "[email protected]",
"phone": "*********0000",
"isMfaEnabled": true,
"isEmailVerified": true,
"avatarParams": {
"originalFileName": "image.png",
"canvasHeight": 600,
"canvasWidth": 400,
"cropRect": {
"height": 268.52367688022287,
"width": 268.52367688022287,
"x": 171.33813714582607,
"y": 65.73816155988857
},
"imageRect": {
"height": 268.52367688022287,
"width": 268.52367688022287,
"x": 171.33813714582607,
"y": 65.73816155988857
},
"id": "229f293a-7nj6-78n-noma-8e095eaf9f2c-184669daa710184669daa7100010a8c0b6d-41d2e493-7nh5-6bnj-6754-7d66a64f5e36"
},
"notificationBlacklist": [],
"avatarId": "229f293a-7nj6-78n-noma-8e095eaf9f2c-184669daa710184669daa7100010a8c0b6d-41d2e493-7nh5-6bnj-6754-7d66a64f5e36"
},
"updatedBy": {
"id": "4b19f5bcc26d476da27d6dce",
"firstName": "Team",
"lastName": "Member",
"email": "[email protected]",
"phone": "*********0000",
"isMfaEnabled": true,
"isEmailVerified": true,
"avatarParams": {
"originalFileName": "image.png",
"canvasHeight": 600,
"canvasWidth": 400,
"cropRect": {
"height": 268.52367688022287,
"width": 268.52367688022287,
"x": 171.33813714582607,
"y": 65.73816155988857
},
"imageRect": {
"height": 268.52367688022287,
"width": 268.52367688022287,
"x": 171.33813714582607,
"y": 65.73816155988857
},
"id": "229f293a-7nj6-78n-noma-8e095eaf9f2c-184669daa710184669daa7100010a8c0b6d-41d2e493-7nh5-6bnj-6754-7d66a64f5e36"
},
"notificationBlacklist": [],
"avatarId": "229f293a-7nj6-78n-noma-8e095eaf9f2c-184669daa710184669daa7100010a8c0b6d-41d2e493-7nh5-6bnj-6754-7d66a64f5e36"
},
"transitionedToStatusAt": "2023-05-18T17:35:01.512Z",
"labels": [
{
"id": "99a4b75f9b8d460ba15a165ba",
"name": "Low Priority",
"color": "#983C6C"
}
],
"teamMembers": [
{
"id": "4b19f5bcc26d476da27d6dce",
"firstName": "Team",
"lastName": "Member",
"email": "[email protected]",
"avatarId": "229f293a-7nj6-78n-noma-8e095eaf9f2c-184669daa710184669daa7100010a8c0b6d-41d2e493-7nh5-6bnj-6754-7d66a64f5e36"
}
],
"status": {
"id": "c72f888ae49846f496106",
"name": "New Application",
"permissionGroupsToEditApplication": {
"62b98d839476426de610f4f7": true,
"62b98d839476426e3410f4f6": true,
"62b98d83947642051a10f4f8": false,
"642b3596f230f64bb8eb7e4c": false
},
"permissionGroupsToMoveApplicationIntoStatus": {
"62b98d839476426de610f4f7": true,
"62b98d839476426e3410f4f6": true,
"62b98d83947642051a10f4f8": true,
"642b3596f230f64bb8eb7e4c": false
},
"permissionGroupsAbleToViewApplicationOnBoard": {
"62b98d839476426de610f4f7": true,
"62b98d839476426e3410f4f6": true,
"62b98d83947642051a10f4f8": true,
"642b3596f230f64bb8eb7e4c": false
},
"type": "initial"
},
"product": {
"id": "5bd1a0a668374e31b15aedc71",
"name": "Loan Product",
"organization": "97203b05fa124b4cb86aa3c37",
"organizationVersion": 0,
"borrowerTypes": [
"person"
]
}
}
},
"createdAt": "2023-05-18T17:35:01.532Z"
}