Managing Subscriptions
Update a webhook subscription
Update the URL, events, active status, or description of a webhook subscription.
PUT
Update a webhook subscription. Send only the fields you want to change. The signing secret is not returned by this endpoint and is never changed here. To issue a new secret, use rotate secret.
Path parameters
| Parameter | Type | Description |
|---|---|---|
id | string | The webhook subscription ID |
Request body
All fields are optional. Include any subset you want to change.| Field | Type | Description |
|---|---|---|
url | string | A new HTTPS endpoint. Must be a valid URL |
events | string[] | A non-empty array of events. Valid events: points.earned, points.redeemed, customer.tier_upgrade, customer.tier_downgrade |
is_active | boolean | Set to false to pause deliveries, true to resume |
description | string | null | A new label, or null to clear it |
Errors
| Status | Scenario |
|---|---|
400 | url not a string, url not a valid URL, events empty, one or more events invalid, or invalid JSON |
401 | Missing or invalid API key |
403 | The API key is read-only and cannot perform write operations |
404 | No subscription with this ID exists for the shop |
429 | Rate limit exceeded (6 requests/second) |