Webhooks &
Events
Receive real-time notifications about events in your account. Implement webhooks to automate workflows and keep your application synchronized.
Steps
Total time
Event types
Delivery rate
Webhook Configuration
Follow these 6 steps to implement webhooks
Paso 1: Webhook Configuration
Create and configure your first webhook
Overview
Webhooks allow you to receive real-time notifications about events occurring in your DXBNK account. Set up your first webhook to start receiving automatic updates.
Instructions
- 1Access the Webhooks section in your dashboard
- 2Click on 'Create New Webhook'
- 3Enter your endpoint URL
- 4Select the events you want to listen to
- 5Configure the secret for validation
Tips
- Use HTTPS for your webhook endpoint
- The endpoint must respond with 200 OK
- Store the secret in a secure location
- Test your endpoint before activating the webhook
Example
// Crear webhook via API
const webhook = await dxbnk.webhooks.create({
url: 'https://tu-app.com/webhook',
events: [
'transaction.completed',
'wallet.created',
'user.verified'
],
secret: 'tu_secreto_super_seguro',
active: true
});
console.log('Webhook creado:', webhook.id);Paso 2: Webhook Validation
Implement signature validation for security
Paso 3: Event Handling
Process different event types
Paso 4: Retries and Errors
Implement retry logic
Paso 5: Webhook Testing
Test webhooks locally
Paso 6: Monitoring and Debugging
Monitor webhooks in production
Event Types
Available events for your webhooks
transaction.completedTransaction completed successfully
transaction.failedTransaction failed or was rejected
wallet.createdNew wallet created by user
wallet.updatedWallet information updated
user.verifiedUser completed KYC verification
user.updatedUser information updated
Best Practices
Recommendations for robust webhooks
Need help with webhooks?
Check our complete webhook documentation or contact our support team for technical assistance.