Application Webhook Events
The following webhook events are triggered during the application lifecycle:
application.created
Triggered when a new application is created.
See the full application.created event documentation for the complete payload structure.
application.approved
Triggered when an application is approved. A Customer resource is created at this point.
See the full application.approved event documentation for the complete payload structure.
application.denied
Triggered when an application is denied.
See the full application.denied event documentation for the complete payload structure.
application.awaitingDocuments
Triggered when an application requires additional documents to proceed.
See the full application.awaitingDocuments event documentation for the complete payload structure.
application.pendingReview
Triggered when an application is pending manual review by Unit.
See the full application.pendingReview event documentation for the complete payload structure.
application.canceled
Triggered when an application is canceled.
See the full application.canceled event documentation for the complete payload structure.
customer.created
Triggered when a Customer resource is created after an application is approved.
See the full customer.created event documentation for the complete payload structure.
document.approved
Triggered when an application document is approved.
See the full document.approved event documentation for the complete payload structure.
document.rejected
Triggered when an application document is rejected.
See the full document.rejected event documentation for the complete payload structure.
Listening for Events
To receive these events, you need to set up a webhook endpoint. See the Webhooks documentation for more information on configuring webhooks.
Example Event Payload
When an application is approved, you will receive an event similar to:
{
"data": [
{
"id": "1234",
"type": "application.approved",
"attributes": {
"createdAt": "2023-01-15T10:30:00.000Z"
},
"relationships": {
"application": {
"data": {
"type": "individualApplication",
"id": "10001"
}
},
"customer": {
"data": {
"type": "individualCustomer",
"id": "20001"
}
}
}
}
]
}
Event Flow
- application.created - Initial application submission
- application.awaitingDocuments (if needed) - Documents required
- document.approved / document.rejected - Document processing
- application.pendingReview (if needed) - Manual review required
- application.approved or application.denied - Final decision
- customer.created - Customer resource created (on approval)