NovusBank
  1. HOME
NovusBank
  • HOME
    • Getting Started with NovusBank
    • Authentication and Security
    • Webhooks
    • 3DS And Card Tokenization
  • INVOICES
    • Create Invoices
      POST
    • Search Transaction
      GET
    • Create Refunded
      POST
    • Active 3ds
      POST
  • INVOICES PUBLIC
  • COMPANY
    • Company Infos
      GET
  1. HOME

Webhooks

Webhooks 🔄#

Receive real-time updates about events in your integration through webhook notifications.

Overview#

Webhooks allow your application to receive real-time notifications when specific events occur in our system. Instead of constantly polling our API for updates, webhooks push data to your application as events happen.

🚀 Setting Up Webhooks#

1.
Log in to your developer dashboard
2.
Navigate to the "Webhooks" section
3.
Click "Add Webhook Endpoint"
4.
Enter the URL where you want to receive webhook notifications
5.
Select the events you want to subscribe to
6.
Save your webhook configuration

📬 Webhook Payload#

When an event occurs, we'll send a POST request to your specified URL with a JSON payload. Here's the structure of the webhook payload:
{
  "id": "invoice_123456",
  "status": "paid",
  "total": 1990,
  "method": "pix",
  "event": "invoice.paid"
}

Payload Fields#

FieldTypeDescription
idstringThe unique identifier of the invoice
statusstringThe current status of the invoice (e.g., "paid", "pending", "failed")
totalintegerThe total amount in cents
methodstringThe payment method used (e.g., "credit_card", "bank_transfer")

Responding to Webhooks#

Your webhook endpoint should return a 2xx HTTP status code to acknowledge receipt of the webhook. If our system doesn't receive a 2xx response, we'll retry sending the webhook up to 3 times with an exponential backoff.

Testing Webhooks#

You can test your webhook implementation using our webhook simulator in the developer dashboard. This allows you to send test payloads to your endpoint without having to trigger actual events.

Security Recommendations ⚠️#

1.
Verify webhook authenticity using the signature in the request headers
2.
Implement proper error handling for webhook requests
3.
Use HTTPS for your webhook endpoint
4.
Set up monitoring to track webhook deliveries and failures

Common Webhook Events#

EventDescription
invoice.createdTriggered when a new invoice is created
invoice.paidTriggered when an invoice is paid successfully
invoice.failedTriggered when a payment attempt fails
invoice.canceledTriggered when an invoice is canceled
Need more help? Contact our developer support team for assistance.
Modificado em 2025-10-14 23:30:40
Página anterior
Authentication and Security
Próxima página
3DS And Card Tokenization
Built with