---
title: Delete webhook subscription
slug: reference/delete-webhook-subscription
docTags: 
createdAt: 2025-08-13T21:16:12.609Z
---

{
  "id": "ZvHQmrVjiGejDfYTmn2Ru",
  "type": "api-oas-v2",
  "data": {
    "method": "DELETE",
    "url": "https://app.amberflo.io/webhook/{webhook_id}",
    "servers": [
      {
        "url": "https://app.amberflo.io/webhook/{webhook_id}"
      }
    ],
    "name": "Delete webhook subscription",
    "description": "<p>Deletes an existing webhook subscription and stops receiving event notifications for that topic.\nUse this endpoint to permanently remove webhook subscriptions that are no longer needed\nor to reconfigure event delivery to a different endpoint.</p>\n<p>Once deleted, the webhook will immediately stop receiving events for the configured topic.\nThis allows you to set up a new subscription for the same topic with different configurations\nif needed, since only one subscription per topic is allowed.</p>\n<p><strong>Important Note:</strong> Historical webhook delivery attempts logged in the <a>Account Event API</a>\nwill remain available even after subscription deletion.</p>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "webhook_id",
          "type": "string",
          "description": "Unique identifier for the webhook subscription to delete. Format is UUID v4."
        }
      ],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "api_key",
          "name": "x-api-key",
          "kind": "optional",
          "type": "apiKey",
          "in": "header"
        }
      ]
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Webhook subscription successfully deleted with confirmation details",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "Complete webhook endpoint configuration including system timestamps",
            "customType": "webhook-response",
            "schema": [
              {
                "name": "id",
                "kind": "required",
                "type": "string",
                "description": "Unique identifier of the webhook endpoint to be updated",
                "example": ""
              },
              {
                "name": "enabled",
                "kind": "optional",
                "type": "boolean",
                "description": "Whether the webhook endpoint is active and receives event notifications. You can still retry and test disabled webhooks.",
                "example": "",
                "default": true
              },
              {
                "name": "topic",
                "kind": "required",
                "type": "string<ready-product-invoices | customer-feed | account-pricing-feed | customer-pricing-feed | customer-pricing-plan-feed | webhook-test>",
                "description": "Event type that triggers webhook notifications. Supported events:\n\n- `ready-product-invoices` - Invoice is ready for payment\n- `customer-feed` - Customer is created  \n- `account-pricing-feed` - Account pricing configuration changes (e.g. pricing plans)\n- `customer-pricing-feed` - Customer pricing assignment changes\n- `customer-pricing-plan-feed` - Customer pricing plan modifications or deletions\n- `payment-feed` - Invoice payment succeeds or fails\n- `webhook-test` - Testing webhook functionality\n",
                "example": ""
              },
              {
                "name": "destinationUrl",
                "kind": "required",
                "type": "string",
                "description": "HTTPS URL endpoint where webhook event payloads will be sent via POST request",
                "example": ""
              },
              {
                "name": "transformTemplate",
                "kind": "required",
                "type": "string<default | amberflo-sfdc-app>",
                "description": "Payload transformation template for third-party integrations (e.g. Salesforce via amberflo-sfdc-app)",
                "example": ""
              },
              {
                "name": "authHeader",
                "kind": "required",
                "type": "array",
                "description": "Authentication header key-value pair for webhook requests. Values are encrypted before storage and redacted in API responses.",
                "example": "",
                "itemType": "string",
                "customType": "string[]",
                "itemExample": "",
                "itemDefault": ""
              },
              {
                "name": "extraHeaders",
                "kind": "optional",
                "type": "array",
                "description": "Additional HTTP headers to include with webhook requests (maximum 10 headers)",
                "example": "",
                "itemType": "array",
                "customType": "array[]",
                "itemExample": "",
                "itemDefault": ""
              },
              {
                "name": "createTime",
                "kind": "optional",
                "type": "integer",
                "description": "Unix timestamp in milliseconds when the webhook endpoint was created",
                "example": 0
              },
              {
                "name": "updateTime",
                "kind": "optional",
                "type": "integer",
                "description": "Unix timestamp in milliseconds when the webhook endpoint was last modified",
                "example": 0
              }
            ],
            "modelRef": "#/components/schemas/webhook-response",
            "complexItems": [
              {
                "name": "object",
                "schema": [
                  {
                    "name": "id",
                    "kind": "required",
                    "type": "string",
                    "description": "Unique identifier of the webhook endpoint to be updated",
                    "example": ""
                  },
                  {
                    "name": "enabled",
                    "kind": "optional",
                    "type": "boolean",
                    "description": "Whether the webhook endpoint is active and receives event notifications. You can still retry and test disabled webhooks.",
                    "example": "",
                    "default": true
                  },
                  {
                    "name": "topic",
                    "kind": "required",
                    "type": "string<ready-product-invoices | customer-feed | account-pricing-feed | customer-pricing-feed | customer-pricing-plan-feed | webhook-test>",
                    "description": "Event type that triggers webhook notifications. Supported events:\n\n- `ready-product-invoices` - Invoice is ready for payment\n- `customer-feed` - Customer is created  \n- `account-pricing-feed` - Account pricing configuration changes (e.g. pricing plans)\n- `customer-pricing-feed` - Customer pricing assignment changes\n- `customer-pricing-plan-feed` - Customer pricing plan modifications or deletions\n- `payment-feed` - Invoice payment succeeds or fails\n- `webhook-test` - Testing webhook functionality\n",
                    "example": ""
                  },
                  {
                    "name": "destinationUrl",
                    "kind": "required",
                    "type": "string",
                    "description": "HTTPS URL endpoint where webhook event payloads will be sent via POST request",
                    "example": ""
                  },
                  {
                    "name": "transformTemplate",
                    "kind": "required",
                    "type": "string<default | amberflo-sfdc-app>",
                    "description": "Payload transformation template for third-party integrations (e.g. Salesforce via amberflo-sfdc-app)",
                    "example": ""
                  },
                  {
                    "name": "authHeader",
                    "kind": "required",
                    "type": "array",
                    "description": "Authentication header key-value pair for webhook requests. Values are encrypted before storage and redacted in API responses.",
                    "example": "",
                    "itemType": "string",
                    "customType": "string[]",
                    "itemExample": "",
                    "itemDefault": ""
                  },
                  {
                    "name": "extraHeaders",
                    "kind": "optional",
                    "type": "array",
                    "description": "Additional HTTP headers to include with webhook requests (maximum 10 headers)",
                    "example": "",
                    "itemType": "array",
                    "customType": "array[]",
                    "itemExample": "",
                    "itemDefault": ""
                  }
                ],
                "modelRef": "#/components/schemas/webhook-put-request",
                "customType": "webhook-put-request"
              },
              {
                "name": "object",
                "schema": [
                  {
                    "name": "createTime",
                    "kind": "optional",
                    "type": "integer",
                    "description": "Unix timestamp in milliseconds when the webhook endpoint was created",
                    "example": 0
                  },
                  {
                    "name": "updateTime",
                    "kind": "optional",
                    "type": "integer",
                    "description": "Unix timestamp in milliseconds when the webhook endpoint was last modified",
                    "example": 0
                  }
                ]
              }
            ],
            "complexType": "allOf",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "400",
        "description": "Invalid webhook ID format or malformed request",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "401",
        "description": "Missing or invalid API key authentication",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "403",
        "description": "Insufficient permissions to access this resource",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "404",
        "description": "Webhook subscription not found or already deleted",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "500",
        "description": "Internal server error occurred while processing request",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "M-4xHvf9QKu13jrlmumHf",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request DELETE \\\n     --url https://app.amberflo.io/webhook/{webhook_id} \\\n     --header 'accept: application/json'"
        },
        {
          "id": "Em2ECUyE4DxBEkyUqV7rS",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'DELETE',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://app.amberflo.io/webhook/{webhook_id}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "KC2ihsB802L-on9X6V7f9",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://app.amberflo.io/webhook/{webhook_id}\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "VxmjerrG5VseD1VGpG36V",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://app.amberflo.io/webhook/{webhook_id}\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"DELETE\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "M-4xHvf9QKu13jrlmumHf"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// Webhook subscription successfully deleted with confirmation details\n{\n  \"id\": \"\",\n  \"enabled\": false,\n  \"topic\": \"\",\n  \"destinationUrl\": \"\",\n  \"transformTemplate\": \"\",\n  \"authHeader\": [\n    \"\"\n  ],\n  \"extraHeaders\": [\n    [\n      \"\"\n    ]\n  ],\n  \"createTime\": 0,\n  \"updateTime\": 0\n}"
        },
        {
          "id": "response-1-400",
          "language": "400",
          "code": "// Invalid webhook ID format or malformed request\n"
        },
        {
          "id": "response-2-401",
          "language": "401",
          "code": "// Missing or invalid API key authentication\n"
        },
        {
          "id": "response-3-403",
          "language": "403",
          "code": "// Insufficient permissions to access this resource\n"
        },
        {
          "id": "response-4-404",
          "language": "404",
          "code": "// Webhook subscription not found or already deleted\n"
        },
        {
          "id": "response-5-500",
          "language": "500",
          "code": "// Internal server error occurred while processing request\n"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "text": "",
      "id": "-aAS3MTw-SVpDO8gsD0e2"
    }
  ]
}