To learn more about webhooks in our API, follow the link below:
When you create an account, you can use these webhooks that will be sent the moment the account is approved (WHITELABEL_CUSTOMER_APPROVED
) or rejected (WHITELABEL_CUSTOMER_DOCUMENTATION_REJECTED
)
Here's the simplest way to configure a these webhooks:
Headers
Name | Description |
---|---|
x-delbank-api-key | Required. API key |
Body
{
"eventType": "WHITELABEL_CUSTOMER_DOCUMENTATION_REJECTED",
"url": "https://example.com.br/webhooks/v1/accountrejected", // Add your own URL here
"authorization": "NONE,
"authorizationScheme": "NONE"
}
{
"eventType": "WHITELABEL_CUSTOMER_APPROVED",
"url": "https://example.com.br/webhooks/v1/accountapproved", // Add your own URL here
"authorization": "NONE,
"authorizationScheme": "NONE"
}
Once an account is approved or rejected, here's what you are going to receive on the registered URL:
{
"name": "Fulano da silva",
"document": "49126271869",
"bankAccountNumber": null
}
{
"name": "JOSEVALDO",
"document": "61263079091",
"bankAccountNumber": 13102
}
Here are the attributes that are passed by the WHITELABEL_CUSTOMER
webhooks:
Name | Description |
---|---|
name | The name registered on the account |
document | The document registered on the account |
bankAccountNumber | If an account is approved the webhook will contain the number of this new account |