Update Webhook Configuration
Allows an integrator to update their default webhook URL, secret, and event subscriptions.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
HTTPS URL on your server where Kotani Pay will POST webhook events. Must be publicly reachable. Respond with HTTP 200 to acknowledge receipt.
"https://your-domain.com/webhooks/kotani"
A secret string used by Kotani Pay to sign outbound webhook payloads with HMAC-SHA256. Use this on your server to verify that incoming requests genuinely come from Kotani Pay. Choose a strong random string (e.g. 32+ random hex characters). This value is stored encrypted and is never returned in API responses.
"whsec_1234567890abcdef1234567890abcdef"
List of event types this integrator should receive. Omit or send an empty array to receive all supported events. Only events in this list will be delivered to your webhook_url.
transaction.status.updated, transaction.deposit.status.updated, transaction.withdrawal.status.updated, transaction.onramp.status.updated, transaction.offramp.status.updated, payment.confirmed, kyc.status.changed, refund.lightning.invoice_needed, refund.completed, refund.failed, settlement.approved, settlement.rejected, settlement.processed, settlement.cancelled, settlement.paused, settlement.batch.approved, settlement.batch.rejected, settlement.batch.processed, settlement.batch.partial, settlement.batch.cancelled, system.event [
"transaction.deposit.status.updated",
"transaction.withdrawal.status.updated",
"payment.confirmed"
]