Managing Subscriptions
Rotate a subscription's signing secret
Issue a new signing secret for a webhook subscription and invalidate the old one.
POST
Issue a new signing secret for a webhook subscription. The previous secret is invalidated immediately, so any deliveries signed after rotation use the new secret. Use this if a secret may have been exposed, or if you lost the original.
Path parameters
| Parameter | Type | Description |
|---|---|---|
id | string | The webhook subscription ID |
Response
Returns200 OK with the subscription, including the new secret.
Errors
| Status | Scenario |
|---|---|
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) |