Create partner's webhook

Description:

This API method allows a partner to create and register a new webhook with the banking application service. Webhooks enable partners to receive real-time notifications about specific banking events, such as transaction updates, account changes, or payment statuses. By registering a webhook, the partner defines a destination URL and the type of events they want to be notified about.

Endpoint:

POST https://api.banking.netevia.dev/api/Partners/webhooks


Functionality:

  • Purpose: To set up a webhook that listens for specific events and sends automated notifications to a partner's system.
  • Use Case: Partners use this endpoint to stay synchronized with the banking system in real time (e.g., alerting a merchant when a transaction is completed or a payment fails).

Request Headers:

  • Authorization: Bearer token required (partner-level authentication).
  • Content-Type: application/json

Request Body Parameters:

{
  "name": "Transaction Notifications",
  "url": "https://partner.example.com/webhooks/transactions",
  "notificationType": "transaction.created"
}
ParameterTypeRequiredDescription
namestringYesA descriptive name for the webhook; must be between 1 and 50 characters.
urluriYesThe fully qualified URL where webhook events will be sent (HTTPS preferred).
notificationTypestringYesThe type of event to subscribe to (e.g., transaction.created, account.updated).

Response:

  • 201 Created: Webhook successfully created.
  • 400 Bad Request: Missing or invalid parameters (e.g., name too long, invalid URL).
  • 401 Unauthorized: Invalid or missing authentication token.
  • 409 Conflict: A webhook with the same URL and event type already exists.
  • 500 Internal Server Error: An error occurred while creating the webhook.

Example Request:

POST /api/Partners/webhooks HTTP/1.1
Host: api.banking.netevia.dev
Authorization: Bearer {partnerToken}
Content-Type: application/json

{
  "name": "Transaction Notifications",
  "url": "https://partner.example.com/webhooks/transactions",
  "notificationType": "transaction.created"
}

Notes:

  • Security: It is recommended to use HTTPS URLs and implement verification of incoming requests (e.g., via signature headers or token validation).
  • Webhook Events: The notificationType field defines which system event triggers the webhook.
  • Management: Use related endpoints to update (GET) or delete (DELETE) the webhook as needed.

This API provides a simple and secure way for partners to receive timely updates and automate backend workflows based on real-time banking events.

Language
Credentials
Bearer
JWT
Click Try It! to start a request and see the response here!