API Reference
Log In
API Reference

Whitelabel account approval Webhooks

šŸ“˜

To learn more about webhooks in our API, follow the link below:

About Webhooks

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

NameDescription
x-delbank-api-keyRequired. 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:

NameDescription
nameThe name registered on the account
documentThe document registered on the account
bankAccountNumberIf an account is approved the webhook will contain the number of this new account