curl -X PATCH https://api.zbdpay.com/api/v1/webhooks/subscriptions/sub_51a2 \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "status": "paused" }'
Webhooks
Update a Webhook
Change a subscription’s URL, events, or project, or pause it.
PATCH
/
api
/
v1
/
webhooks
/
subscriptions
/
{subscriptionId}
curl -X PATCH https://api.zbdpay.com/api/v1/webhooks/subscriptions/sub_51a2 \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "status": "paused" }'
Only the fields you send are changed.
Configuration
Header Parameters
string
required
Your ZBD API key.
string
Content Type
Path Parameters
string
required
The
subscription_id from Create a Webhook.Body Parameters
string
A new HTTPS URL.
string[]
The event types to send.
string
Only send events for this project.
string
active or paused.curl -X PATCH https://api.zbdpay.com/api/v1/webhooks/subscriptions/sub_51a2 \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "status": "paused" }'
Was this page helpful?