curl --request DELETE \
--url https://hpay-api.host-sl.com/api/v1/webhooks/subscriptions/7c1d2e3f-... \
--header 'api-key: YOUR_API_KEY' \
--header 'secret-key: YOUR_SECRET_KEY'
from hostpay import HostPay
client = HostPay(api_key="YOUR_API_KEY", secret_key="YOUR_SECRET_KEY")
client.webhooks.subscriptions.delete("7c1d2e3f-...")
import { HostPay } from "@hostpay/sdk";
const client = new HostPay({ apiKey: "YOUR_API_KEY", secretKey: "YOUR_SECRET_KEY" });
await client.webhooks.subscriptions.delete("7c1d2e3f-...");
{
"detail": "Subscription not found"
}
Webhook Subscriptions
Delete Subscription
Permanently delete a webhook subscription.
DELETE
/
api
/
v1
/
webhooks
/
subscriptions
/
{subscription_id}
curl --request DELETE \
--url https://hpay-api.host-sl.com/api/v1/webhooks/subscriptions/7c1d2e3f-... \
--header 'api-key: YOUR_API_KEY' \
--header 'secret-key: YOUR_SECRET_KEY'
from hostpay import HostPay
client = HostPay(api_key="YOUR_API_KEY", secret_key="YOUR_SECRET_KEY")
client.webhooks.subscriptions.delete("7c1d2e3f-...")
import { HostPay } from "@hostpay/sdk";
const client = new HostPay({ apiKey: "YOUR_API_KEY", secretKey: "YOUR_SECRET_KEY" });
await client.webhooks.subscriptions.delete("7c1d2e3f-...");
{
"detail": "Subscription not found"
}
Deletes the subscription and stops all deliveries to its endpoint. To pause deliveries temporarily instead, update it with
active: false.
Path Parameters
string
required
The subscription to delete.
Response
Returns204 No Content on success.
{
"detail": "Subscription not found"
}
curl --request DELETE \
--url https://hpay-api.host-sl.com/api/v1/webhooks/subscriptions/7c1d2e3f-... \
--header 'api-key: YOUR_API_KEY' \
--header 'secret-key: YOUR_SECRET_KEY'
from hostpay import HostPay
client = HostPay(api_key="YOUR_API_KEY", secret_key="YOUR_SECRET_KEY")
client.webhooks.subscriptions.delete("7c1d2e3f-...")
import { HostPay } from "@hostpay/sdk";
const client = new HostPay({ apiKey: "YOUR_API_KEY", secretKey: "YOUR_SECRET_KEY" });
await client.webhooks.subscriptions.delete("7c1d2e3f-...");