Documentation Index
Fetch the complete documentation index at: https://docs.waffo.ai/llms.txt
Use this file to discover all available pages before exploring further.
Remove a webhook from a store. This is a hard delete — the row is removed from store.store_webhooks immediately, with no soft-delete flag. Historical webhook_deliveries records are retained for audit (the storeWebhookId foreign key is set to null).
POST /v1/actions/store/remove-webhook
Authentication: API Key (owner or admin role required)
Request Body
| Field | Type | Required | Description |
|---|
id | string | Yes | Webhook UUID |
Example Request
import { WaffoPancake } from "@waffo/pancake-ts";
const client = new WaffoPancake({
merchantId: process.env.WAFFO_MERCHANT_ID!,
privateKey: process.env.WAFFO_PRIVATE_KEY!,
});
const { webhook } = await client.webhooks.remove({
id: "11111111-2222-3333-4444-555555555555",
});
// webhook contains a snapshot of the row before deletion
Success Response (200)
Returns the webhook entity as it existed immediately before deletion (so the caller can confirm what was removed). Same shape as add-webhook.
Response Fields
| Field | Type | Description |
|---|
id | string | Webhook UUID |
storeId | string | Owning store UUID |
channel | string | Webhook channel |
url | string | Target webhook URL |
events | string[] | Subscribed event types |
testMode | boolean | true for test transactions, false for production |
secret | string | null | Channel-specific credential, null if unset |
createdAt | string | Creation timestamp (ISO 8601) |
updatedAt | string | Last update timestamp (ISO 8601) |
Error Responses
| Status | Description |
|---|
| 400 | id not a valid UUID |
| 403 | Caller is not an owner or admin of the store |
| 404 | Webhook not found |