Webhooks
Configure Webhook
Set or update the webhook endpoint URL and subscribe to specific events
POST
Documentation Index
Fetch the complete documentation index at: https://docs-openpay.nipuntheekshana.com/llms.txt
Use this file to discover all available pages before exploring further.
Authentication
This endpoint requires a Bearer token in theAuthorization header.
Body Parameters
The HTTPS URL that will receive webhook POST requests. Must be publicly accessible.
An array of event types to subscribe to. If omitted, the webhook will receive all events.Supported events:
payment.completed- A payment has been confirmed on-chainpayment.failed- A payment failed due to underpayment or errorpayment.expired- A payment expired before receiving fundssubscription.renewed- A recurring subscription payment was collectedsubscription.cancelled- A subscription was cancelled
Response
Unique identifier for the webhook configuration.
The configured webhook URL.
The list of subscribed event types.
Whether the webhook is currently active.
ISO 8601 timestamp of when the webhook was configured.
Webhook payloads are signed with ED25519. Use the Get Public Key endpoint to retrieve the verification key.