Skip to main content

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

FieldTypeRequiredDescription
idstringYesWebhook 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

FieldTypeDescription
idstringWebhook UUID
storeIdstringOwning store UUID
channelstringWebhook channel
urlstringTarget webhook URL
eventsstring[]Subscribed event types
testModebooleantrue for test transactions, false for production
secretstring | nullChannel-specific credential, null if unset
createdAtstringCreation timestamp (ISO 8601)
updatedAtstringLast update timestamp (ISO 8601)

Error Responses

StatusDescription
400id not a valid UUID
403Caller is not an owner or admin of the store
404Webhook not found