PaybytokenDocs
Webhooks
API reference · Webhook Endpoints

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"
  }'
ParameterTypeRequiredDescription
idpath stringyesWebhook Endpoint ID.
urlstringnoNew delivery destination. Live mode requires safe public HTTPS.
enabled_eventsstring[]noReplacement list of exact events, resource wildcards or *.
statusstringnoenabled or disabled.

Provide at least one update field. The response contains the updated endpoint configuration without its signing secret.

API Workbench

Full Explorer

Open in new tab