> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://brocard.crisp.help/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Webhooks 3DS

### Using Webhooks with 3DS

###### What are Webhooks?

A webhook is a mechanism for notifying you of events occurring in the system through callback functions. When an event occurs, the server sends an HTTP request to a URL provided by the client to accept webhooks. For example, events are: creating a new payment, changing its status or amount.

###### What is 3D Secure (3DS)

3D Secure is an authentication protocol designed to secure online transactions. It requires the buyer to enter an additional verification code (often referred to as a "3DS code") to confirm their identity. This reduces fraud risks and increases trust in online payments.

The advantages of using webhooks with a 3DS code are:
* Efficiency. Webhooks allow you to automate the process of transaction processing
* Security. Using webhooks allows to transfer information about transactions between payment systems and trading platforms in real time.

### How to activate webhooks

To activate the functionality, the company owner needs to go to [page](https://private.mybrocard.com/profile/api/webhooks/otp) to set up webhooks, specify the URL where the webhooks will be sent and activate.

### How webhooks work

When an event is created in the system, a POST request with the object body in JSON format is sent to the specified URL in the settings.

You can see the structure of webhooks on [page](https://private.mybrocard.com/docs#webhooks-beta-POSThttps---YOUR-URL-for-3ds-webhooks) of API documentation.
You can also view the logs of sending webhooks on the corresponding [page](https://private.mybrocard.com/profile/logs/webhooks) in the Logs section.

|| If, when sending a webhook, the system does not receive a response with the HTTP code `2xx`, the webhook will be resent.
|| If a webhook has been sent 5 times in a row with an error, the system will deactivate the webhooks and a notification will be sent to the company owner's email.
|| Should you have any issues, questions or observations regarding this article, please contact our support team.