Skip to main content
PATCH
/
api
/
v3
/
integrator
/
webhook
Update webhook configuration
curl --request PATCH \
  --url https://sandbox-api.kotanipay.com/api/v3/api/v3/integrator/webhook \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "webhook_url": "https://example.com/kotani/webhooks",
  "webhook_secret": "whsec_1234567890abcdef",
  "webhook_events": [
    "transaction.deposit.status.updated"
  ]
}
'
{
  "success": true,
  "message": "Integrator webhook settings updated successfully.",
  "data": {
    "organization": "A&B Company",
    "first_name": "John",
    "last_name": "Doe",
    "email": "[email protected]",
    "phone": "+xxx xxx xxx xxx",
    "id": "xxxxxxxxxxxxxxxxxxxxxxxx",
    "webhook_url": "https://example.com/kotani/webhooks",
    "webhook_events": [
      "transaction.deposit.status.updated",
      "payment.confirmed"
    ]
  }
}
Update your integrator’s webhook URL, secret, and event subscriptions for receiving real-time notifications.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
webhook_url
string

Default webhook callback URL

Example:

"https://example.com/kotani/webhooks"

webhook_secret
string

Shared secret used to sign webhook payloads

Example:

"whsec_1234567890abcdef"

webhook_events
enum<string>[]

Webhook events this integrator should receive

Available options:
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,
system.event
Example:
["transaction.deposit.status.updated"]

Response

success
boolean
Example:

true

message
string
Example:

"Integrator webhook settings updated successfully."

data
object