Skip to main content
DELETE
/
v1
/
webhook-subscriptions
/
{id}
curl --request DELETE \
  --url https://api.mageloyalty.com/v1/webhook-subscriptions/whsub_abc123 \
  --header 'Authorization: <api-key>'
(empty response body)
Permanently delete a webhook subscription. Deliveries to its URL stop immediately. This cannot be undone. To pause deliveries without deleting, set is_active to false with update instead.

Path parameters

ParameterTypeDescription
idstringThe webhook subscription ID

Response

Returns 204 No Content with an empty response body on success.

Errors

StatusScenario
401Missing or invalid API key
403The API key is read-only and cannot perform write operations
404No subscription with this ID exists for the shop
429Rate limit exceeded (6 requests/second)
curl --request DELETE \
  --url https://api.mageloyalty.com/v1/webhook-subscriptions/whsub_abc123 \
  --header 'Authorization: <api-key>'
(empty response body)