Register a webhook endpoint to receive payment event notifications.
POST /api/v1/businesses/:businessId/webhook-endpoints/create-endpoint
Webhooks are dispatched as signed HTTP POST requests with HMAC-SHA256 signatures. You can subscribe to specific event types and register multiple endpoints per business.
Parameters
Path
| Name | Type | Required | Description |
|---|---|---|---|
businessId | string | Yes | The business ID |
Body
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | HTTPS URL to deliver events to |
description | string | No | Human-readable description of this endpoint |
events | array | Yes | List of event types to subscribe to |
deposit.created— Deposit session createddeposit.pending— On-chain payment detecteddeposit.confirmed— Payment confirmed after block confirmationsdeposit.expired— Session expired without paymentdeposit.failed— Deposit faileddeposit.underpaid— Payment received below the expected amountdeposit.overpaid— Payment received above the expected amount
Request example
Response
Response schema
| Field | Type | Description |
|---|---|---|
id | string | Endpoint identifier |
url | string | Delivery URL |
events | array | Subscribed event types |
enabled | boolean | Whether the endpoint is active |
signingSecret | string | Secret for verifying webhook signatures — shown only once |
Example response
Warning: The signingSecret is shown only once at creation time. Store it securely — you’ll need it to verify webhook payload signatures.