Skip to main content
DELETE
Remove

Remove Webhook URL

This endpoint allows removing a registered webhook URL, together with every event it receives.
  • The webhook is identified by its url and the optional account_id, both sent in the request body. The path never carries the URL
  • To stop a single event and keep the others, use Update and send events without it
  • Once deleted, none of the webhook’s events are sent to the URL anymore. Each event then goes to the next destination:
    • On a subaccount, the main account’s webhook for that event, if there is one (payin, payout and kyc — see Subaccounts without a webhook)
    • Otherwise, for payin and payout, the notification_url of each transaction, signed with the deprecated API key signature (see Webhook Signature); for kyc, the KYC callback URL previously configured by our Customer Experience team, if any, without the x-webhook-wp-* headers (see KYC Webhook)
Registering, updating or removing a webhook may take up to 5 minutes to take effect. Until then, webhooks keep being delivered to the previous destination.

Request Body

string
required
URL of the webhook that will be removed. Together with account_id, it identifies the webhook.Example: https://my-url.requestcatcher.com/test
integer
ID of the account whose webhook will be removed: your own merchant or one of its subaccounts.When omitted, the webhook of your merchant (the authenticated account) is removed.If the account does not exist or is not linked to your merchant, the request fails with 422 and the invalid_account code. If the account has no webhook with this URL, the request fails with 404.Example: 4521
Without account_id, the removal always targets your merchant, even if the webhook you want to remove was listed by Query under a subaccount. Send the account_id returned with the webhook to remove the right one.

Response

Returns 200 OK with a confirmation message on successful deletion.
string
Confirmation message.Example: Webhook deleted successfully

Request Example