Set Hook Parameters
Endpoint
POST/v2/hook/set
Link
Configures webhook settings for receiving real-time notifications about system events. This endpoint allows you to enable/disable webhooks, set the receiving URL, and specify which event types to subscribe to.
Request
Headers
Content-Type
application/json
Yes
Accept
application/json
Yes
Request Body (JSON)
parameters
object
Webhook configuration object.
Yes
-
→ enabled
boolean
Enable webhook feature.
Yes
true
→ hookUrl
string
URL for webhook notifications. Must be HTTPS in production.
Yes
"https://api.yourdomain.com/webhooks"
→ jwtSecret
string
Secret for JWT verification of webhook requests.
Yes
"your-secret-key-123"
→ hookCustomer
boolean
Subscribe to customer events.
Yes
true
→ hookOperation
boolean
Subscribe to operation events.
Yes
true
→ hookDepositAccount
boolean
Subscribe to deposit account events.
Yes
false
→ hookCounterparty
boolean
Subscribe to counterparty events.
Yes
true
Example Request Body:
json
Response (200 OK)
Returns the updated webhook configuration confirming the changes.
Response Fields
enabled
boolean
Webhook feature status.
true
hookUrl
string
Webhook notification URL.
"https://api.yourcompany.com/webhooks/payments"
jwtSecret
string
JWT verification secret.
"sec_5f3d8e2a789bcd1234567890"
hookCustomer
boolean
Customer events subscription.
true
hookOperation
boolean
Operation events subscription.
true
hookDepositAccount
boolean
Deposit account events subscription.
false
hookCounterparty
boolean
Counterparty events subscription.
true
Example Response:
json
Examples
Request
bash
Disable Webhooks
bash
Error Responses
Invalid URL:
json
Missing Required Field:
json
URL Not Reachable:
json
Notes
Security: Use HTTPS for
hookUrlin production environments.JWT Verification: Incoming webhooks will include a JWT token in the
Authorizationheader that should be verified using yourjwtSecret.Event Types:
Customer: Creation, updates, status changes
Operation: Payments, transfers, transactions
Deposit Account: Balance changes, account updates
Counterparty: Bank details changes
Testing: After configuration, test webhooks using the test endpoint (if available).
Last updated

