mercury_update_webhook
Modify a Mercury webhook's URL, status, or event subscriptions. Rotate destination URLs, adjust event listening, or reactivate auto-disabled webhooks by setting status to active. Changes take effect immediately for future events.
Instructions
Update an existing webhook endpoint (URL, status, or subscribed events).
USE WHEN: rotating a webhook's destination URL, changing the event subscription, or reactivating a webhook Mercury auto-disabled after consecutive delivery failures (set status: "active").
DO NOT USE: to inspect delivery history. Same SSRF / non-HTTPS URL guard as mercury_create_webhook applies to the new URL.
SIDE EFFECTS: overwrites the webhook record. Persistent. If status flips to active, Mercury resumes delivery on the next matching event. The new URL takes effect immediately for future events.
RETURNS: { id, url, status, events, ... } — the updated webhook.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| webhookId | Yes | The webhook endpoint ID | |
| url | No | New publicly reachable HTTPS URL (same rules as mercury_create_webhook). | |
| status | No | Webhook status | |
| eventTypes | No | Event types to subscribe to. Common values: - transaction.created / transaction.updated - transaction.posted / transaction.pending / transaction.failed - invoice.created / invoice.sent / invoice.paid / invoice.overdue / invoice.cancelled - customer.created / customer.updated - recipient.created / recipient.updated Check https://docs.mercury.com/reference/webhooks for the full list. |