Skip to main content

Webhook Request

Following is an example webhook request body. data field is encrypted with the provided key. For more information on how to implement the decryption logic see the guide

Example#

base64AESKey = "nZFF/qfwDZVjDFlPbxAkR6tddG6zL2ytim/46HwtIM0="

Request body with encrypted data:

{
"event": "ORGANIZATION_INITIALIZED_ACCOUNT_CREATED",
"client_type": "ORGANIZATION",
"client_id": 1,
"data": "RNJt6iWixBx/36xF2msyCV+rvFG5y/rvZnuhVRfhY/9KD9ZqgzqGLl6yeMOQjnPMgdbEmxY1n/761STWM+HOcSKdOoBxPWMQyuilcf99oG36EsM9V6V1tuUqObyiFr7nKXj0qIe1isJRoa4C2GyHKqfFg8IWadLVKUdWePDafaywB2wZfKHYjt76hunrLqpW"
}

Decrypted request body should look like the following after decrypting the data field:

{
"event": "ORGANIZATION_INITIALIZED_ACCOUNT_CREATED",
"client_type": "ORGANIZATION",
"client_id": 1,
"data": {
"employee_id": "eid1",
"routing_number": "rn1",
"onboarding_link": "https://test.branchapp.com/ol1",
"account_number": "an1"
}
}