{
  "generated_from": "hookdeck/webhook-registry",
  "registry_commit": "a24c8d9784c9e9fe937c63f76adbce108201378f",
  "registry_committed_at": "2026-11-19T08:56:09Z",
  "disclaimer": "Independent reference. Not affiliated with WooCommerce.",
  "vendor": "woocommerce",
  "event": "coupon.restored",
  "resource": "coupon",
  "url": "https://hookdeck.com/webhooks/woocommerce/events#coupon.restored",
  "description": "Coupon is restored from the trash",
  "trigger": null,
  "listed_in": "https://raw.githubusercontent.com/woocommerce/woocommerce/11.2.1/plugins/woocommerce/includes/admin/settings/views/html-webhooks-edit.php",
  "confidence": "verified",
  "schema_source": "from a captured delivery",
  "identified_by": "x-wc-webhook-topic header",
  "payload": {
    "provenance": "sample-repo",
    "value_realism": "real-shape-redacted-values",
    "field_count": 39,
    "key_fields": [
      {
        "path": "id",
        "type": "integer",
        "example": "16"
      },
      {
        "path": "status",
        "type": "string",
        "example": "publish"
      },
      {
        "path": "amount",
        "type": "string",
        "example": "5.00",
        "watch_out": "Numeric string."
      }
    ],
    "delivery": {
      "title": "Seen in a captured delivery",
      "content_type": "application/json",
      "headers": [
        "user-agent",
        "content-type",
        "referer",
        "x-wc-webhook-delivery-id",
        "x-wc-webhook-event",
        "x-wc-webhook-id",
        "x-wc-webhook-resource",
        "x-wc-webhook-signature",
        "x-wc-webhook-source",
        "x-wc-webhook-topic"
      ]
    },
    "body": {
      "id": 16,
      "code": "hook",
      "amount": "5.00",
      "status": "publish",
      "date_created": "2023-03-25T16:04:36",
      "date_created_gmt": "2023-03-25T16:04:36",
      "date_modified": "2023-03-26T09:42:59",
      "date_modified_gmt": "2023-03-26T09:42:59",
      "discount_type": "percent",
      "description": "",
      "date_expires": "2023-03-31T00:00:00",
      "date_expires_gmt": "2023-03-31T00:00:00",
      "usage_count": 0,
      "individual_use": false,
      "product_ids": [],
      "excluded_product_ids": [],
      "usage_limit": null,
      "usage_limit_per_user": null,
      "limit_usage_to_x_items": null,
      "free_shipping": false,
      "product_categories": [],
      "excluded_product_categories": [],
      "exclude_sale_items": false,
      "minimum_amount": "0.00",
      "maximum_amount": "0.00",
      "email_restrictions": [],
      "used_by": [],
      "meta_data": [
        {
          "id": 77,
          "key": "_wp_old_slug",
          "value": "hook__trashed"
        }
      ],
      "_links": {
        "self": [
          {
            "href": "http://localhost/wordpress/wp-json/wc/v3/coupons/16"
          }
        ],
        "collection": [
          {
            "href": "http://localhost/wordpress/wp-json/wc/v3/coupons"
          }
        ]
      }
    }
  }
}