Webhooks
Update a Webhook Endpoint
Change a webhook destination, subscriptions or delivery status.
PATCH /api/v1/webhook_endpoints/:id
curl https://api-prod.paybytoken.io/api/v1/webhook_endpoints/we_1ZbSVMF8KXuhmXpKPXkt \
-X PATCH \
-H "Authorization: Bearer $PAYBYTOKEN_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://shop.example.com/webhooks/paybytoken-v2"
}'| Parameter | Type | Required | Description |
|---|---|---|---|
id | path string | yes | Webhook Endpoint ID. |
url | string | no | New delivery destination. Live mode requires safe public HTTPS. |
enabled_events | string[] | no | Replacement list of exact events, resource wildcards or *. |
status | string | no | enabled or disabled. |
Provide at least one update field. The response contains the updated endpoint configuration without its signing secret.
Did this page answer your question?
Your feedback helps us improve the integration path.